Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Hello,
I’m starting to learn about type theory (in HoTT or articles on the net) after having been “passively” using it for years in programming languages. My question may certainly be a bit simple but I couldn’t find a resource on the net, so better ask it!
Let’s say I take as granted usual set-theory (ZFC let’say), with its standard notion of set, function and real numbers. Then I would like to “inject” those objects in type theory formalism. My goal is to exploit the type theory expression system for constructive proofs without having “constructively-obtained objects”. In other words, I don’t really care about constructive sets, reals, measures, or anything. I’m more interested in expression theorems and structures in type theory, and using this language for object manipulation.
So I started an easy example or semi-ring of parts (from measure theory). So far, it goes at follows: (1) I use “set” to talk abut ZFC sets, “function” for function in the usual ZFC sense, and “program” for arrows from type theory (2) for any set E, I abuse notation by writing x:E when an object (set) x belongs to E, in the usual sense (judgment)
Fix two sets . For all , I define the set and So if I don’t mistake, this consists of programs from to that where constructed from programs with an additional specification that either it is proved that , or it is proved that the valued of the program are disjoint sets.
Next I define the type If I don’t mistake, this type consists of (dependent) programs that provide a proof that c (in E) may be written as a disjoint finite union of elements in A.
Next I define the type If I don’t mistake, this consists of programs that prove that for all x,y: A, there is a writing of the difference .
Now I assume the judgment is true (think of A as being a semi-ring in E, but that won’t be important for the remaining part), and I’m interested in constructing a program for , that is: as soon as there exists an element in A, the empty set belongs to A. First, is that indeed equivalent to ? For this, I’m going to use the element assumed to exist. I define the program as , that is: I evaluate the program at , yielding some . Now I project this to extract the proof as above.
To me, this formally defines a program . In my eyes, this is enough to conclude, because the type is the same as . But here I’m not sure how I should justify the argument. I’m ok to “inject” standard set-theoretic logic, so to me, it is sufficient to have a lemma proving this somewhere, which is kind of trivial. In the same spirit, is it ok to “assume” that and are equivalent programs?
Could someone, somehow validate my approach here?
I emphasize on the idea that I would like to exploit the formalism of type theory without committing to constructive analysis. I like my usual non-constructive analysis objects and I wouldn’t be happy in facing hard and touchy constructivist problems.
Regards,
Justin
As a pointer (independent of your approach and type theoretical framework), maybe it’s interesting to see other implementations.
E.g. there’s that model in Lean, see the zfc
-github page and corresponding docs.
1 to 3 of 3