EncounterActivity 1 of 7
Encounter
Proving is easier than proving : you only need one side.
In Lean, left says "I will prove the left side, " and right says "I will prove ".
Using is harder. You know one of them is true, but not which. So you must prepare for both: proof by cases.
- Case 1: suppose . Prove the goal.
- Case 2: suppose . Prove the goal.
In Lean: rcases h with hp | hq creates the two cases. The | separates the alternatives.
Imagine a friend will arrive by bus or by train. To be sure you meet them, you must have a plan for the bus station and a plan for the train station.