Skip to content

Commit 0d01258

Browse files
committed
wip
1 parent b3692bc commit 0d01258

3 files changed

Lines changed: 39 additions & 32 deletions

File tree

doc/anders.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
\end{CCSXML}
1818

1919
\ccsdesc[300]{Theory of computation~Lambda calculus}
20-
\keywords{Homotopy Type Theory, Differential Geometry, Modal Type Theory, Cohesive Type Theory}
20+
\keywords{Homotopy Type Theory, Differential Geometry, Cohesive Type Theory, Simplicial Type Theory}
2121

2222
\nolinenumbers
2323
\hideLIPIcs

library/foundations/modal/stt.anders

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
-- Simplicial Type Theory (STT) Core Verification
1+
--- Simplicial Type Theory (STT) Core Verification
22

33
import library/foundations/modal/flat
44
import library/foundations/modal/sharp
55
import library/foundations/modal/twisted
66

7-
-- Modal Pi Types (Π (x :_μ A), B)
8-
-- tracked via modal annotations μ ∈ {id, ♭, ♯, tw, ...}
7+
--- Modal Pi Types (Π (x :_μ A), B)
8+
--- tracked via modal annotations μ ∈ {id, ♭, ♯, tw, ...}
99

10-
-- Reality Check: Huber Equations (Transport) for Modal Pi
11-
-- transpⁱ (Π (x :_μ A), B) φ u₀ v = transpⁱ B[x/w] φ (u₀ w(i/0))
12-
def trans-ModalPi-is-correct (A : I -> U) (B : (i : I) -> A i -> U) (phi : I) (u0 : (x :_♭ A 0) -> B 0 x) :
13-
Path ((x :_♭ A 1) -> B 1 x) (transp (<i> (x :_♭ A i) -> B i x) phi u0)
14-
(\(v : A 1) -> transp (<i> B i (tFill A phi v i)) phi (u0 (tFill A phi v 0)))
10+
--- Reality Check: Huber Equations (Transport) for Modal Pi
11+
--- transpⁱ (Π (x :_μ A), B) φ u₀ v = transpⁱ B[x/w] φ (u₀ w(i/0))
12+
def trans-ModalPi-is-correct (A : I -> U) (B : (i : I) -> A i -> U)
13+
(phi : I) (u0 : (x :_♭ A 0) -> B 0 x)
14+
: Path ((x :_♭ A 1) -> B 1 x) (transp (<i> (x :_♭ A i) -> B i x) phi u0)
15+
(\(v : A 1) -> transp (<i> B i (tFill A phi v i)) phi (u0 (tFill A phi v 0)))
1516
:= refl ((x :_♭ A 1) -> B 1 x) (\(v : A 1) -> transp (<i> B i (tFill A phi v i)) phi (u0 (tFill A phi v 0)))
1617

17-
-- Reality Check: Huber Equations (Composition) for Modal Pi
18-
-- hcompⁱ (Π (x :_μ A), B) [φ ↦ u] u₀ v = hcompⁱ B[x/v] [φ ↦ u v] (u₀ v)
19-
def hcomp-ModalPi-is-correct (A : U) (B : A -> U) (phi : I) (u : I -> (x :_♭ A) -> B x) (u0 : (x :_♭ A) -> B x) :
20-
Path ((x :_♭ A) -> B x) (hcomp (<i> (x :_♭ A) -> B x) [ (phi=1) -> <i> u i ] u0)
21-
(\(v : A) -> hcomp (<i> B v) [ (phi=1) -> <i> u i v ] (u0 v))
22-
:= refl ((x :_♭ A) -> B x) (\(v : A) -> hcomp (<i> B v) [ (phi=1) -> <i> u i v ] (u0 v))
18+
--- Reality Check: Huber Equations (Composition) for Modal Pi
19+
--- hcompⁱ (Π (x :_μ A), B) [φ ↦ u] u₀ v = hcompⁱ B[x/v] [φ ↦ u v] (u₀ v)
20+
def hcomp-ModalPi-is-correct (A : U) (B : A -> U) (phi : I)
21+
(u : I -> (x :_♭ A) -> B x) (u0 : (x :_♭ A) -> B x)
22+
: Path ((x :_♭ A) -> B x) (hcomp (<i> (x :_♭ A) -> B x) [ (phi=1) -> <i> u i ] u0)
23+
(\(v : A) -> hcomp (<i> B v) [ (phi=1) -> <i> u i v ] (u0 v))
24+
:= refl ((x :_♭ A) -> B x) (\(v : A) -> hcomp (<i> B v) [ (phi=1) -> <i> u i v ] (u0 v))
25+
26+
--- Uniqueness (η-rule) for Modal Pi
27+
def ModalPi-Eta (A : U) (B : A -> U) (f : (x :_♭ A) -> B x)
28+
: Path ((x :_♭ A) -> B x) f (\(x :_♭ A) -> f x)
29+
:= <p> f
2330

