Documentation

Projects.Util.LinearOrder

@[simp]
instance LinearOrder.nonempty {α : Type u_1} :
@[instance_reducible]
noncomputable def LinearOrder.ofLe {α : Type u_1} (le : α → α → Prop) :
Equations
Instances For
    @[instance_reducible]
    noncomputable def LinearOrder.ofLt {α : Type u_1} (lt : α → α → Prop) :
    Equations
    Instances For
      @[instance_reducible]
      noncomputable def LinearOrder.dual {α : Type u_1} [ha : LinearOrder α] :
      Equations
      Instances For
        structure LinearOrder.Cnd {α : Type u_1} (le : α → α → Prop) :
        • refl (x : α) : le x x
        • trans (x y z : α) : le x y → le y z → le x z
        • antisymm (x y : α) : le x y → le y x → x = y
        • total (x y : α) : le x y ∨ le y x
        Instances For
          theorem LinearOrder.exi_iff_cnd {α : Type u_1} {le : α → α → Prop} :
          (∃ (L : LinearOrder α), LE.le = le) ↔ Cnd le
          theorem LinearOrder.ext_iff {α : Type u_1} {L₁ L₂ : LinearOrder α} :
          L₁ = L₂ ↔ ∀ (a b : α), a ≤ b ↔ a ≤ b
          @[simp]
          theorem LinearOrder.Cnd.of_le {α : Type u_1} [ha : LinearOrder α] :
          Cnd fun (x1 x2 : α) => x1 ≤ x2
          @[simp]
          theorem LinearOrder.Cnd.of_dual_le {α : Type u_1} [ha : LinearOrder α] :
          Cnd fun (a b : α) => b ≤ a
          theorem LinearOrder.le_ofLe {α : Type u_1} {le : α → α → Prop} (h : Cnd le) :
          LE.le = le
          theorem LinearOrder.lt_ofLe {α : Type u_1} {le : α → α → Prop} (h : Cnd le) :
          LT.lt = fun (a b : α) => a ≠ b ∧ le a b
          @[simp]
          theorem LinearOrder.dual_dual {α : Type u_1} [ha : LinearOrder α] :
          dual = ha
          @[simp]
          theorem LinearOrder.le_dual {α : Type u_1} [ha : LinearOrder α] :
          LE.le = fun (a b : α) => b ≤ a
          @[simp]
          theorem LinearOrder.lt_dual {α : Type u_1} [ha : LinearOrder α] :
          LT.lt = fun (a b : α) => b < a
          @[simp]
          theorem LinearOrder.min_dual {α : Type u_1} [ha : LinearOrder α] :
          @[simp]
          theorem LinearOrder.max_dual {α : Type u_1} [ha : LinearOrder α] :
          theorem LinearOrder.le_eq_dual {α : Type u_1} [ha : LinearOrder α] :
          LE.le = fun (a b : α) => b ≤ a
          theorem LinearOrder.lt_eq_dual {α : Type u_1} [ha : LinearOrder α] :
          LT.lt = fun (a b : α) => b < a
          theorem LinearOrder.min_eq_dual {α : Type u_1} [ha : LinearOrder α] :
          theorem LinearOrder.max_eq_dual {α : Type u_1} [ha : LinearOrder α] :
          @[simp]
          theorem LinearOrder.of_lt_and_lt_simp {α : Type u_1} [ha : LinearOrder α] {a b : α} {p : Prop} :
          a < b → b < a → p ↔ True