blob: bf4e7133b7e23a886cc0e4016c6f498eba26dd1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(* Use of idents bound to ltac names in a "match" *)
Definition foo : Type.
Proof.
let x := fresh "a" in
refine (forall k : nat * nat, let '(x, _) := k in (_ : Type)).
exact (a = a).
Defined.
Goal foo.
intros k. elim k. (* elim because elim keeps names *)
intros.
Check a. (* We check that the name is "a" *)
Abort.
|