Clean up Lattice.lean's namespaces
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -61,12 +61,11 @@ class FiniteHeightLattice (α : Type*) [Lattice α] extends Bot α, Top α where
|
|||||||
longestChain : PointedLTSeries α ⊥ ⊤ height
|
longestChain : PointedLTSeries α ⊥ ⊤ height
|
||||||
chains_bounded : BoundedChains α height
|
chains_bounded : BoundedChains α height
|
||||||
|
|
||||||
namespace FixedHeight
|
namespace FiniteHeightLattice
|
||||||
|
|
||||||
variable {α : Type*} [Lattice α] {h : ℕ}
|
variable (α : Type*) [Lattice α] [FiniteHeightLattice α]
|
||||||
|
|
||||||
theorem bot_le [FiniteHeightLattice α] : ∀ (a : α), ⊥ ≤ a := by
|
theorem bot_le (a : α) : (⊥ : α) ≤ a := by
|
||||||
intro a
|
|
||||||
by_cases heq : ⊥ ⊓ a = ⊥
|
by_cases heq : ⊥ ⊓ a = ⊥
|
||||||
· exact inf_eq_left.mp heq
|
· exact inf_eq_left.mp heq
|
||||||
· exfalso
|
· exfalso
|
||||||
@@ -78,14 +77,6 @@ theorem bot_le [FiniteHeightLattice α] : ∀ (a : α), ⊥ ≤ a := by
|
|||||||
rw [RelSeries.cons_length, lc.length_series] at hbound
|
rw [RelSeries.cons_length, lc.length_series] at hbound
|
||||||
omega
|
omega
|
||||||
|
|
||||||
end FixedHeight
|
|
||||||
|
|
||||||
namespace FiniteHeightLattice
|
|
||||||
|
|
||||||
variable (α : Type*) [Lattice α] [FiniteHeightLattice α]
|
|
||||||
|
|
||||||
theorem bot_le (a : α) : (⊥ : α) ≤ a := FixedHeight.bot_le a
|
|
||||||
|
|
||||||
end FiniteHeightLattice
|
end FiniteHeightLattice
|
||||||
|
|
||||||
end Spa
|
end Spa
|
||||||
|
|||||||
Reference in New Issue
Block a user