Skip to content

Commit

Permalink
Completed adequacy (adeq) proof for naturals.
Browse files Browse the repository at this point in the history
  • Loading branch information
gebn committed Feb 20, 2015
1 parent 08d6fa4 commit 9d9a7e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Proofs/Adequacy.agda
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ adeq : (T : Set) (e : Exp T) (p : Program) (σ : State) (n : ℕ) →
adeq .𝔹 (B _) _ _ _ () -- nothing ≡ just n is false

-- naturals
adeq .ℕ (N x) p σ n eq = {!!}
adeq .ℕ (N .zero) p σ zero refl = suc zero , refl -- just zero is trivially equal to just (zero ∷ [])
adeq .ℕ (N .(suc n)) p σ (suc n) refl = suc n , refl -- just (suc n) is trivially equal to just (suc n ∷ [])

-- variables
adeq .ℕ (V x) p σ n eq = {!!}
Expand Down

0 comments on commit 9d9a7e7

Please sign in to comment.