aboutsummaryrefslogtreecommitdiff
path: root/tuto1/src/simple_check.ml
diff options
context:
space:
mode:
authorYves Bertot2018-05-04 09:12:06 +0200
committerYves Bertot2018-05-04 09:12:06 +0200
commit673f55be2b5139f154bbd84e72550a7c7c58341a (patch)
treeeb99108b50cf88f0fc33680f3c967fc2282132c1 /tuto1/src/simple_check.ml
parent93273e29708ff5c24024bde0e4b9955cb94a0dc0 (diff)
This revision contains a simple Check command.
Diffstat (limited to 'tuto1/src/simple_check.ml')
-rw-r--r--tuto1/src/simple_check.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tuto1/src/simple_check.ml b/tuto1/src/simple_check.ml
new file mode 100644
index 0000000000..05be6632a0
--- /dev/null
+++ b/tuto1/src/simple_check.ml
@@ -0,0 +1,9 @@
+let simple_check value_with_constraints =
+ begin
+ let evalue, st = value_with_constraints in
+ let evd = Evd.from_ctx st in
+ let j = Termops.on_judgment EConstr.of_constr
+ (Arguments_renaming.rename_typing (Global.env())
+ (EConstr.to_constr evd evalue)) in
+ let {Environ.uj_type=x}=j in x
+ end \ No newline at end of file