1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Class C := c {}.
Local Existing Instance c.
Require Ltac2.Ltac2.
Ltac resolve_tc := ltac2:(x |- Std.resolve_tc (Option.get (Ltac1.to_constr x))).
(* check that exact doesn't do the resolution *)
Lemma bad : C.
Proof.
let x := open_constr:(_:C) in exact x.
Fail Qed.
Unshelve.
exact _.
Qed.
Lemma foo : C.
Proof.
let x := open_constr:(_:C) in resolve_tc x; exact x.
Qed.
(* resolve_tc doesn't focus *)
Lemma bar : C.
Proof.
let x := open_constr:(_:C) in exact x; resolve_tc x.
Qed.
|