Polynomial Functors and Natural Models of Type Theory

Polynomial Functors and Natural Models of Type Theory

Polynomial Functors and Natural Models of Type Theory Steve Awodey Workshop on Polynomial Functors Topos Institute March 2021 Outline 1. Dependent type theory 2. Natural models 3. Type formers 4. Polynomial monad 5. Propositions as types 1. Dependent type theory Types: A; B;:::; A × B; A ! B;::: Terms: x :A; b :B; ha; bi; λx:b(x);::: Dependent Types: x :A ` B(x) \indexed families of types" Type Forming Operations: X Y B(x); B(x);::: x:A x:A Equations: s = t : A Sums: Γ; x :A ` B(x) Γ ` a:A; Γ ` b :B(a) P P Γ ` x:A B(x) Γ ` ha; bi : x:A B(x) P P Γ ` c : x:A B(x) Γ ` c : x:A B(x) Γ ` fst c : A Γ ` snd c : B(fst c) Γ ` fstha; bi = a : A Γ ` sndha; bi = b : B X Γ ` hfst c; snd ci = c : B(x) x:A 1. Dependent type theory: Rules Contexts: x :A ` B(x) Γ ` C x :A; y :B(x) ` Γ; z :C ` 1. Dependent type theory: Rules Contexts: x :A ` B(x) Γ ` C x :A; y :B(x) ` Γ; z :C ` Sums: Γ; x :A ` B(x) Γ ` a:A; Γ ` b :B(a) P P Γ ` x:A B(x) Γ ` ha; bi : x:A B(x) P P Γ ` c : x:A B(x) Γ ` c : x:A B(x) Γ ` fst c : A Γ ` snd c : B(fst c) Γ ` fstha; bi = a : A Γ ` sndha; bi = b : B X Γ ` hfst c; snd ci = c : B(x) x:A 1. Dependent type theory: Rules Contexts: x :A ` B(x) Γ ` C x :A; y :B(x) ` Γ; z :C ` Sums: Γ; x :A ` B(x) Γ ` a:A; Γ ` b :B(a) P P Γ ` x:A B(x) Γ ` ha; bi : x:A B(x) P P Γ ` c : x:A B(x) Γ ` c : x:A B(x) Γ ` fst c : A Γ ` snd c : B(fst c) Γ ` fstha; bi = a : A Γ ` sndha; bi = b : B X Γ ` hfst c; snd ci = c : B(x) x:A 1. Dependent type theory: Rules Sums: x :A ` B(x) a:A b :B(a) P P x:A B(x) ha; bi : x:A B(x) P P c : x:A B(x) c : x:A B(x) fst c : A snd c : B(fst c) fstha; bi = a : A sndha; bi = b : B X hfst c; snd ci = c : B(x) x:A Substitution: σ : ∆ ! ΓΓ ` a : A ∆ ` a[σ]: A[σ] 1. Dependent type theory: Rules Products: x :A ` B(x) x :A ` b :B(x) Q Q x:A B(x) λx:b : x:A B(x) Q a:A f : x:A B(x) fa : B(a) x : A ` (λx:b)x = b : B(x) Y λx:fx = f : B(x) x:A 1. Dependent type theory: Rules Products: x :A ` B(x) x :A ` b :B(x) Q Q x:A B(x) λx:b : x:A B(x) Q a:A f : x:A B(x) fa : B(a) x : A ` (λx:b)x = b : B(x) Y λx:fx = f : B(x) x:A Substitution: σ : ∆ ! ΓΓ ` a : A ∆ ` a[σ]: A[σ] Proposition (A, Fiore) A representable natural transformation is the same thing as a Category with Families in the sense of Dybjer. 2. Natural models Definition A natural transformation f : Y ! X of presheaves on a category C is called representable if its pullback along any yC ! X is representable: yD / Y f yC / X 2. Natural models Definition A natural transformation f : Y ! X of presheaves on a category C is called representable if its pullback along any yC ! X is representable: yD / Y f yC / X Proposition (A, Fiore) A representable natural transformation is the same thing as a Category with Families in the sense of Dybjer. 2. Natural models Definition A natural transformation f : Y ! X of presheaves on a category C is called representable if its pullback along any yC ! X is representable: for all C 2 C and x 2 X (C) there is given p : D ! C and y 2 Y (D) such that the following is a pullback: y yD / Y yp f yC x / X Proposition (A, Fiore) A representable natural transformation equipped with a choice of such pullbacks is the same thing as a Category with Families in the sense of Dybjer. 2. Natural models Write the objects and arrows of C as σ : ∆ ! Γ, thinking of a category of contexts and substitutions. Let p : U_ ! U be a representable map of presheaves on C. Think of U as the presheaf of types, U_ as the presheaf of terms, and then p gives the type of a term. Γ ` A ≈ A 2 U(Γ) Γ ` a : A ≈ a 2 U(Γ)_ where A = p ◦ a. _ 8 U a p Γ / U A 2. Natural models Naturality of p : U_ ! U means that for any substitution σ : ∆ ! Γ, we have the required action on types and terms: Γ ` A ) ∆ ` A[σ] Γ ` a : A ) ∆ ` a[σ]: A[σ] a[σ] , _ 8 U a p ∆ / Γ / U σ A < A[σ] The remaining operation of context extension Γ ` A Γ; x :A ` is given by the representability of p : U_ ! U as follows. 2. Natural models Given any further τ : ∆0 ! ∆ we clearly have A[σ][τ] = A[σ ◦ τ] a[σ][τ] = a[σ ◦ τ] and for the identity substitution 1 : Γ ! Γ A[1] = A a[1] = a: This is the basic structure of a CwF. 2. Natural models Given any further τ : ∆0 ! ∆ we clearly have A[σ][τ] = A[σ ◦ τ] a[σ][τ] = a[σ ◦ τ] and for the identity substitution 1 : Γ ! Γ A[1] = A a[1] = a: This is the basic structure of a CwF. The remaining operation of context extension Γ ` A Γ; x :A ` is given by the representability of p : U_ ! U as follows. Let pA :Γ:A ! Γ be the pullback of p along A. qA Γ:A / U_ pA p Γ / U A The map qA :Γ:A ! U_ gives the required term Γ:A ` qA : A[pA]. 2. Natural models, context extension Given Γ ` A we need a new context Γ:A together with a substitution pA :Γ:A ! A and a term Γ:A ` qA : A[pA] : 2. Natural models, context extension Given Γ ` A we need a new context Γ:A together with a substitution pA :Γ:A ! A and a term Γ:A ` qA : A[pA] : Let pA :Γ:A ! Γ be the pullback of p along A. qA Γ:A / U_ pA p Γ / U A The map qA :Γ:A ! U_ gives the required term Γ:A ` qA : A[pA]. 2. Natural models, context extension ∆ a (σ;a) Γ:A / U_ qA σ pA p ' Γ / U A The pullback means that given any substitution σ : ∆ ! Γ and term ∆ ` a : A[σ] there is a map (σ; a) : ∆ ! Γ:A satisfying pA(σ; a) = σ qA[σ; a] = a: These are all the laws for a CwF. 2. Natural models, context extension ∆ a (σ;a) Γ:A / U_ σ qA pA p # Γ / U A By the uniqueness of (σ; a), we also have (σ; a) ◦ τ = (σ ◦ τ; a[τ]) for any τ : ∆0 ! ∆ and (pA; qA) = 1: 2. Natural models, context extension ∆ a (σ;a) Γ:A / U_ σ qA pA p # Γ / U A By the uniqueness of (σ; a), we also have (σ; a) ◦ τ = (σ ◦ τ; a[τ]) for any τ : ∆0 ! ∆ and (pA; qA) = 1: These are all the laws for a CwF. • The algebraic homomorphisms correspond to syntactic translations. • There are initial algebras as well as free algebras over basic types and terms. • The rules of type theory are a procedure for generating the free algebras. 2. Natural models and initiality • The notion of a natural model is essentially algebraic. • There are initial algebras as well as free algebras over basic types and terms. • The rules of type theory are a procedure for generating the free algebras. 2. Natural models and initiality • The notion of a natural model is essentially algebraic. • The algebraic homomorphisms correspond to syntactic translations. • The rules of type theory are a procedure for generating the free algebras. 2. Natural models and initiality • The notion of a natural model is essentially algebraic. • The algebraic homomorphisms correspond to syntactic translations. • There are initial algebras as well as free algebras over basic types and terms. 2. Natural models and initiality • The notion of a natural model is essentially algebraic. • The algebraic homomorphisms correspond to syntactic translations. • There are initial algebras as well as free algebras over basic types and terms. • The rules of type theory are a procedure for generating the free algebras. Conversely, given a clan (C; F), there is a natural model in C^, a a a y(f ): y(dom(f )) ! y(cod(f )): f 2F f 2F f 2F The natural model determines a splitting of the fibration F! C. 2. Natural models and tribes Let p : U_ ! U be a natural model. The fibration F! C of all display maps pA :Γ:A ! Γ for all A :Γ ! U form a clan in the sense of Joyal. 2. Natural models and tribes Let p : U_ ! U be a natural model. The fibration F! C of all display maps pA :Γ:A ! Γ for all A :Γ ! U form a clan in the sense of Joyal.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    56 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us