| 1 |
(* Argument names don't get mangled *) |
| 2 |
Set Mangle Names. |
| 3 |
Lemma leibniz_equiv_iff {A : Type} (x y : A) : True. |
| 4 |
Proof. tauto. Qed. |
| 5 |
Check leibniz_equiv_iff (A := nat) 2 3 : True. |
| 6 |
Unset Mangle Names. |
| 7 |
|
| 8 |
(* Coq doesn't make up names for arguments *) |
| 9 |
Definition bar (a a : nat) : nat := 3. |
| 10 |
Arguments bar _ _ : assert. |
| 11 |
Fail Arguments bar a a0 : assert. |
| 12 |
|
| 13 |
(* This definition caused an anomaly in a version of this PR |
| 14 |
without the change to prepare_implicits *) |
| 15 |
Set Implicit Arguments. |
| 16 |
Definition foo (_ : nat) (_ : @eq nat ltac:(assumption) 2) : True := I. |
| 17 |
Fail Check foo (H := 2). |
| 18 |
|
| 19 |
Definition baz (a b : nat) := b. |
| 20 |
Arguments baz a {b}. |
| 21 |
Set Mangle Names. |
| 22 |
Definition baz2 (a b : nat) := b. |
| 23 |
Arguments baz2 a {b}. |
| 24 |
Unset Mangle Names. |