The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.DFinsupp.Order

55 declarations and 1 deprecated aliases. Mathlib docs · Source

Pointwise order on finitely supported dependent functions

This file lifts order structures on the α i to Π₀ i, α i.

Main declarations

  • DFinsupp.orderEmbeddingToFun: The order embedding from finitely supported dependent functions to functions.

Order structures

Algebraic order structures

instance DFinsupp.instLE E0 #

{ι : Type u_1} → {α : ι → Type u_2} → [inst : (i : ι) → Zero (α i)] → [(i : ι) → LE (α i)] → LE (Π₀ (i : ι), α i)

theorem DFinsupp.le_def E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → LE (α i)] {f g : Π₀ (i : ι), α i},
  f ≤ g ↔ ∀ (i : ι), f i ≤ g i

theorem DFinsupp.coe_le_coe E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → LE (α i)] {f g : Π₀ (i : ι), α i},
  ⇑f ≤ ⇑g ↔ f ≤ g

def DFinsupp.orderEmbeddingToFun E3 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : (i : ι) → Zero (α i)] → [inst_1 : (i : ι) → LE (α i)] → (Π₀ (i : ι), α i) ↪o ((i : ι) → α i)

The order on DFinsupps over a partial order embeds into the order on functions

theorem DFinsupp.coe_orderEmbeddingToFun E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → LE (α i)],
  ⇑DFinsupp.orderEmbeddingToFun = DFunLike.coe

theorem DFinsupp.orderEmbeddingToFun_apply E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → LE (α i)] {f : Π₀ (i : ι), α i}
  {i : ι}, DFinsupp.orderEmbeddingToFun f i = f i

instance DFinsupp.instPreorder E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} → [inst : (i : ι) → Zero (α i)] → [(i : ι) → Preorder (α i)] → Preorder (Π₀ (i : ι), α i)

theorem DFinsupp.lt_def E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)]
  {f g : Π₀ (i : ι), α i}, f < g ↔ f ≤ g ∧ ∃ i, f i < g i

theorem DFinsupp.coe_lt_coe E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)]
  {f g : Π₀ (i : ι), α i}, ⇑f < ⇑g ↔ f < g

theorem DFinsupp.coe_mono E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)],
  Monotone DFunLike.coe

theorem DFinsupp.coe_strictMono E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)],
  StrictMono DFunLike.coe

theorem DFinsupp.single_le_single E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)] {i : ι}
  {a b : α i} [inst_2 : DecidableEq ι], ((fun₀ | i => a) ≤ fun₀ | i => b) ↔ a ≤ b

theorem DFinsupp.single_mono E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)] {i : ι}
  [inst_2 : DecidableEq ι], Monotone (DFinsupp.single i)

theorem DFinsupp.single_nonneg E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)] {i : ι} {a : α i}
  [inst_2 : DecidableEq ι], (0 ≤ fun₀ | i => a) ↔ 0 ≤ a

theorem DFinsupp.single_nonpos E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Preorder (α i)] {i : ι} {a : α i}
  [inst_2 : DecidableEq ι], (fun₀ | i => a) ≤ 0 ↔ a ≤ 0

instance DFinsupp.instPartialOrder E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} → [inst : (i : ι) → Zero (α i)] → [(i : ι) → PartialOrder (α i)] → PartialOrder (Π₀ (i : ι), α i)

instance DFinsupp.instSemilatticeInf E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : (i : ι) → Zero (α i)] → [(i : ι) → SemilatticeInf (α i)] → SemilatticeInf (Π₀ (i : ι), α i)

theorem DFinsupp.coe_inf E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → SemilatticeInf (α i)]
  (f g : Π₀ (i : ι), α i), ⇑(f ⊓ g) = ⇑f ⊓ ⇑g

theorem DFinsupp.inf_apply E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → SemilatticeInf (α i)]
  (f g : Π₀ (i : ι), α i) (i : ι), (f ⊓ g) i = f i ⊓ g i

instance DFinsupp.instSemilatticeSup E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} →
    [inst : (i : ι) → Zero (α i)] → [(i : ι) → SemilatticeSup (α i)] → SemilatticeSup (Π₀ (i : ι), α i)

theorem DFinsupp.coe_sup E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → SemilatticeSup (α i)]
  (f g : Π₀ (i : ι), α i), ⇑(f ⊔ g) = ⇑f ⊔ ⇑g

theorem DFinsupp.sup_apply E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → SemilatticeSup (α i)]
  (f g : Π₀ (i : ι), α i) (i : ι), (f ⊔ g) i = f i ⊔ g i

instance DFinsupp.lattice E0 #

