aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2017-04-13 19:04:44 -0400
committerGravatar Jason Gross <jgross@mit.edu>2017-04-13 19:04:44 -0400
commit8feb97219c8860dd0d693dae59d6f5173f747537 (patch)
treec3609b618f63de342e3a711c23c2aa9298a1f444
parent0d806d4a16820301926a6b511b3ccb65ee17b114 (diff)
Add Named.Syntax.Interp
-rw-r--r--src/Compilers/Named/Syntax.v5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Compilers/Named/Syntax.v b/src/Compilers/Named/Syntax.v
index 0af2bb33e..035d7fb49 100644
--- a/src/Compilers/Named/Syntax.v
+++ b/src/Compilers/Named/Syntax.v
@@ -65,6 +65,10 @@ Module Export Named.
Definition interp (ctx : Context) {t} (e : expr t)
: interp_flat_type (domain t) -> option (interp_flat_type (codomain t))
:= fun v => @interpf (extend ctx (Abs_name e) v) _ (invert_Abs e).
+
+ Definition Interp {t} (e : expr t)
+ : interp_flat_type (domain t) -> option (interp_flat_type (codomain t))
+ := interp empty e.
End with_val_context.
End language.
End Named.
@@ -79,6 +83,7 @@ Global Arguments invert_Abs {_ _ _ _} _.
Global Arguments Abs_name {_ _ _ _} _.
Global Arguments interpf {_ _ _ _ _ interp_op ctx t} _.
Global Arguments interp {_ _ _ _ _ interp_op ctx t} _ _.
+Global Arguments Interp {_ _ _ _ _ interp_op t} _ _.
Notation "'slet' x := A 'in' b" := (LetIn _ x A%nexpr b%nexpr) : nexpr_scope.
Notation "'λn' x .. y , t" := (Abs x .. (Abs y t%nexpr) .. ) : nexpr_scope.