@@ -128,14 +128,14 @@ Abort.
128128(** Testing de Morgan laws. *)
129129
130130Require Import Waterproof.Libs.Negation.
131- #[export] Hint Extern 1 => solve_by_manipulating_negation (fun () => ()) : wp_negation_logic.
131+ #[export] Hint Extern 1 => ltac2: solve_by_manipulating_negation (fun () => ()) : wp_negation_logic.
132132
133133(** Level 1 *)
134134Local Parameter P1 : R -> Prop.
135135(* Test 15 *)
136136Goal ~ (forall x : R, P1 x) -> (exists x : R, ~ (P1 x)).
137137Proof .
138- intro H.
138+ ltac2: intro H.
139139 We conclude that (there exists x : ℝ, ¬ P1 x).
140140Qed .
141141
@@ -150,14 +150,14 @@ Local Parameter P2 : R -> R -> Prop.
150150(* Test 17 *)
151151Goal ~ (forall x : R, exists y : R, P2 x y) -> (exists x : R, ~ (exists y : R, P2 x y)).
152152Proof .
153- intro H.
153+ ltac2: intro H.
154154 We conclude that (there exists x : ℝ, ~ (exists y : R, P2 x y)).
155155Qed .
156156
157157(* Test 17 *)
158158Goal (exists x : R, ~ (exists y : R, P2 x y)) -> (exists x : R, forall y : R, ~ P2 x y).
159159Proof .
160- intro H.
160+ ltac2: intro H.
161161 We conclude that (exists x : R, forall y : R, ~ P2 x y).
162162Qed .
163163
166166Local Parameter P3 : R -> R -> R -> Prop.
167167Goal ~ (forall x : R, exists y : R, P2 x y) -> (exists x : R, ~ (exists y : R, P2 x y)).
168168Proof .
169- intro H.
169+ ltac2: intro H.
170170 We conclude that (there exists x : ℝ, ~ (exists y : R, P2 x y)).
171171Qed .
172172
@@ -180,7 +180,7 @@ Goal ~ (forall eps : R, eps > 0 -> exists delta : R, delta > 0 -> forall x : R,
180180 (exists eps : R, eps > 0 /\ ~(exists delta : R, delta > 0 -> forall x : R,
181181 0 < Rdist x a < delta -> Rdist (f x) L < eps)).
182182Proof .
183- intro H.
183+ ltac2: intro H.
184184 We conclude that (there exists eps : ℝ , eps > 0
185185 ∧ ¬ (there exists delta : ℝ, delta > 0 ⇨ for all x : ℝ,
186186 0 < Rdist x a < delta ⇨ Rdist (f x) L < eps)).
@@ -233,13 +233,13 @@ Abort.
233233(** Testing de Morgan laws. *)
234234
235235Require Import Waterproof.Libs.Negation.
236- #[export] Hint Extern 1 => (solve_by_manipulating_negation (fun () => ())) : wp_negation_logic.
236+ #[export] Hint Extern 1 => ltac2: (solve_by_manipulating_negation (fun () => ())) : wp_negation_logic.
237237
238238(** Level 1 *)
239239(* Test 25 *)
240240Goal ~ (∀ x ∈ R, P1 x) -> (∃ x ∈ R, ~ (P1 x)).
241241Proof .
242- intro H.
242+ ltac2: intro H.
243243 We conclude that (∃ x ∈ ℝ, ¬ P1 x).
244244Qed .
245245
@@ -253,22 +253,22 @@ Abort.
253253(* Test 27 *)
254254Goal ~ (∀ x ∈ R, ∃ y ∈ R, P2 x y) -> (∃ x ∈ R, ~ (∃ y ∈ R, P2 x y)).
255255Proof .
256- intro H.
256+ ltac2: intro H.
257257 We conclude that (∃ x ∈ ℝ, ~ (∃ y ∈ R, P2 x y)).
258258Qed .
259259
260260(* Test 28 *)
261261Goal (∃ x < 5, ~ (∃ y ≥ 7, P2 x y)) -> (∃ x < 5, ∀ y ≥ 7, ~ P2 x y).
262262Proof .
263- intro H.
263+ ltac2: intro H.
264264 We conclude that (∃ x < 5, ∀ y ≥ 7, ~ P2 x y).
265265Qed .
266266
267267(** Level 3 *)
268268(* Test 29 *)
269269Goal ~ (∀ x ≤ 30, ∃ y ∈ R, P2 x y) -> (∃ x ≤ 30, ~ (∃ y ∈ R, P2 x y)).
270270Proof .
271- intro H.
271+ ltac2: intro H.
272272 We conclude that (∃ x ≤ 30, ~ (∃ y ∈ R, P2 x y)).
273273Qed .
274274
@@ -280,7 +280,7 @@ Goal ~ (∀ eps ∈ R, eps > 0 -> ∃ delta ∈ R, delta > 0 -> ∀ x ∈ R,
280280 (∃ eps ∈ R, eps > 0 /\ ~(∃ delta ∈ R, delta > 0 -> ∀ x ∈ R,
281281 0 < Rdist x a < delta -> Rdist (f x) L < eps)).
282282Proof .
283- intro H.
283+ ltac2: intro H.
284284 We conclude that (∃ eps ∈ R, eps > 0 /\ ~(∃ delta ∈ R, delta > 0 -> ∀ x ∈ R,
285285 0 < Rdist x a < delta -> Rdist (f x) L < eps)).
286286Qed .
0 commit comments