Practice: choose the proof steps

Combine implication and conjunction without a step checklist.

12 minBeginnerpracticeintroobtainapply
0/7 completed in this course

This is a practice exercise using only the moves you have learned. Start by reading the target. Decide what an implication asks you to do, and what information its premise would give you.

There is no step checklist here. Try writing a proof from the statement alone. If you get stuck, take one hint, make that step, and read the new goal before opening another.

Worked example

example (A B : Prop) (h : A  B) : B  A := by
  obtain ha, hb := h
  exact hb, ha

This review takes apart a pair and builds a different pair. Your exercise uses a pair to supply the input of an implication instead.

Takeaway

Choose each move from the goal and the available hypotheses. A correct proof can leave irrelevant assumptions unused.

Your exercise

Given f : Q → R, prove that P ∧ Q implies R. You will need only one component of the conjunction.

Exercise.lean
1theorem exercise (P Q R : Prop) (f : Q → R) : P ∧ Q → R := by
given
Loading editor…

Where you start. Everything above ⊢ may be assumed; the line below it is what you must prove.

P Q R:Prop
f:Q → R
P ∧ Q → R
ReadyLn 1, Col 1Lean 4
Draft saved in this browser
Stuck?
Recall and apply

Knowledge check

Answer without looking back, then check your reasoning.

0of 2
correct
Question 1 of 2Why is the proof of P not needed?
Question 2 of 2Which one-line term could replace the proof after intro h?