a
This commit is contained in:
parent
d24d992786
commit
8c4fe03730
2 changed files with 20 additions and 1 deletions
|
@ -78,4 +78,4 @@ progress : ∀ {M A} → ∅ ⊢ M ⦂ A → Progress M
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
-- preservation
|
-- preservation
|
||||||
----------------------------------------------------
|
----------------------------------------------------
|
||||||
preserve : ∀ {M N A} → ∅ ⊢ M ⦂ A → M —→ N → ∅ ⊢ N ⦂ A
|
preserve : ∀ {M N A} → ∅ ⊢ M ⦂ A → M —→ N → ∅ ⊢ N ⦂ A
|
||||||
|
|
19
src/Project/Lambda1.agda
Normal file
19
src/Project/Lambda1.agda
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
module Project.Lambda1 where
|
||||||
|
|
||||||
|
open import Data.Nat using (ℕ; suc; _≟_)
|
||||||
|
open import Relation.Binary.PropositionalEquality using (_≡_)
|
||||||
|
open import Relation.Nullary using (yes; no; ¬_)
|
||||||
|
|
||||||
|
data Term : Set where
|
||||||
|
`_ : ℕ → Term
|
||||||
|
ƛ_ : Term → Term
|
||||||
|
_·_ : Term → Term → Term
|
||||||
|
|
||||||
|
`suc _ : Term → Term
|
||||||
|
`zero : Term
|
||||||
|
|
||||||
|
data Value : Term → Set where
|
||||||
|
V-ƛ : ∀ {N} → Value (ƛ N)
|
||||||
|
|
||||||
|
data Context : Set where
|
||||||
|
⊙ : Context
|
Loading…
Reference in a new issue