@@ -134,7 +134,7 @@ data Elab : Type -> Type where
134 prim__Forall : TTName -> Raw -> Elab ()
134 prim__Forall : TTName -> Raw -> Elab ()
135 prim__PatVar : TTName -> Elab ()
135 prim__PatVar : TTName -> Elab ()
136 prim__PatBind : TTName -> Elab ()
136 prim__PatBind : TTName -> Elab ()
137− -- TODO: letbind
137+ prim__LetBind : TTName -> Raw -> Raw -> Elab ()
139 prim__Compute : Elab ()
139 prim__Compute : Elab ()
140 prim__Normalise : (List (TTName, Binder TT)) -> TT -> Elab TT
140 prim__Normalise : (List (TTName, Binder TT)) -> TT -> Elab TT
@@ -348,6 +348,14 @@ namespace Tactics
348 patbind : TTName -> Elab ()
348 patbind : TTName -> Elab ()
349 patbind n = prim__PatBind n
349 patbind n = prim__PatBind n
351+ ||| Introduce a new let binding
353+ ||| @ n the name to let bind
354+ ||| @ ty the type of the term to be let-bound
355+ ||| @ tm the term to be bound
356+ letbind : (n : TTName) -> (ty, tm : Raw) -> Elab ()
357+ letbind n ty tm = prim__LetBind n ty tm
351 ||| Normalise the goal.
359 ||| Normalise the goal.
352 compute : Elab ()
360 compute : Elab ()
353 compute = prim__Compute
361 compute = prim__Compute