File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ convertWhnf r (TSort s) (TSort t) = convSorts s t
232232--let and ann shouldn't appear here since they get reduced away
233233convertWhnf r (TVar _) (TLam _ _) = tcError "implement eta-functions 1"
234234convertWhnf r (TLam x v) (TVar x') = tcError "implement eta-functions 2"
235+ convertWhnf r (TApp _ _) (TLam _ _) = tcError "implement eta-functions 3"
235236convertWhnf r _ _ = tcError "two terms are not the same and aren't convertible"
236237
237238{-# COMPILE AGDA2HS convertWhnf #-}
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ data Conv {α} where
8989 CRedR : @0 ReducesTo v v'
9090 → u ≅ v'
9191 → u ≅ v
92+ -- TODO : eta
93+
9294
9395data ConvBranch {α = α} {c = c} where
9496 CBBranch : (cr1 cr2 : Singleton c) (r1 r2 : Singleton (fieldScope c))
Original file line number Diff line number Diff line change 1+ data Nat : Set where
2+ Zero : Nat
3+ Suc : Nat → Nat
4+
5+
16Id : (A : Set ) (x : A) → A → Set₁
27Id = λ A x y → (P : A → Set ) → P x → P y
38
@@ -19,3 +24,8 @@ eta-functions_three : (A B : Set) (f : A → B) →
1924eta-functions_three = λ A B → λ f → refl (A → B) f
2025
2126
27+ -- f 0 =?= \x -> f 0 x
28+ -- f : Nat -> Nat -> Nat
29+
30+ eta-app-1 : (f : Nat -> Nat -> Nat) -> Id (Nat -> Nat) (f Zero) (\x -> (f Zero (const Nat x x)))
31+ eta-app-1 = λ f → refl (Nat → Nat) (f Zero)
You can’t perform that action at this time.
0 commit comments