Tous les labs

A tactic macro

4/4 ~30 minlean

Define a tactic macro that introduces all possible binders.

8 lines · Lean 4
Vérifier dans Lean Web
Objectifs
  • Define a tactic macro that introduces all possible binders.
Indices
Voir la solution
import Lean

macro "intro_all" : tactic =>
  `(tactic| repeat intro)

example (P Q : Prop) : P → Q → P := by
  intro_all
  assumption