{ι : Type u_1} →
  {α : ι → Type u_2} → [inst : (i : ι) → Zero (α i)] → [(i : ι) → Lattice (α i)] → Lattice (Π₀ (i : ι), α i)

theorem DFinsupp.support_inf_union_support_sup E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Lattice (α i)]
  (f g : Π₀ (i : ι), α i) [inst_2 : DecidableEq ι] [inst_3 : (i : ι) → (x : α i) → Decidable (x ≠ 0)],
  (f ⊓ g).support ∪ (f ⊔ g).support = f.support ∪ g.support

theorem DFinsupp.support_sup_union_support_inf E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → Zero (α i)] [inst_1 : (i : ι) → Lattice (α i)]
  (f g : Π₀ (i : ι), α i) [inst_2 : DecidableEq ι] [inst_3 : (i : ι) → (x : α i) → Decidable (x ≠ 0)],
  (f ⊔ g).support ∪ (f ⊓ g).support = f.support ∪ g.support

instance DFinsupp.instIsOrderedAddMonoid E0 #

∀ {ι : Type u_1} (α : ι → Type u_3) [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), IsOrderedAddMonoid (α i)], IsOrderedAddMonoid (Π₀ (i : ι), α i)

instance DFinsupp.instIsOrderedCancelAddMonoid E0 #

∀ {ι : Type u_1} (α : ι → Type u_3) [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), IsOrderedCancelAddMonoid (α i)], IsOrderedCancelAddMonoid (Π₀ (i : ι), α i)

instance DFinsupp.instAddLeftReflectLE E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), AddLeftReflectLE (α i)], AddLeftReflectLE (Π₀ (i : ι), α i)

instance DFinsupp.instPosSMulMono E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : Preorder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → Preorder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), PosSMulMono α (β i)], PosSMulMono α (Π₀ (i : ι), β i)

instance DFinsupp.instSMulPosMono E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : Preorder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → Preorder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), SMulPosMono α (β i)], SMulPosMono α (Π₀ (i : ι), β i)

instance DFinsupp.instPosSMulReflectLE E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : Preorder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → Preorder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), PosSMulReflectLE α (β i)], PosSMulReflectLE α (Π₀ (i : ι), β i)

instance DFinsupp.instSMulPosReflectLE E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : Preorder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → Preorder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), SMulPosReflectLE α (β i)], SMulPosReflectLE α (Π₀ (i : ι), β i)

instance DFinsupp.instPosSMulStrictMono E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → PartialOrder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), PosSMulStrictMono α (β i)], PosSMulStrictMono α (Π₀ (i : ι), β i)

instance DFinsupp.instSMulPosStrictMono E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → PartialOrder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), SMulPosStrictMono α (β i)], SMulPosStrictMono α (Π₀ (i : ι), β i)

instance DFinsupp.instSMulPosReflectLT E0 #

∀ {ι : Type u_1} {α : Type u_3} {β : ι → Type u_4} [inst : Semiring α] [inst_1 : PartialOrder α]
  [inst_2 : (i : ι) → AddCommMonoid (β i)] [inst_3 : (i : ι) → PartialOrder (β i)] [inst_4 : (i : ι) → Module α (β i)]
  [∀ (i : ι), SMulPosReflectLT α (β i)], SMulPosReflectLT α (Π₀ (i : ι), β i)

instance DFinsupp.instOrderBotOfIsBotZeroClass E0 #

{ι : Type u_1} →
  (α : ι → Type u_2) →
    [inst : (i : ι) → AddCommMonoid (α i)] →
      [inst_1 : (i : ι) → PartialOrder (α i)] → [∀ (i : ι), IsBotZeroClass (α i)] → OrderBot (Π₀ (i : ι), α i)

instance DFinsupp.instIsBotZeroClass E0 #

∀ {ι : Type u_1} (α : ι → Type u_2) [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), IsBotZeroClass (α i)], IsBotZeroClass (Π₀ (i : ι), α i)

theorem DFinsupp.add_eq_zero_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] (f g : Π₀ (i : ι), α i), f + g = 0 ↔ f = 0 ∧ g = 0

theorem DFinsupp.le_iff' E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : DecidableEq ι] [inst_4 : (i : ι) → (x : α i) → Decidable (x ≠ 0)]
  {f g : Π₀ (i : ι), α i} {s : Finset ι}, f.support ⊆ s → (f ≤ g ↔ ∀ i ∈ s, f i ≤ g i)

theorem DFinsupp.le_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : DecidableEq ι] [inst_4 : (i : ι) → (x : α i) → Decidable (x ≠ 0)]
  {f g : Π₀ (i : ι), α i}, f ≤ g ↔ ∀ i ∈ f.support, f i ≤ g i

