/-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
module
public import Mathlib.Algebra.Group.Pi.Basic
public import Mathlib.Algebra.Order.Group.Synonym
public import Mathlib.Algebra.Order.Monoid.Defs
public import Mathlib.Order.PiLex
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Lexicographic product of algebraic order structures
This file proves that the lexicographic order on pi types is compatible with the pointwise algebraic
operations.
-/
public section
namespace Pi.Lex
variable {ι : Type*} {α : ι → Type*} [LinearOrder ι]
@[to_additive]
instance isOrderedCancelMonoid [∀ i, CommMonoid (α i)] [∀ i, PartialOrder (α i)]
[∀ i, IsOrderedCancelMonoid (α i)] :
IsOrderedCancelMonoid (Lex (∀ i, α i)) where
mul_le_mul_left _ _ hxy z :=
hxy.elim (fun hxyz => hxyz ▸ le_rfl) fun ⟨i, hi⟩ =>
Or.inr ⟨i, fun j hji => congr($(hi.1 j hji) * z j), mul_lt_mul_left hi.2 _⟩
le_of_mul_le_mul_left _ _ _ hxyz :=
hxyz.elim (fun h => (mul_left_cancel h).le) fun ⟨i, hi⟩ =>
Or.inr ⟨i, fun j hj => (mul_left_cancel <| hi.1 j hj), lt_of_mul_lt_mul_left' hi.2⟩
end Pi.Lex
¤ Dauer der Verarbeitung: 0.20 Sekunden
¤
*© Formatika GbR, Deutschland