Si R es un retículo y x, y ∈ R, entonces x ⊔ y = y ⊔ x
Demostrar que si R es un retículo y x, y ∈ R, entonces x ⊔ y = y ⊔ x.
Para ello, completar la siguiente teoría de Lean:
1 2 3 4 5 6 7 |
import order.lattice variables {R : Type*} [lattice R] variables x y : R example : x ⊔ y = y ⊔ x := sorry |
Soluciones con Lean
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
import order.lattice variables {R : Type*} [lattice R] variables x y : R -- 1ª demostración -- =============== lemma aux1 : x ⊔ y ≤ y ⊔ x := begin have h1 : x ≤ y ⊔ x, by exact le_sup_right, have h2 : y ≤ y ⊔ x, by exact le_sup_left, show x ⊔ y ≤ y ⊔ x, by exact sup_le h1 h2, end example : x ⊔ y = y ⊔ x := begin have h1 : x ⊔ y ≤ y ⊔ x, by exact aux1 x y, have h2 : y ⊔ x ≤ x ⊔ y, by exact aux1 y x, show x ⊔ y = y ⊔ x, by exact le_antisymm h1 h2, end -- 2ª demostración -- =============== lemma aux2 : x ⊔ y ≤ y ⊔ x := sup_le le_sup_right le_sup_left example : x ⊔ y = y ⊔ x := le_antisymm (aux2 x y) (aux2 y x) -- 3ª demostración -- =============== lemma aux : x ⊔ y ≤ y ⊔ x := begin apply sup_le, apply le_sup_right, apply le_sup_left, end example : x ⊔ y = y ⊔ x := begin apply le_antisymm, apply aux, apply aux, end -- 4ª demostración -- =============== example : x ⊔ y = y ⊔ x := by apply le_antisymm; simp -- 5ª demostración -- =============== example : x ⊔ y = y ⊔ x := -- by library_search sup_comm -- 6ª demostración -- =============== example : x ⊔ y = y ⊔ x := -- by hint by finish |
Se puede interactuar con la prueba anterior en esta sesión con Lean.
Referencias
- J. Avigad, K. Buzzard, R.Y. Lewis y P. Massot. Mathematics in Lean, p. 22.