lean4-htt/tests/lean/run/1127.lean
Leonardo de Moura 575b1187c5 feat: add Tactic.Context.recover for controlling error recovery
Moreover, when executing `tac_1 <|> tac_2`, we now disable error
recovery at `tac_1`.

closes #1126 #1127
2022-04-27 10:47:15 -07:00

25 lines
513 B
Text

example: p ∧ q := by first | apply And.intro <;> fail | sorry
variable (p q : Prop)
example (hp : p) : p := by
try trivial -- succeeds, as expected
example : p := by
try trivial -- fails quietly, as expected
admit
example (hp : p) (hq : q) : p ∧ q := by
try trivial -- succeeds, as expected
example (hp : p) : p ∧ q := by
try trivial
admit
example (hq : p) : p ∧ q := by
try trivial
admit
example : p ∧ q := by
try trivial -- fails quietly
admit -- splits goals p and q