lean4-htt/tests/lean/run/mapply.lean
Leonardo de Moura 040722c7e7 feat(library/init/meta): add unify config option to apply_cfg
This commit also fixes a problem in the `apply` tactic error messages.
2018-01-04 12:51:59 -08:00

20 lines
402 B
Text

constant p : nat → Prop
constant q : nat → Prop
constant h : nat → Prop
axiom pq0 : q 0 → p 0
axiom phx : ∀ x, h x → p x
example (h₁ : h 1) : ∃ x, p x :=
begin
constructor,
mapply pq0 <|> mapply phx, -- The first `mapply` should fail
assumption
end
open nat
example : ∃ x, succ 0 > x :=
begin
constructor,
fail_if_success { mapply succ_lt_succ },
apply zero_lt_succ
end