aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorMaxime Dénès2017-06-14 15:08:43 +0200
committerMaxime Dénès2017-06-14 15:08:43 +0200
commitdcc5064bbc6f01b498abfdf80f0ea13a26381926 (patch)
treec2855cff0206cf55b8a09ad91e087d6ee5a9d845 /dev
parentaed7a86b2147e70bebd50a4d19bac33908da334b (diff)
parent0fad09306982a88ff8d633d36abdc440dd542ab3 (diff)
Merge PR#622: Change the default flag value for Refine.refine
Diffstat (limited to 'dev')
-rw-r--r--dev/doc/changes.txt3
-rw-r--r--dev/doc/proof-engine.md7
2 files changed, 6 insertions, 4 deletions
diff --git a/dev/doc/changes.txt b/dev/doc/changes.txt
index 631b5f5aaf..0728608f31 100644
--- a/dev/doc/changes.txt
+++ b/dev/doc/changes.txt
@@ -154,6 +154,9 @@ In Coqlib / reference location:
- The tclWEAK_PROGRESS and tclNOTSAMEGOAL tacticals were removed. Their usecase
was very specific. Use tclPROGRESS instead.
+- The unsafe flag of the Refine.refine function and its variants has been
+ renamed and dualized into typecheck and has been made mandatory.
+
** Ltac API **
Many Ltac specific API has been moved in its own ltac/ folder. Amongst other
diff --git a/dev/doc/proof-engine.md b/dev/doc/proof-engine.md
index db69b08a20..8f96ac223f 100644
--- a/dev/doc/proof-engine.md
+++ b/dev/doc/proof-engine.md
@@ -42,14 +42,13 @@ goal holes thanks to the `Refine` module, and in particular to the
`Refine.refine` primitive.
```ocaml
-val refine : ?unsafe:bool -> Constr.t Sigma.run -> unit tactic
-(** In [refine ?unsafe t], [t] is a term with holes under some
+val refine : typecheck:bool -> Constr.t Sigma.run -> unit tactic
+(** In [refine typecheck t], [t] is a term with holes under some
[evar_map] context. The term [t] is used as a partial solution
for the current goal (refine is a goal-dependent tactic), the
new holes created by [t] become the new subgoals. Exceptions
raised during the interpretation of [t] are caught and result in
- tactic failures. If [unsafe] is [false] (default is [true]) [t] is
- type-checked beforehand. *)
+ tactic failures. If [typecheck] is [true] [t] is type-checked beforehand. *)
```
In a first approximation, we can think of `'a Sigma.run` as