Documentation

WeightedNetKAT.FinsuppExt

def Finsupp.η' {X α : Type} [DecidableEq X] [DecidableEq α] [Zero α] [One α] (x : X) :
X →₀ α
Equations
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[simp]
      theorem Finsupp.η'_apply {X α : Type} [DecidableEq X] [DecidableEq α] [Zero α] [One α] (x y : X) :
      (η' x) y = if x = y then 1 else 0
      @[simp]
      theorem Finsupp.η'_finSupp {X α : Type} [DecidableEq X] [DecidableEq α] [Zero α] [One α] (x : X) :
      @[implicit_reducible]
      instance Finsupp.instOne {α X : Type} [Fintype X] [Zero α] [One α] [DecidableEq α] :
      One (X →₀ α)
      Equations
      @[simp]
      theorem Finsupp.one_apply {α X : Type} [Fintype X] [Zero α] [One α] [DecidableEq α] {x : X} :
      1 x = 1
      def Finsupp.zipWith' {α M N P : Type} [Zero M] [Zero N] [Zero P] [DecidableEq α] [DecidableEq P] (f : MNP) (hf : f 0 0 = 0) (g₁ : α →₀ M) (g₂ : α →₀ N) :
      α →₀ P

      Given finitely supported functions g₁ : α →₀ M and g₂ : α →₀ N and function f : M → N → P, Finsupp.zipWith f hf g₁ g₂ is the finitely supported function α →₀ P satisfying zipWith f hf g₁ g₂ a = f (g₁ a) (g₂ a), which is well-defined when f 0 0 = 0.

      Equations
      Instances For
        @[simp]
        theorem Finsupp.zipWith'_apply {α M N P : Type} [Zero M] [Zero N] [Zero P] [DecidableEq α] [DecidableEq P] {f : MNP} {hf : f 0 0 = 0} {g₁ : α →₀ M} {g₂ : α →₀ N} {a : α} :
        (zipWith' f hf g₁ g₂) a = f (g₁ a) (g₂ a)
        theorem Finsupp.support_zipWith' {α M N P : Type} [Zero M] [Zero N] [Zero P] [DecidableEq α] [DecidableEq P] {f : MNP} {hf : f 0 0 = 0} {g₁ : α →₀ M} {g₂ : α →₀ N} :
        (zipWith' f hf g₁ g₂).support g₁.support g₂.support
        @[implicit_reducible, instance 10000]
        instance Finsupp.instAdd' {ι M : Type} [AddZeroClass M] [DecidableEq ι] [DecidableEq M] :
        Add (ι →₀ M)
        Equations
        @[simp]
        theorem Finsupp.coe_add' {ι M : Type} [AddZeroClass M] [DecidableEq ι] [DecidableEq M] (f g : ι →₀ M) :
        ⇑(f + g) = f + g
        @[implicit_reducible]
        Equations
        @[implicit_reducible]

        The product of f g : α →₀ β is the finitely supported function whose value at a is f a * g a.

        Equations
        theorem Finsupp.coe_mul {α β : Type} [MulZeroClass β] [DecidableEq α] [DecidableEq β] (g₁ g₂ : α →₀ β) :
        ⇑(g₁ * g₂) = g₁ * g₂
        @[simp]
        theorem Finsupp.mul_apply {α β : Type} [MulZeroClass β] [DecidableEq α] [DecidableEq β] {g₁ g₂ : α →₀ β} {a : α} :
        (g₁ * g₂) a = g₁ a * g₂ a
        theorem Finsupp.support_mul_subset_left {α β : Type} [MulZeroClass β] [DecidableEq α] [DecidableEq β] {g₁ g₂ : α →₀ β} :
        (g₁ * g₂).support g₁.support
        theorem Finsupp.support_mul_subset_right {α β : Type} [MulZeroClass β] [DecidableEq α] [DecidableEq β] {g₁ g₂ : α →₀ β} :
        (g₁ * g₂).support g₂.support
        theorem Finsupp.support_mul {α β : Type} [MulZeroClass β] [DecidableEq β] [DecidableEq α] {g₁ g₂ : α →₀ β} :
        (g₁ * g₂).support g₁.support g₂.support
        @[implicit_reducible]
        Equations
        @[implicit_reducible]
        instance Finsupp.instHMul_weightedNetKAT {α β : Type} [MulZeroClass β] [DecidableEq β] :
        HMul β (α →₀ β) (α →₀ β)
        Equations
        @[implicit_reducible]
        instance Finsupp.instHMul_weightedNetKAT_1 {α β : Type} [MulZeroClass β] [DecidableEq β] :
        HMul (α →₀ β) β (α →₀ β)
        Equations
        theorem Finsupp.coe_hMul_left {α β : Type} [MulZeroClass β] [DecidableEq β] (s : β) (g : α →₀ β) :
        ⇑(s * g) = ⇑(s * g)
        @[simp]
        theorem Finsupp.hMul_left_apply {α β : Type} [MulZeroClass β] [DecidableEq β] {s : β} {g : α →₀ β} {a : α} :
        (s * g) a = s * g a
        theorem Finsupp.support_hMul_left_subset_right {α β : Type} [MulZeroClass β] [DecidableEq β] {s : β} {g : α →₀ β} :
        theorem Finsupp.support_hMul_left {α β : Type} [MulZeroClass β] [DecidableEq β] [DecidableEq α] {s : β} {g : α →₀ β} :
        theorem Finsupp.coe_hMul_right {α β : Type} [MulZeroClass β] [DecidableEq β] (s : β) (g : α →₀ β) :
        ⇑(g * s) = ⇑(g * s)
        @[simp]
        theorem Finsupp.hMul_right_apply {α β : Type} [MulZeroClass β] [DecidableEq β] {s : β} {g : α →₀ β} {a : α} :
        (g * s) a = g a * s
        theorem Finsupp.support_hMul_right_subset_right {α β : Type} [MulZeroClass β] [DecidableEq β] {s : β} {g : α →₀ β} :
        theorem Finsupp.support_hMul_right {α β : Type} [MulZeroClass β] [DecidableEq β] [DecidableEq α] {s : β} {g : α →₀ β} :
        @[implicit_reducible]
        instance Finsupp.instLE_weightedNetKAT {M : Type} [Semiring M] [PartialOrder M] {ι : Type} :
        LE (ι →₀ M)
        Equations
        @[implicit_reducible]
        Equations
        @[implicit_reducible]
        Equations
        @[implicit_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        @[simp]
        theorem Finsupp.sum_apply''' {M : Type} [Semiring M] {ι : Type} [DecidableEq ι] [DecidableEq M] {Y : Type} [DecidableEq Y] {S : Finset ι} {f : ιY →₀ M} {a : Y} :
        (∑ xS, f x) a = xS, (f x) a
        @[implicit_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        def Finsupp.bind {M : Type} [Semiring M] [PartialOrder M] [OrderBot M] [IsPositiveOrderedAddMonoid M] {ι Y : Type} [DecidableEq M] [DecidableEq Y] (f : ι →₀ M) (g : ιY →₀ M) :
        Y →₀ M
        Equations
        Instances For
          @[implicit_reducible]
          Equations
          • One or more equations did not get rendered due to their size.
          @[simp]
          theorem Finsupp.ωSup_apply {M : Type} [Semiring M] [OmegaCompletePartialOrder M] [OrderBot M] [IsPositiveOrderedAddMonoid M] {ι : Type} [Fintype ι] [DecidableEq M] (C : OmegaCompletePartialOrder.Chain (ι →₀ M)) (x : ι) :
          (OmegaCompletePartialOrder.ωSup C) x = OmegaCompletePartialOrder.ωSup (C.map { toFun := fun (x_1 : ι →₀ M) => x_1 x, monotone' := })
          @[simp]
          theorem Finsupp.ωSum_apply {M : Type} [Semiring M] [OmegaCompletePartialOrder M] [OrderBot M] [IsPositiveOrderedAddMonoid M] {ι : Type} [DecidableEq M] [Countable ι] {Y : Type} [DecidableEq Y] [Fintype Y] {f : ιY →₀ M} {y : Y} :
          (ω∑ (x : ι), f x) y = ω∑ (x : ι), (f x) y