@@ -134,7 +134,7 @@ data Elab : Type -> Type where
134134 prim__Forall : TTName -> Raw -> Elab ()
135135 prim__PatVar : TTName -> Elab ()
136136 prim__PatBind : TTName -> Elab ()
137− -- TODO: letbind
137+ prim__LetBind : TTName -> Raw -> Raw -> Elab ()
138138
139139 prim__Compute : Elab ()
140140 prim__Normalise : (List (TTName, Binder TT)) -> TT -> Elab TT
@@ -348,6 +348,14 @@ namespace Tactics
348348 patbind : TTName -> Elab ()
349349 patbind n = prim__PatBind n
350350
351+ ||| Introduce a new let binding
352+ |||
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
358+
351359 ||| Normalise the goal.
352360 compute : Elab ()
353361 compute = prim__Compute