Cleaned up Trinitarianism. Added Trinitarianism.Quest0Solutions.agda.
This commit is contained in:
parent
0cd65c6cd9
commit
89844e7113
@ -1,8 +1,9 @@
|
|||||||
module Trinitarianism.Quest0 where
|
module Trinitarianism.Quest0 where
|
||||||
open import Trinitarianism.Quest0Preamble
|
open import Trinitarianism.Quest0Preamble
|
||||||
|
|
||||||
postulate
|
private
|
||||||
u : Level
|
postulate
|
||||||
|
u : Level
|
||||||
|
|
||||||
data ⊤ : Type u where
|
data ⊤ : Type u where
|
||||||
trivial : ⊤
|
trivial : ⊤
|
||||||
|
30
Trinitarianism/Quest0Solutions.agda
Normal file
30
Trinitarianism/Quest0Solutions.agda
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
module Trinitarianism.Quest0Solutions where
|
||||||
|
open import Trinitarianism.Quest0Preamble
|
||||||
|
|
||||||
|
private
|
||||||
|
postulate
|
||||||
|
u : Level
|
||||||
|
|
||||||
|
data ⊤ : Type u where
|
||||||
|
trivial : ⊤
|
||||||
|
|
||||||
|
TrueToTrue : ⊤ → ⊤
|
||||||
|
TrueToTrue = λ x → x
|
||||||
|
|
||||||
|
TrueToTrue' : ⊤ → ⊤
|
||||||
|
TrueToTrue' x = x
|
||||||
|
|
||||||
|
TrueToTrue'' : ⊤ → ⊤
|
||||||
|
TrueToTrue'' trivial = trivial
|
||||||
|
|
||||||
|
TrueToTrue''' : ⊤ → ⊤
|
||||||
|
TrueToTrue''' x = trivial
|
||||||
|
|
||||||
|
data ⊥ : Type u where
|
||||||
|
|
||||||
|
explosion : ⊥ → ⊤
|
||||||
|
explosion x = {!!}
|
||||||
|
|
||||||
|
data ℕ : Type u where
|
||||||
|
zero : ℕ
|
||||||
|
suc : ℕ → ℕ
|
@ -1,10 +1,14 @@
|
|||||||
module Trinitarianism.AsProps.Quest0Solutions where
|
module Trinitarianism.Quest0Solutions where
|
||||||
open import Trinitarianism.AsProps.Quest0Preamble
|
open import Trinitarianism.Quest0Preamble
|
||||||
|
|
||||||
data ⊤ : Prop where
|
private
|
||||||
|
postulate
|
||||||
|
u : Level
|
||||||
|
|
||||||
|
data ⊤ : Type u where
|
||||||
trivial : ⊤
|
trivial : ⊤
|
||||||
|
|
||||||
data ⊥ : Prop where
|
data ⊥ : Type u where
|
||||||
|
|
||||||
TrueToTrue : ⊤ → ⊤
|
TrueToTrue : ⊤ → ⊤
|
||||||
TrueToTrue = λ x → x
|
TrueToTrue = λ x → x
|
||||||
@ -18,7 +22,7 @@ TrueToTrue'' trivial = trivial
|
|||||||
TrueToTrue''' : ⊤ → ⊤
|
TrueToTrue''' : ⊤ → ⊤
|
||||||
TrueToTrue''' x = trivial
|
TrueToTrue''' x = trivial
|
||||||
|
|
||||||
isZero : ℕ → Prop
|
isZero : ℕ → Type u
|
||||||
isZero zero = ⊤
|
isZero zero = ⊤
|
||||||
isZero (suc n) = ⊥
|
isZero (suc n) = ⊥
|
||||||
|
|
||||||
@ -28,7 +32,7 @@ ExistsZero = zero , trivial
|
|||||||
AllZero→⊥ : ((x : ℕ) → isZero x) → ⊥
|
AllZero→⊥ : ((x : ℕ) → isZero x) → ⊥
|
||||||
AllZero→⊥ h = h 1
|
AllZero→⊥ h = h 1
|
||||||
|
|
||||||
data _∨_ (P Q : Prop) : Prop where
|
data _∨_ (P Q : Type u) : Type u where
|
||||||
left : P → P ∨ Q
|
left : P → P ∨ Q
|
||||||
right : Q → P ∨ Q
|
right : Q → P ∨ Q
|
||||||
|
|
BIN
_build/2.6.3/agda/Trinitarianism/Quest0Solutions.agdai
Normal file
BIN
_build/2.6.3/agda/Trinitarianism/Quest0Solutions.agdai
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user