aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGaëtan Gilbert2019-10-30 15:24:32 +0100
committerGaëtan Gilbert2019-11-13 20:16:13 +0100
commit85aca1dda24c5933d803b195570514df219e51d8 (patch)
treea16ed1854be76b43a640c3fcf9f4534f9861c8a0 /plugins
parentdd4a0794821725da238f69f89e8da022e78bf72b (diff)
Return of Refine Instance as an attribute.
We can now do `#[refine] Instance : Bla := bli.` to enter proof mode with `bli` as a starting refinement. If `bli` is enough to define the instance we still enter proof mode, keeping things nicely predictable for the stm.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ltac/rewrite.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ltac/rewrite.ml b/plugins/ltac/rewrite.ml
index 1493092f2f..6be358be21 100644
--- a/plugins/ltac/rewrite.ml
+++ b/plugins/ltac/rewrite.ml
@@ -2023,7 +2023,8 @@ let add_morphism atts binders m s n =
let _id, lemma = Classes.new_instance_interactive
~global:atts.global ~poly:atts.polymorphic
instance_name binders instance_t
- ~generalize:false ~tac ~hook:(declare_projection n instance_id) Hints.empty_hint_info
+ ~generalize:false ~tac ~hook:(declare_projection n instance_id)
+ Hints.empty_hint_info None
in
lemma (* no instance body -> always open proof *)