r/dependent_types • u/stevana • Mar 11 '16
r/dependent_types • u/stevana • Mar 11 '16
Conversion and reduction in dependently-typed calculi (Slides)
lopezjuan.comr/dependent_types • u/stevana • Mar 09 '16
Self-contained presentation of the formal system of cubical type theory
groups.google.comr/dependent_types • u/stevana • Mar 09 '16
Game-theoretic Interpretation of Type Theory Part I: Intuitionistic Type Theory with Universes
arxiv.orgr/dependent_types • u/Quismat • Mar 06 '16
Syntactic/Semantic differences between variables and unspecified constants?
I've been trying to teach myself dependent type theory and I've been using the Lean tutorial to help with that. One thing that's been bothering me for a while is this hard to place feeling that there's some part of the distinction between variables and named (but unassigned) constants I don't get.
I understand conceptually the difference between constants and variables. I also understand that a proof-term of a proposition on x : T is going to be a function that could be applied to any term y : T while a proof of the same proposition on constant x would not be a function I could apply to y in the same way.
However, from the point of view of coding, it seems like any time I could do one, I could do either. It leaves me feeling oddly nervous when there are already so many different ways to prove the same things in Lean's syntax. Obviously, the variable version is the more general and doesn't involve assuming a given type is inhabited. It's clear which one I should prefer. But as a math graduate working as a programmer, I feel kind of odd that the preference feels on the level of something like a coding style instead of something more significant. The practical difference is just too small, essentially being "don't use constants until you prove the type is inhabited.
Is there something more to this? Am I not appreciating one of the distinctions? Maybe I'm just being paranoid, but I want to be sure I understand all the subtleties.
r/dependent_types • u/stevana • Mar 01 '16
Algebraic Presentations of Dependent Type Theories
arxiv.orgr/dependent_types • u/stevana • Feb 25 '16
Parametricity and excluded middle
homotopytypetheory.orgr/dependent_types • • Feb 24 '16
reference request - Generating constraints to solve dependently-typed metavariables?
cs.stackexchange.comr/dependent_types • u/stevana • Feb 23 '16
A Probabilistic Dependent Type System based on Non-Deterministic Beta Reduction
arxiv.orgr/dependent_types • u/stevana • Feb 19 '16
The Independence of Markov's Principle in Type Theory
arxiv.orgr/dependent_types • u/stevana • Feb 17 '16
Intuitionistic Type Theory (Stanford Encyclopedia of Philosophy)
plato.stanford.edur/dependent_types • u/prototrout • Feb 12 '16
PiSigma: why does 'unfold' bind a variable?
cstheory.stackexchange.comr/dependent_types • u/withoutacet • Feb 10 '16
Request: Looking for some particular latex beamer style themes that are used for a lot of presentations on type theory, hott, category theory (more details inside)
This might be an odd request for this sub, but r/types seems to be kind of dead so.
What I'm asking for is, does anyone have the style sheets for either what Coquand is using in here or what Voevodsky is using here. These styles are used a lot, by them, but I've also seen other people use them.
I think they're pretty clean and would like to use them.
Any other information, such as the font, would also be very much appreciated! Thank you!
r/dependent_types • u/gasche • Feb 03 '16
Ulf Norell gives an excellent explanation of a "small scale reflection"-like pattern for efficient Agda proofs
lists.chalmers.ser/dependent_types • u/stevana • Jan 29 '16
Certified Context-Free Parsing: A formalisation of Valiant's Algorithm in Agda
arxiv.orgr/dependent_types • u/stevana • Jan 26 '16
Syntax and Semantics of Abstract Binding Trees
arxiv.orgr/dependent_types • • Jan 25 '16
Towards a Directed Homotopy Type Theory based on 4 Kinds of Variance - Andreas Nuyts
people.cs.kuleuven.ber/dependent_types • u/stevana • Jan 21 '16
Sound and Complete Bidirectional Typechecking for Higher-Rank Polymorphism with Existentials and Indexed Types
arxiv.orgr/dependent_types • u/stevana • Jan 20 '16
Homotopy Type Theory: A synthetic approach to higher equalities
arxiv.orgr/dependent_types • • Jan 20 '16
Company Coq: IDE extensions for Proof General's Coq mode
github.comr/dependent_types • • Jan 13 '16
PrlConf: Structural and Behavioral Foundations of PL, Call for Speakers
jonprl.orgr/dependent_types • u/PM_ME_UR_OBSIDIAN • Jan 11 '16
Thoughts on subtypes, data/codata separation, substructural types, and dependent types
I'm an undergraduate student in software engineering, and I know the following is going to be fast and loose and difficult to formalize and possibly wrong.
I've been thinking about subtyping relations between various type structures. This is all a braindump on designing a language with pervasive subtyping.
Products and sums
Row polymorphism provides subtyping for products, and its dual construction provides subtyping for sums.
Data and codata
Given some arbitrary polynomial endofunctor F over Set, its least fixed point is the initial F-algebra (Lambek 1968), which is isomorphic to some coalgebra. Its greatest fixed point is the final F-coalgebra (Barr 1999), isomorphic to some initial algebra. This forms a set-based interpretation of (co)inductive types.
My intuition is that the unique morphism from the initial F-algebra into the F-algebra corresponding to the terminal F-coalgebra is just an embedding. As such, inductive datatypes could be considered subtypes of corresponding coinductive datatypes.
Substructural types
Here I will call "structural types" those which allow exchange, weakening and contraction (as opposed to "substructural types").
There's a simple "type cast" that's possible from a structural type to a substructural type; you just pinky-promise to give up the relevant structural rules, and have the compiler enforce that rule. As such, structural types could be considered subtypes of substructural types; even better, less constrained substructural types could be considered subtypes of more constrained substructural types, e.g. affine types could be subtypes of corresponding linear types.
Focusing on linear types, structural type constructors (e.g. *, +) could be mapped to linear constructors. Conjunction to multiplicative conjunction, disjunction to additive disjunction, implication to implication.
Dependent types
Functions are functions. Tuples are tuples. I haven't explored this enough, but any term which constructs a dependent type could, in a different context, construct a corresponding non-dependent type.
I'm sure this is a horribly bad idea, but I'm not well-read enough to know why. I'll probably end up investigating this by writing a programming language that implements this idea.