Skip to content

Commit

Permalink
П-ind
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Oct 23, 2023
1 parent f8a1221 commit 30f2a6e
Show file tree
Hide file tree
Showing 24 changed files with 816 additions and 776 deletions.
142 changes: 78 additions & 64 deletions foundations/mltt/pi/index.html

Large diffs are not rendered by default.

64 changes: 45 additions & 19 deletions foundations/mltt/pi/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ block content
$$

+code.
def lambda (A: U) (B: A → U) (b: Pi A B) : Pi A B := λ (x : A), b x
def lam (A B: U) (f: A → B) : A → B := λ (x : A), f x
def lambda (A: U) (B: A → U) (b: Pi A B)
: Pi A B := λ (x : A), b x

def lam (A B: U) (f: A → B)
: AB := λ (x : A), f x
br.

+tex.
Expand All @@ -77,7 +80,19 @@ block content
h2 Elimination

+tex.
$\mathbf{Definition\ 1.3}$ ($\lambda$-application).
$\mathbf{Definition\ 1.3}$ ($\Pi$-Induction Principle). States that
if predicate holds for lambda function
then there is a function from function space to the space of predicate.
+code.
def П-ind (A : U) (B : A -> U)
(C : Pi A B → U)
(g: Π (x: Pi A B), C x)
: П (p: Pi A B), C p
:= \ (p: Pi A B), g p
br.

+tex.
$\mathbf{Definition\ 1.3.1}$ ($\lambda$-application).
Application reduces the term by using recursive substitution.

+tex(true).
Expand All @@ -86,16 +101,23 @@ block content
$$

+code.
def apply (A: U) (B: A → U) (f: Pi A B) (a: A) : B a := f a
def app (A B: U) (f: A → B) (x: A): B := f x
def apply (A: U) (B: A → U)
(f: Pi A B) (a: A) : B a := f a

def app (A B: U) (f: A → B)
(x: A): B := f x
br.

+tex.
$\mathbf{Definition\ 1.3.1}$ (Composition).
$\mathbf{Definition\ 1.3.2}$ (Composition).
Composition is using application of appropriate singnatures.

+code.
def ∘ᵀ (α β γ: U) : U := (β → γ) → (α → β) → (α → γ)
def ∘ (α β γ : U) : ∘ᵀ α β γ := λ (g: β → γ) (f: α → β) (x: α), g (f x)
def ∘ᵀ (α β γ: U) : U
:= (β γ)(α β)(α γ)

def ∘ (α β γ : U) : ∘ᵀ α β γ
:= λ (g: β γ) (f: α β) (x: α), g (f x)
br.

h2 Computation
Expand Down Expand Up @@ -141,8 +163,8 @@ block content
This property behaves functoriality as if paths are groupoid morphisms and types are objects.

+code.
FiberPi (B: U) (F: B -> U) (y: B)
: Path U (fiber (Sigma B F) B (pi1 B F) y) (F y)
def FiberPi (B: U) (F: B -> U) (y: B)
: Path U (fiber (Sigma B F) B (pi1 B F) y) (F y)

+tex.
$\mathbf{Theorem\ 1.7}$ (Trivial Fiber equals Family of Sets).
Expand All @@ -154,29 +176,33 @@ block content
homotopies between them, then these homotopies are equal.

+code.
setPi (A: U) (B: A -> U) (h: (x: A) -> isSet (B x)) (f g: Pi A B)
(p q: Path (Pi A B) f g) : Path (Path (Pi A B) f g) p q
def setPi (A: U) (B: A -> U)
(h: П (x: A), isSet (B x)) (f g: Pi A B)
(p q: Path (Pi A B) f g)
: Path (Path (Pi A B) f g) p q
br.

+tex.
$\mathbf{Theorem\ 1.9}$ (HomSet). If codomain is set then space of sections is a set.

+code.
setFun (A B : U) (_: isSet B) : isSet (A -> B)
def setFun (A B : U) (_: isSet B) : isSet (A -> B)
br.

+tex.
$\mathbf{Theorem\ 1.10}$ (Contractability). If domain and codomain is contractible then
the space of sections is contractible.

+code.
piIsContr (A: U) (B: A -> U) (u: isContr A)
(q: (x: A) -> isContr (B x))
: isContr (Pi A B)
def piIsContr (A: U) (B: A -> U) (u: isContr A)
(q: П (x: A), isContr (B x))
: isContr (Pi A B)
br

+code.
pathPi (A:U) (B:A->U) (f g : Pi A B)
: Path U (Path (Pi A B) f g)
((x:A) -> Path (B x) (f x) (g x))
def pathPi (A: U) (B: A -> U) (f g : Pi A B)
: Path U (Path (Pi A B) f g)
((x:A) -> Path (B x) (f x) (g x))
br

h1 Interpretations
Expand Down
56 changes: 28 additions & 28 deletions foundations/mltt/sigma/index.html

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions foundations/modal/infinitesimal/index.html

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions foundations/modal/localization/index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions foundations/modal/modality/index.html

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions foundations/univalent/equiv/index.html

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions foundations/univalent/funext/index.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions foundations/univalent/iso/index.html

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions foundations/univalent/path/index.html

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions intro/index.html

Large diffs are not rendered by default.

86 changes: 43 additions & 43 deletions mathematics/algebra/algebra/index.html

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions mathematics/algebra/homology/index.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions mathematics/analysis/set/index.html

Large diffs are not rendered by default.

0 comments on commit 30f2a6e

Please sign in to comment.