aboutsummaryrefslogtreecommitdiff
path: root/doc/plugin_tutorial/tuto3/src/tuto_tactic.ml
diff options
context:
space:
mode:
authorGaëtan Gilbert2017-10-31 17:04:02 +0100
committerGaëtan Gilbert2019-03-14 13:27:38 +0100
commit23f84f37c674a07e925925b7e0d50d7ee8414093 (patch)
tree7e470de5769c994d8df37c44fed12cf299d5b194 /doc/plugin_tutorial/tuto3/src/tuto_tactic.ml
parent75508769762372043387c67a9abe94e8f940e80a (diff)
Add relevance marks on binders.
Kernel should be mostly correct, higher levels do random stuff at times.
Diffstat (limited to 'doc/plugin_tutorial/tuto3/src/tuto_tactic.ml')
-rw-r--r--doc/plugin_tutorial/tuto3/src/tuto_tactic.ml10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/plugin_tutorial/tuto3/src/tuto_tactic.ml b/doc/plugin_tutorial/tuto3/src/tuto_tactic.ml
index 8f2c387d09..2d541087ce 100644
--- a/doc/plugin_tutorial/tuto3/src/tuto_tactic.ml
+++ b/doc/plugin_tutorial/tuto3/src/tuto_tactic.ml
@@ -116,11 +116,11 @@ let repackage i h_hyps_id = Goal.enter begin fun gl ->
mkApp (c_U (), [| ty2; mkVar h_hyps_id|]) |]) in
Refine.refine ~typecheck:true begin fun evd ->
let evd, new_goal = Evarutil.new_evar env evd
- (mkProd (Names.Name.Anonymous,
- mkApp(c_H (), [| new_packed_type |]),
- Vars.lift 1 concl)) in
- evd, mkApp (new_goal,
- [|mkApp(c_M (), [|new_packed_type; new_packed_value |]) |])
+ (mkArrowR (mkApp(c_H (), [| new_packed_type |]))
+ (Vars.lift 1 concl))
+ in
+ evd, mkApp (new_goal,
+ [|mkApp(c_M (), [|new_packed_type; new_packed_value |]) |])
end
end