lean4-htt/tests/lean/run/casePrime.lean

15 lines
465 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

example (hp : p) (hq : p → q) (hr : p → r) : (s q) ∧ (r s) := by
constructor
case' left => apply Or.inr
case' right => apply Or.inl
case' left => apply hq
case' right => apply hr
all_goals assumption
example (hp : p) (hq : p → q) (hr : p → r) : (p ∧ q) ∧ (r ∧ p) := by
constructor
case' left => constructor
case' right => constructor
case' right.left => apply hr
case' left.right => apply hq
all_goals assumption