lean4-htt/tests/lean/run/apply2.lean
2016-06-17 20:11:52 -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") []),
repeat_at_most 10 (apply c₁ <|> assumption)