diff options
| author | Pierre-Marie Pédrot | 2017-09-26 18:57:18 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2017-09-26 19:55:11 +0200 |
| commit | 940da8a791b8b1c704f28662fa2e6a8f3ddf040f (patch) | |
| tree | a0b4355d74b5463c949ce41aba5f17d7efa2921f /tests/example2.v | |
| parent | 310ed15a1dd4d33246d8b331133fb7a8e7c1f4e3 (diff) | |
Adding quotations for the assert family of tactics.
Diffstat (limited to 'tests/example2.v')
| -rw-r--r-- | tests/example2.v | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/example2.v b/tests/example2.v index 378abb86a8..20819606db 100644 --- a/tests/example2.v +++ b/tests/example2.v @@ -224,6 +224,12 @@ Qed. Goal True. Proof. +pose True as X. +constructor. +Qed. + +Goal True. +Proof. let x := @foo in set ($x := True) in * |-. constructor. @@ -235,3 +241,22 @@ remember 0 as n eqn: foo at 1. rewrite foo. reflexivity. Qed. + +Goal True. +Proof. +assert (H := 0 + 0). +constructor. +Qed. + +Goal True. +Proof. +assert (exists n, n = 0) as [n Hn]. ++ exists 0; reflexivity. ++ exact I. +Qed. + +Goal True -> True. +Proof. +assert (H : 0 + 0 = 0) by reflexivity. +intros x; exact x. +Qed. |
