diff options
| author | Pierre-Marie Pédrot | 2018-09-26 14:03:35 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2018-09-26 14:03:35 +0200 |
| commit | 871c694e5395e85296f4c61ba4039f04704b20b3 (patch) | |
| tree | 7f61099c11a30aa4fa82810fd7949d5ffb1a7bc4 /test-suite | |
| parent | 8292c485bde7911bf8a4d626faf9292ba0016e97 (diff) | |
| parent | 8d1a5297d55eb0cd02695c81f6dea7aef6f62d31 (diff) | |
Merge PR #7309: Made names of existential variables interpretable as Ltac variables.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/ltac.v | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test-suite/success/ltac.v b/test-suite/success/ltac.v index 4404ff3f16..448febed25 100644 --- a/test-suite/success/ltac.v +++ b/test-suite/success/ltac.v @@ -377,3 +377,30 @@ f y true. Abort. End LtacNames. + +(* Test binding of the name of existential variables in Ltac *) + +Module EvarNames. + +Ltac pick x := eexists ?[x]. +Goal exists y, y = 0. +pick foo. +[foo]:exact 0. +auto. +Qed. + +Ltac goal x := refine ?[x]. + +Goal forall n, n + 0 = n. +Proof. + induction n; [ goal Base | goal Rec ]. + [Base]: { + easy. + } + [Rec]: { + simpl. + now f_equal. + } +Qed. + +End EvarNames. |
