theorem
max_right_eq_of_max_eq_and_ne
{α : Type u_1}
[LinearOrder α]
{a b c : α}
(h₁ : max a b = c)
(h₂ : a ≠ c)
:
@[instance_reducible]
Equations
@[reducible]
def
PartialOrder.ofOrd
{α : Type u_1}
[ha : Ord α]
(h_refl : ∀ (a : α), a ≤ a)
(h_trans : ∀ (a b c : α), a ≤ b → b ≤ c → a ≤ c)
(h_lt : ∀ (a b : α), a < b ↔ a ≤ b ∧ ¬b ≤ a)
(h_ant : ∀ (a b : α), a ≤ b → b ≤ a → a = b)
:
Equations
- PartialOrder.ofOrd h_refl h_trans h_lt h_ant = { toPreorder := Preorder.ofOrd h_refl h_trans h_lt, le_antisymm := h_ant }
Instances For
@[reducible]
def
LinearOrder.ofOrd
{α : Type u_1}
[ha : Ord α]
(h_refl : ∀ (a : α), a ≤ a)
(h_trans : ∀ (a b c : α), a ≤ b → b ≤ c → a ≤ c)
(h_lt : ∀ (a b : α), a < b ↔ a ≤ b ∧ ¬b ≤ a)
(h_ant : ∀ (a b : α), a ≤ b → b ≤ a → a = b)
(h_tot : ∀ (a b : α), a ≤ b ∨ b ≤ a)
:
Equations
- LinearOrder.ofOrd h_refl h_trans h_lt h_ant h_tot = { toPartialOrder := PartialOrder.ofOrd h_refl h_trans h_lt h_ant, toMin := minOfOrd', toMax := maxOfOrd', toOrd := ha, le_total := h_tot, toDecidableLE := inferInstance, toDecidableEq := inferInstance, toDecidableLT := inferInstance, min_def := ⋯, max_def := ⋯, compare_eq_compareOfLessAndEq := ⋯ }
Instances For
theorem
instDistribLatticeOfLinearOrder_toSemilatticeInf_toLE_eq
{α : Type u_1}
[ha : LinearOrder α]
:
@[reducible]
Equations
- equivToLinearOrderAux e = LinearOrder.ofOrd ⋯ ⋯ ⋯ ⋯ ⋯
Instances For
@[reducible]
Equations
- e.toLinearOrder = { le := fun (x y : β) => e.invFun x ≤ e.invFun y, lt := fun (x y : β) => e.invFun x < e.invFun y, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯, le_antisymm := ⋯, min := fun (x y : β) => e.toFun (min (e.invFun x) (e.invFun y)), max := fun (x y : β) => e.toFun (max (e.invFun x) (e.invFun y)), compare := fun (x y : β) => compare (e.invFun x) (e.invFun y), le_total := ⋯, toDecidableLE := fun (a b : β) => LinearOrder.toDecidableLE (e.invFun a) (e.invFun b), toDecidableEq := fun (a b : β) => ⋯.mpr inferInstance, toDecidableLT := fun (a b : β) => id inferInstance, min_def := ⋯, max_def := ⋯, compare_eq_compareOfLessAndEq := ⋯ }
Instances For
theorem
false_of_lt_and_lt
{α : Type u_1}
[ha : LinearOrder α]
{a b : α}
(h₁ : a < b)
(h₂ : b < a)
:
theorem
nonneg_of_abs_le
{α : Type u_1}
{a b : α}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
(h : |a| ≤ b)
:
theorem
pos_of_abs_lt
{α : Type u_1}
{a b : α}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
(h : |a| < b)
:
- h : Function.Injective fun (n : ℕ) => OfNat.ofNat n
Instances
@[simp]
theorem
add_self_eq_zero_iff
{α : Type u_1}
[ha₂ : Ring α]
[ha₄ : NoZeroDivisors α]
[ha₅ : InjectiveOfNat α]
{a : α}
:
Instances
@[instance_reducible]
Equations
- instLocallyFiniteOrderListNat = { toLinearOrder := Nat.instLinearOrder, listIcc := fun (a b : ℕ) => List.map (fun (x : ℕ) => a + x) (List.range (b + 1 - a)), sortedLT_listIcc := @instLocallyFiniteOrderListNat._proof_1, mem_listIcc := @instLocallyFiniteOrderListNat._proof_4 }
@[instance_reducible]
Equations
- instLocallyFiniteOrderListInt = { toLinearOrder := Int.instLinearOrder, listIcc := fun (a b : ℤ) => List.map (fun (x : ℤ) => a + x) do let a ← List.range (b + 1 - a).toNat pure ↑a, sortedLT_listIcc := @instLocallyFiniteOrderListInt._proof_3, mem_listIcc := @instLocallyFiniteOrderListInt._proof_4 }
Equations
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
theorem
min_sub_one_lt_left
{α : Type u_1}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
[ha₄ : ZeroLEOneClass α]
[ha₅ : NeZero 1]
{a b : α}
:
@[simp]
theorem
min_sub_one_lt_right
{α : Type u_1}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
[ha₄ : ZeroLEOneClass α]
[ha₅ : NeZero 1]
{a b : α}
:
@[simp]
theorem
left_lt_max_add_one
{α : Type u_1}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
[ha₄ : ZeroLEOneClass α]
[ha₅ : NeZero 1]
{a b : α}
:
@[simp]
theorem
right_lt_max_add_one
{α : Type u_1}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : IsOrderedAddMonoid α]
[ha₄ : ZeroLEOneClass α]
[ha₅ : NeZero 1]
{a b : α}
:
theorem
abs_eq_ite
{α : Type u_2}
[ha₁ : LinearOrder α]
[hs₂ : AddGroup α]
[ha₃ : AddLeftMono α]
{x : α}
:
theorem
bddBelow_range_of_forall_le
{ι : Type u_2}
{α : Type u_3}
[ha : LinearOrder α]
{f : ι → α}
(x : α)
(h : ∀ (i : ι), x ≤ f i)
:
theorem
bddAbove_range_of_forall_le
{ι : Type u_2}
{α : Type u_3}
[ha : LinearOrder α]
{f : ι → α}
(x : α)
(h : ∀ (i : ι), f i ≤ x)
:
theorem
bddBelow_range_neg
{ι : Type u_2}
{α : Type u_3}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : AddLeftMono α]
[ha₄ : AddRightMono α]
{f : ι → α}
:
theorem
bddAbove_range_neg
{ι : Type u_2}
{α : Type u_3}
[ha₁ : LinearOrder α]
[ha₂ : Ring α]
[ha₃ : AddLeftMono α]
[ha₄ : AddRightMono α]
{f : ι → α}
:
Equations
Instances For
@[simp]
@[reducible]
Equations
- fintypeToLinearOrder = { le := fun (a b : α) => fintypeIdx a ≤ fintypeIdx b, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯, le_antisymm := ⋯, min := fun (a b : α) => if (fun (a b : α) => fintypeIdx a ≤ fintypeIdx b) a b then a else b, max := fun (a b : α) => if (fun (a b : α) => fintypeIdx a ≤ fintypeIdx b) a b then b else a, compare := fun (a b : α) => compareOfLessAndEq a b, le_total := ⋯, toDecidableLE := inferInstance, min_def := ⋯, max_def := ⋯, compare_eq_compareOfLessAndEq := ⋯ }
Instances For
theorem
abs_sub_lt_trans
{α : Type u_2}
[LinearOrder α]
[NormedField α]
[IsStrictOrderedRing α]
{a c e : α}
(b : α)
(h : |a - b| + |b - c| < e)
:
theorem
abs_sub_le_trans
{α : Type u_2}
[LinearOrder α]
[NormedField α]
[IsStrictOrderedRing α]
{a c e : α}
(b : α)
(h : |a - b| + |b - c| ≤ e)
:
theorem
abs_sub_lt_trans_half
{α : Type u_2}
[LinearOrder α]
[NormedField α]
[IsStrictOrderedRing α]
{a c e : α}
(b : α)
(h₁ : |a - b| < e / 2)
(h₂ : |b - c| < e / 2)
:
theorem
abs_sub_le_trans_half
{α : Type u_2}
[LinearOrder α]
[NormedField α]
[IsStrictOrderedRing α]
{a c e : α}
(b : α)
(h₁ : |a - b| ≤ e / 2)
(h₂ : |b - c| ≤ e / 2)
:
Equations
- leClassical = Classical.epsilon fun (x : α → α → Prop) => LeCnd x
Instances For
@[reducible]
Equations
- linearOrderClassical = { le := leClassical, le_refl := ⋯, le_trans := ⋯, lt_iff_le_not_ge := ⋯, le_antisymm := ⋯, min := fun (a b : α) => if leClassical a b then a else b, max := fun (a b : α) => if leClassical a b then b else a, compare := fun (a b : α) => compareOfLessAndEq a b, le_total := ⋯, toDecidableLE := inferInstance, min_def := ⋯, max_def := ⋯, compare_eq_compareOfLessAndEq := ⋯ }
Instances For
@[instance_reducible, instance 100]
noncomputable instance
instLinearOrderOfDecidable_projects
{α : Type u_2}
[(P : Prop) → Decidable P]
:
theorem
exists_not_le_of_sInf_not_mem
{α : Type u_2}
[ha : CompleteLattice α]
{s : Set α}
{x : α}
(h : sInf s ∉ s)
(hx : x ∈ s)
:
theorem
exists_not_le_of_sSup_not_mem
{α : Type u_2}
[ha : CompleteLattice α]
{s : Set α}
{x : α}
(h : sSup s ∉ s)
(hx : x ∈ s)
:
@[simp]
@[simp]
theorem
List.eq_of_sortedLE_and_perm
{α : Type u_2}
{xs ys : List α}
[ha : LinearOrder α]
(h₁ : xs.SortedLE)
(h₂ : ys.SortedLE)
(h₃ : xs.Perm ys)
: