diff options
| author | Pierre-Marie Pédrot | 2020-03-08 00:29:28 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-03-08 00:29:28 +0100 |
| commit | 47a65ee1db1ea8320e27da880f53cfa87d8e0f99 (patch) | |
| tree | d04a6c225d2b9726d37cd8c9d2adeadd87c7b766 /test-suite | |
| parent | ad40a570408de806a2af2ce96241c74c91d90951 (diff) | |
| parent | 9168e0e23142ccafbe8b6272551dbb739f72ae95 (diff) | |
Merge PR #11740: Ltac2: Add notation for enough and eenough
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/ltac2/example2.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/ltac2/example2.v b/test-suite/ltac2/example2.v index c953d25061..ac92ca34ef 100644 --- a/test-suite/ltac2/example2.v +++ b/test-suite/ltac2/example2.v @@ -261,6 +261,25 @@ assert (H : 0 + 0 = 0) by reflexivity. intros x; exact x. Qed. +Goal True. +Proof. +enough (H := 0 + 0). +constructor. +Qed. + +Goal True. +Proof. +enough (exists n, n = 0) as [n Hn]. ++ exact I. ++ exists 0; reflexivity. +Qed. + +Goal True -> True. +Proof. +enough (H : 0 + 0 = 0) by (intros x; exact x). +reflexivity. +Qed. + Goal 1 + 1 = 2. Proof. change (?a + 1 = 2) with (2 = $a + 1). |
