Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: theory: type theory & logic

Topic: APG type theory


view this post on Zulip Julius Hamilton (Aug 24 2024 at 18:29):

apg.jpg

The set V\mathcal{V} of typed values are terms in the following grammar:

v:t::=():1inlt2(v:t1):t1+t2inrt1(v:t2):t1+t2(v1:t1,v2:t2):t1×t2 Prim vt:t(tP,vPV(p)) Elmt e:λ(e)(e(E)v : t ::= () : 1 | inl_{t_2} (v : t_1) : t_1 + t_2 | inr_{t_1} (v : t_2) : t_1 + t_2 | (v_1 : t_1, v_2 : t_2) : t_1 \times t_2 | \text{ Prim }v_t : t (t \in P, v \in PV(p)) | \text{ Elmt }e : \lambda(e) (e \in \mathcal(E)

This says:

Looking at the whole picture:

  1. You have a schema SS, which is a pair (L,σ)(\mathcal{L}, \sigma). L\mathcal{L} is a set of labels, and σ\sigma assigns each label to a type. Thus, a schema is a bunch of typed labels. Your labels could be “Car”, “Elizabeth”, “meets”. The only types are unit, sum, product, primitive, and label; so I guess σ\sigma might assign individuals to 11, essential concepts to “primitive”, any sort of function, relation or grouping to a product type, any sort of “optional grouping” to a sum type, and I’m not sure what the label type is doing in there, since the labels should be in L\mathcal{L}, whereas all these other typed values should be in V\mathcal{V}.

2.jpg

  1. You have elements.

  2. You map elements to their labels.

  3. You map values to their types.

  4. You map elements to their values.

And I guess the takeaway here is that our labels have type annotations, and our values have type annotations, and every element has a label and a value.

Is this correct?

view this post on Zulip Ryan Wisnesky (Aug 24 2024 at 18:47):

sounds about right. there are some built-in examples in the CQL IDE ('APG' being the name of the example)

view this post on Zulip Julius Hamilton (Aug 24 2024 at 19:20):

Thanks.

These conjectures are unproven?

3.jpg

view this post on Zulip Ryan Wisnesky (Aug 24 2024 at 19:45):

I'm not sure. @Joshua Meyers would be the person to ask. An earlier version of the paper had a bunch of relatively easy theorems proved in Coq, https://arxiv.org/pdf/1909.04881v1 , and then in attempt to connect the work to Poly, which would have made for cooler theorems, progress stalled out, for reasons I don't remember but might be Coq related and not math related.