2. Swap a conjunction
Prove that a conjunction can be read in either order: from a proof of P ∧ Q, build a proof of Q ∧ P.
1theorem solution (P Q : Prop) : P ∧ Q → Q ∧ P := by
givenLoading editor…
Type
\to in the editor, or click:Where you start. Everything above ⊢ may be assumed; the line below it is what you must prove.
P Q:Prop
⊢P ∧ Q → Q ∧ P
ReadyLn 1, Col 1Lean 4
Draft saved in this browser