Documentation

WeightedNetKAT.WeightedSemiring.Instances

Weighted semiring instances #

We provide a set of proven sound weighted semirings, including instances for Kleene-star and ω-continuity for these.

Most of the semirings are computable (i.e. have computable instances of Semiring), but some, specifically those that do operations on reals, have noncomputable instances for now.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    @[implicit_reducible]
    Equations
    • One or more equations did not get rendered due to their size.
    theorem ENat.WithBot.cases_on {P : WithBot ℕ∞Prop} (x : WithBot ℕ∞) (bot : P ) (top : P ) (nat : ∀ (a : ), P a) :
    P x
    @[simp]
    theorem ENat.WithBot.top_add {x : WithBot ℕ∞} (hx : x ) :
    @[simp]
    theorem ENat.WithBot.add_top {x : WithBot ℕ∞} (hx : x ) :
    theorem ENat.WithBot.iSup_eq_bot {ι : Type u_1} {f : ιWithBot ℕ∞} :
    ⨆ (i : ι), f i = ∀ (i : ι), f i =
    theorem ENat.WithBot.iSup_eq_' {ι : Type u_1} [Nonempty ι] {f : ιWithBot ℕ∞} (h : ∃ (i : ι), f i ) :
    ⨆ (i : ι), f i = (⨆ (i : ι), WithBot.unbotD 0 (f i))
    theorem ENat.WithBot.iSup_add {ι : Type u_1} [Nonempty ι] {f : ιWithBot ℕ∞} {a : WithBot ℕ∞} :
    (⨆ (i : ι), f i) + a = ⨆ (i : ι), f i + a
    theorem ENat.WithBot.add_iSup {ι : Type u_1} [Nonempty ι] {f : ιWithBot ℕ∞} {a : WithBot ℕ∞} :
    a + ⨆ (i : ι), f i = ⨆ (i : ι), a + f i
    Equations
    Instances For
      @[simp]
      @[implicit_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        @[implicit_reducible]
        Equations
        Instances For
          @[implicit_reducible]
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            @[implicit_reducible]
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[implicit_reducible]
              Equations
              Instances For
                @[implicit_reducible]
                Equations
                @[simp]
                @[simp]
                theorem Weighted.Arctic.add_eq_hadd (a b : WithBot ℕ∞) :
                add a b = a + b
                @[implicit_reducible]
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[implicit_reducible]
                  Equations
                  Instances For
                    @[implicit_reducible]
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      @[implicit_reducible]
                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        @[implicit_reducible]
                        Equations
                        Instances For
                          @[implicit_reducible]
                          Equations
                          @[implicit_reducible]
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            @[implicit_reducible]
                            Equations
                            Instances For
                              @[implicit_reducible]
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                @[implicit_reducible]
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  @[implicit_reducible]
                                  Equations
                                  Instances For
                                    @[implicit_reducible]
                                    Equations
                                    @[implicit_reducible]
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      @[implicit_reducible]
                                      Equations
                                      Instances For
                                        @[implicit_reducible]
                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          @[implicit_reducible]
                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            @[implicit_reducible]
                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              @[implicit_reducible]
                                              Equations
                                              Instances For
                                                @[implicit_reducible]
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  @[implicit_reducible]
                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    @[implicit_reducible]
                                                    Equations
                                                    Instances For
                                                      @[reducible, inline]
                                                      Equations
                                                      Instances For
                                                        @[implicit_reducible]
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        @[simp]
                                                        @[simp]
                                                        @[simp]
                                                        @[simp]
                                                        @[implicit_reducible]
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        @[implicit_reducible]
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          @[implicit_reducible]
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            @[simp]
                                                            theorem Weighted.Viterbi.PReal.iSup_val {f : PReal} :
                                                            (⨆ (i : ), f i) = ⨆ (i : ), (f i)
                                                            @[implicit_reducible]
                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For