File tree 1 file changed +0
-13
lines changed 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -142,19 +142,6 @@ The `define-eta-expansion` macro will automatically construct a function
142
142
`R p → R q` that eta-expands the first record out into a copattern definition.
143
143
-}
144
144
145
- make-eta-expansion : Name → Maybe Name → TC Term → TC ⊤
146
- make-eta-expansion nm lemma? make-tp = do
147
- tp ← make-tp
148
- -- Get the type of the predeclared binding.
149
- -- Next, grab the telescope, and use it to construct a function
150
- -- that simply returns the last argument with the provided
151
- -- lemma applied.
152
- let tele , _ = pi-view tp
153
- let tm = case lemma? of λ where
154
- (just lemma) → tel→lam tele (def lemma (argN (var 0 []) ∷ []))
155
- nothing → tel→lam tele (var 0 [])
156
- make-copattern false nm tm tp
157
-
158
145
define-eta-expansion : Name → TC ⊤
159
146
define-eta-expansion nm = do
160
147
tp ← reduce =<< infer-type (def nm [])
You can’t perform that action at this time.
0 commit comments