Documentation

WeightedNetKAT.Reduction

theorem Finset.filterMap_insert {α β : Type} [DecidableEq α] [DecidableEq β] (f : αOption β) (hf : ∀ (a a' : α), bf a, b f a'a = a') (a : α) (s : Finset α) :
filterMap f (insert a s) hf = match f a with | some x => insert x (filterMap f s hf) | none => filterMap f s hf
theorem Finset.sum_filterMap {ι κ M : Type} [AddCommMonoid M] [DecidableEq ι] [DecidableEq κ] (s : Finset ι) (e : ιOption κ) (he : ∀ (a a' : ι), be a, b e a'a = a') (f : κM) :
xfilterMap e s he, f x = xs, match e x with | some y => f y | none => 0
@[implicit_reducible]
instance WeightedNetKAT.instOneCountsuppOfCountable {𝒮 : Type} [Semiring 𝒮] {X : Type} [Countable X] :
One (X →c 𝒮)
Equations
@[simp]
theorem WeightedNetKAT.Countsupp.one_apply {𝒮 : Type} [Semiring 𝒮] {X : Type} [Countable X] {x : X} :
1 x = 1
@[simp]
@[simp]
theorem WeightedNetKAT.Countsupp.one_bind {𝒮 : Type} [Semiring 𝒮] [OmegaCompletePartialOrder 𝒮] [OrderBot 𝒮] [IsPositiveOrderedAddMonoid 𝒮] {X : Type} [Countable X] [Encodable X] {g : XX →c 𝒮} :
Countsupp.bind 1 g = ω∑ (x : X), g x
@[irreducible]
noncomputable def WeightedNetKAT.RPol.sem {𝒮 : Type} [Semiring 𝒮] [OmegaCompletePartialOrder 𝒮] [OrderBot 𝒮] [IsPositiveOrderedAddMonoid 𝒮] {F : Type} [DecidableEq F] [Listed F] {N : Type} [DecidableEq N] (p : RPol 𝒮) :
Pk[F,N] × List Pk[F,N]Pk[F,N] × List Pk[F,N] →c 𝒮
Equations
Instances For
    theorem WeightedNetKAT.RPol.seq_of_prefix {𝒮 : Type} [Semiring 𝒮] [OmegaCompletePartialOrder 𝒮] [OrderBot 𝒮] [IsPositiveOrderedAddMonoid 𝒮] {F : Type} [DecidableEq F] [Listed F] {N : Type} [DecidableEq N] {p : RPol 𝒮} {h₀ h₁ : Pk[F,N] × List Pk[F,N]} (h : (p.sem h₀) h₁ 0) :
    h₀.2 <:+ h₁.2
    @[implicit_reducible]
    instance WeightedNetKAT.RPol.instZero {𝒮 F : Type} [Listed F] {N : Type} :
    Zero (RPol 𝒮)
    Equations
    @[implicit_reducible]
    instance WeightedNetKAT.instAddRPol {𝒮 F : Type} [Listed F] {N : Type} :
    Add (RPol 𝒮)
    Equations
    @[simp]
    theorem WeightedNetKAT.RPol.add_def {𝒮 F : Type} [Listed F] {N : Type} (p q : RPol 𝒮) :
    @[simp]
    theorem WeightedNetKAT.RPol.instAdd_sem {𝒮 : Type} [Semiring 𝒮] [OmegaCompletePartialOrder 𝒮] [OrderBot 𝒮] [IsPositiveOrderedAddMonoid 𝒮] {F : Type} [DecidableEq F] [Listed F] {N : Type} [DecidableEq N] (p q : RPol 𝒮) :
    (p + q).sem = p.sem + q.sem