24-
-- Uniqueness (η-rule) for Modal Pi
25-
def ModalPi-Eta (A : U) (B : A -> U) (f : (x :_♭ A) -> B x) :
26-
Path ((x :_♭ A) -> B x) f (\(x :_♭ A) -> f x)
27-
:= <p> f
Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
1-
-- Twisted Modality (tw) for Simplicial Type Theory
1+
--- Twisted Modality (tw) for Simplicial Type Theory
22

3-
-- Definitions
3+
--- Definitions
44
def Twisted (A : U) : U := tw A
55
def TwistedUnit (A : U) (a : A) : tw A := tw-unit a
6-
def TwistedInd (A : U) (C : tw A -> U) (f : (x : A) -> C (tw-unit x)) (z : tw A) : C z := ind-tw A C f z
6+
def TwistedInd (A : U) (C : tw A -> U) (f : (x : A) -> C (tw-unit x)) (z : tw A) : C z
7+
:= ind-tw A C f z
78

8-
-- Uniqueness (η-rule)
9-
def TwistedEta (A : U) (x : tw A) : Path (tw A) x (tw-unit (ind-tw A (\_ -> A) (\a -> a) x)) := <p> x
9+
--- Uniqueness (η-rule)
10+
def TwistedEta (A : U) (x : tw A) : Path (tw A) x (tw-unit (ind-tw A (\_ -> A) (\a -> a) x))
11+
:= <p> x
1012

11-
-- Reality Check: Huber Equations (Transport)
12-
-- transpⁱ (tw A) φ (tw-unit a) = tw-unit (transpⁱ A φ a)
13+
--- Reality Check: Huber Equations (Transport)
14+
--- transpⁱ (tw A) φ (tw-unit a) = tw-unit (transpⁱ A φ a)
1315
def trans-tw-is-correct (A : I -> U) (phi : I) (u0 : A 0) :
14-
Path (tw (A 1)) (transp (<i> tw (A i)) phi (tw-unit u0)) (tw-unit (transp (<i> A i) phi u0))
15-
:= refl (tw (A 1)) (tw-unit (transp (<i> A i) phi u0))
16+
Path (tw (A 1)) (transp (<i> tw (A i)) phi (tw-unit u0)) (tw-unit (transp (<i> A i) phi u0))
17+
:= refl (tw (A 1)) (tw-unit (transp (<i> A i) phi u0))
1618

17-
-- Reality Check: Huber Equations (Composition)
18-
-- hcompⁱ (tw A) [φ ↦ tw-unit u] (tw-unit u₀) = tw-unit (hcompⁱ A [φ ↦ u] u₀)
19+
--- Reality Check: Huber Equations (Composition)
20+
--- hcompⁱ (tw A) [φ ↦ tw-unit u] (tw-unit u₀) = tw-unit (hcompⁱ A [φ ↦ u] u₀)
1921
def hcomp-tw-is-correct (A : U) (phi : I) (u : I -> A) (u0 : A) :
20-
Path (tw A) (hcomp (<i> tw A) [ (phi=1) -> <i> tw-unit (u i) ] (tw-unit u0)) (tw-unit (hcomp (<i> A) [ (phi=1) -> <i> u i ] u0))
21-
:= refl (tw A) (tw-unit (hcomp (<i> A) [ (phi=1) -> <i> u i ] u0))
22+
Path (tw A) (hcomp (<i> tw A) [ (phi=1) -> <i> tw-unit (u i) ] (tw-unit u0))
23+
(tw-unit (hcomp (<i> A) [ (phi=1) -> <i> u i ] u0))
24+
:= refl (tw A) (tw-unit (hcomp (<i> A) [ (phi=1) -> <i> u i ] u0))
25+

0 commit comments

Comments
 (0)