lean4-htt/old_tests/tests/lean/run/apply2.lean
2018-04-10 12:56:55 -07:00

7 lines
184 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₁ >> skip <|> assumption)