Created
August 30, 2024 01:45
-
-
Save ammkrn/1688038761909b609b44fd411ec62c22 to your computer and use it in GitHub Desktop.
SF Lean meeting notes 8/29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Mathlib.Tactic | |
| -- Click `apply` | |
| example (n : Nat) : n ≠ 0 → n / 2 ^ 1 < n := by apply? | |
| example (n : Nat) : n ≠ 0 → n / 2 ^ 1 < n := by omega | |
| example (p q r : Prop) : (q ∧ p) → (p → r) → r ∧ q := by tauto | |
| -- rcases + refine | |
| example (a b c d p : Prop) (hp: p) (h : (a ∧ b) ∨ (c ∧ d)) : p ∧ (a ∨ c) := by | |
| refine And.intro ?l ?r | |
| case l => exact hp | |
| case r => | |
| rcases h with ⟨ha, _hb⟩ | ⟨hc, _hd⟩ | |
| . exact Or.inl ha | |
| . exact Or.inr hc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment