Skip to content
LeanLearn
Level 3~30 minLean 4

Choosing the next tactic

The shape of the goal and of your hypotheses tells you what to do next. Learn to read shapes, structure longer proofs, ask Lean for help, and know when automation is the right tool.

You will be able to
  • Choose a tactic from the main connective of the goal or of a hypothesis.
  • Structure a proof with have and bullets.
  • Use exact? to find library lemmas, and decide when omega, simp or decide fit.

Recommended first: Proving with ∀ and ∃. You can start anyway. Nothing is locked.

EncounterActivity 1 of 9

Encounter

Stuck in a proof? Look at the main connective: the symbol that holds the whole statement together. It almost always suggests the next move.

ShapeIn the goal (prove it)In a hypothesis (use it)
P → Q, ∀ x, ¬Pintroapply it to an argument
P ∧ Q, P ↔ Qconstructorobtain ⟨hp, hq⟩ := h
P ∨ Qleft / rightcases h / obtain h | h := h
∃ x, P xexists wobtain ⟨x, hx⟩ := h
a = brfl, rw, calcrw [h]
arithmetic on Nat/Intomega(omega reads hypotheses too)