blob: 0b0abc12c40e454b465fffed3b3d4dbbcecb38b5 [file]
example (p q : Prop) : p → q → p ∧ q := by
sym =>
intro hp hq
apply And.intro
apply hp
apply hq
register_sym_simp chainSimp where
post := ground >> rewrite [Nat.add_zero, Nat.zero_add]
example (x y : Nat) (h : x ≤ y) : (1 - 1) + x ≤ y + (1 + 0) := by
sym =>
simp chainSimp
-- In the following tactic the goal is closed while preprocessing the target
lia
example : ∃ x, x = a := by
sym =>
apply Exists.intro
apply Eq.refl
-- The goal is closed while preprocessing the contradictory hypothesis, before the
-- tactic sequence runs. `sym` must not preprocess the already assigned metavariable.
example (h : false = true) : True = True := by
sym => done
example (h : False) : 1 = 2 := by
sym => done