English
The lexicographical preorder on the sigma type Σ i, α(i) is the natural lexicographic order combining the index and the fiber components.
Русский
Лексикографический предорядок на сигма-типе Σ i, α(i) — это естественный лексикографический порядок по индексу и по второму компоненту внутри каждого индексного слоя.
LaTeX
$$$\text{Preorder}(\Sigma_\text{Lex} i, α(i))$$$
Lean4
/-- The lexicographical preorder on a sigma type. -/
instance preorder [Preorder ι] [∀ i, Preorder (α i)] : Preorder (Σₗ i, α i) :=
{ Sigma.Lex.LE, Sigma.Lex.LT with le_refl := fun ⟨_, a⟩ => Lex.right a a le_rfl,
le_trans := fun _ _ _ => trans_of ((Lex (· < ·)) fun _ => (· ≤ ·)),
lt_iff_le_not_ge :=
by
refine fun a b => ⟨fun hab => ⟨hab.mono_right fun i a b => le_of_lt, ?_⟩, ?_⟩
· rintro (⟨b, a, hji⟩ | ⟨b, a, hba⟩) <;> obtain ⟨_, _, hij⟩ | ⟨_, _, hab⟩ := hab
· exact hij.not_gt hji
· exact lt_irrefl _ hji
· exact lt_irrefl _ hij
· exact hab.not_ge hba
· rintro ⟨⟨a, b, hij⟩ | ⟨a, b, hab⟩, hba⟩
· exact Sigma.Lex.left _ _ hij
· exact Sigma.Lex.right _ _ (hab.lt_of_not_ge fun h => hba <| Sigma.Lex.right _ _ h) }