lean4-htt/tests/lean/run/apply2.lean
2017-12-04 12:55:53 -08:00

7 lines
176 B
Text

open tactic
example (p q : Prop) : p → q → p ∧ q ∧ p :=
by do
intros,
c₁ ← return (expr.const `and.intro []),
iterate_at_most 10 (apply c₁ <|> assumption)