New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat (order/modular_lattice): modular_lattice as extension of lattice #7539
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -36,6 +36,9 @@ variable {α : Type*} | |||||
class is_modular_lattice α [lattice α] : Prop := | ||||||
(sup_inf_le_assoc_of_le : ∀ {x : α} (y : α) {z : α}, x ≤ z → (x ⊔ y) ⊓ z ≤ x ⊔ (y ⊓ z)) | ||||||
|
||||||
class modular_lattice α extends lattice α := | ||||||
(modular_law: ∀ (x u v : α ), (x ≤ u) → u ⊓ (v ⊔ x) = (u ⊓ v) ⊔ x ) | ||||||
|
||||||
section is_modular_lattice | ||||||
variables [lattice α] [is_modular_lattice α ] | ||||||
|
||||||
|
@@ -78,6 +81,24 @@ def inf_Icc_order_iso_Icc_sup (a b : α) : set.Icc (a ⊓ b) a ≃o set.Icc b (a | |||||
end } | ||||||
end is_modular_lattice | ||||||
|
||||||
namespace modular_lattice | ||||||
|
||||||
theorem diamond_isomorphism | ||||||
[modular_lattice α] {u v w x y : α} : | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of a new class, the existing one should work fine
Suggested change
|
||||||
(x ≤ u) → (x ≥ v) → (x ≥ u ⊓ v) → (x ≤ u ⊔ v) → u ⊓ (v ⊔ x) = x ∧ (x ⊓ u) ⊔ v = x := | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mathlib almost never uses
Suggested change
|
||||||
begin | ||||||
intros h1 h2 h3 h4, | ||||||
split, | ||||||
{ rw modular_lattice.modular_law, | ||||||
exact sup_eq_right.mpr h3, | ||||||
exact h1 }, | ||||||
Comment on lines
+92
to
+94
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This half of the proof only uses |
||||||
{ rw ← modular_lattice.modular_law, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Or similar, with the changes I suggest above |
||||||
exact inf_eq_left.mpr h4, | ||||||
exact h2 } | ||||||
end | ||||||
|
||||||
end modular_lattice | ||||||
|
||||||
namespace is_compl | ||||||
variables [bounded_lattice α] [is_modular_lattice α] | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this class is a good idea - it means you need a new class to talk about modular bounded lattices, modular complete lattices, ...
What was the reason you added it?