theorem DFinsupp.support_monotone E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : DecidableEq ι] [inst_4 : (i : ι) → (x : α i) → Decidable (x ≠ 0)],
  Monotone DFinsupp.support

theorem DFinsupp.support_mono E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : DecidableEq ι] [inst_4 : (i : ι) → (x : α i) → Decidable (x ≠ 0)]
  {f g : Π₀ (i : ι), α i}, f ≤ g → f.support ⊆ g.support

instance DFinsupp.decidableLE E0 #

{ι : Type u_1} →
  (α : ι → Type u_2) →
    [inst : (i : ι) → AddCommMonoid (α i)] →
      [inst_1 : (i : ι) → PartialOrder (α i)] →
        [∀ (i : ι), CanonicallyOrderedAdd (α i)] →
          [DecidableEq ι] →
            [(i : ι) → (x : α i) → Decidable (x ≠ 0)] → [(i : ι) → DecidableLE (α i)] → DecidableLE (Π₀ (i : ι), α i)

theorem DFinsupp.single_le_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : DecidableEq ι] {f : Π₀ (i : ι), α i} {i : ι} {a : α i},
  (fun₀ | i => a) ≤ f ↔ a ≤ f i

instance DFinsupp.tsub E0 #

{ι : Type u_1} →
  (α : ι → Type u_2) →
    [inst : (i : ι) → AddCommMonoid (α i)] →
      [inst_1 : (i : ι) → PartialOrder (α i)] →
        [∀ (i : ι), CanonicallyOrderedAdd (α i)] →
          [inst_3 : (i : ι) → Sub (α i)] → [∀ (i : ι), OrderedSub (α i)] → Sub (Π₀ (i : ι), α i)

This is called tsub for truncated subtraction, to distinguish it with subtraction in an additive group.

theorem DFinsupp.tsub_apply E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)] (f g : Π₀ (i : ι), α i) (i : ι), (f - g) i = f i - g i

theorem DFinsupp.coe_tsub E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)] (f g : Π₀ (i : ι), α i), ⇑(f - g) = ⇑f - ⇑g

instance DFinsupp.instOrderedSub E0 #

∀ {ι : Type u_1} (α : ι → Type u_2) [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)], OrderedSub (Π₀ (i : ι), α i)

instance DFinsupp.instCanonicallyOrderedAddOfAddLeftMono E0 #

∀ {ι : Type u_1} (α : ι → Type u_2) [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)] [∀ (i : ι), OrderedSub (α i)]
  [∀ (i : ι), AddLeftMono (α i)], CanonicallyOrderedAdd (Π₀ (i : ι), α i)

theorem DFinsupp.single_tsub E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)] {i : ι} {a b : α i} [inst_5 : DecidableEq ι],
  (fun₀ | i => a - b) = (fun₀ | i => a) - fun₀ | i => b

theorem DFinsupp.support_tsub E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)] {f g : Π₀ (i : ι), α i} [inst_5 : DecidableEq ι]
  [inst_6 : (i : ι) → (x : α i) → Decidable (x ≠ 0)], (f - g).support ⊆ f.support

theorem DFinsupp.subset_support_tsub E1 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → PartialOrder (α i)]
  [inst_2 : ∀ (i : ι), CanonicallyOrderedAdd (α i)] [inst_3 : (i : ι) → Sub (α i)]
  [inst_4 : ∀ (i : ι), OrderedSub (α i)] {f g : Π₀ (i : ι), α i} [inst_5 : DecidableEq ι]
  [inst_6 : (i : ι) → (x : α i) → Decidable (x ≠ 0)], f.support \ g.support ⊆ (f - g).support

theorem DFinsupp.support_inf E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → LinearOrder (α i)]
  [∀ (i : ι), IsBotZeroClass (α i)] [inst_3 : DecidableEq ι] {f g : Π₀ (i : ι), α i},
  (f ⊓ g).support = f.support ∩ g.support

theorem DFinsupp.support_sup E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → LinearOrder (α i)]
  [∀ (i : ι), IsBotZeroClass (α i)] [inst_3 : DecidableEq ι] {f g : Π₀ (i : ι), α i},
  (f ⊔ g).support = f.support ∪ g.support

theorem DFinsupp.disjoint_iff E0 #

∀ {ι : Type u_1} {α : ι → Type u_2} [inst : (i : ι) → AddCommMonoid (α i)] [inst_1 : (i : ι) → LinearOrder (α i)]
  [inst_2 : ∀ (i : ι), IsBotZeroClass (α i)] [inst_3 : DecidableEq ι] {f g : Π₀ (i : ι), α i},
  Disjoint f g ↔ Disjoint f.support g.support

Deprecated aliases

NameNew nameSince
DFinsupp.bot_eq_zerobot_eq_zero2026-05-07