MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch14.RefreshStreamAgreement

Agreement and bounded-test total variation for the particular finite marked stream. The agreement event is measurable in the packet space; no measurability of a singleton in an uncountable product is used.

The actual initial post of the same packet that supplies the times and marks.

Equations
Instances For
    noncomputable def MindFormal.RefreshStream.ordered {J : Type u_1} {n : ℕ} (p : Fibre J n) :
    List (ℝ × J)

    The times and their own marks sorted into chronological order. Sorting permutes whole time/mark pairs, so a mark remains attached to the event that supplied it. Equal times retain an enumeration convention.

    Equations
    Instances For
      theorem MindFormal.RefreshStream.ordered_perm {J : Type u_1} {n : ℕ} (p : Fibre J n) :
      (ordered p).Perm (List.ofFn fun (i : Fin n) => (p.2.1 i, p.2.2 i))
      theorem MindFormal.RefreshStream.ordered_times {J : Type u_1} {n : ℕ} (p : Fibre J n) :
      List.Pairwise (fun (a b : ℝ × J) => a.1 ≤ b.1) (ordered p)
      def MindFormal.RefreshStream.good {J : Type u_1} (b : J) :

      A sufficient common-stream agreement event, before applying any response kernel: the initial post is b and no refresh occurs in [0,2].

      Equations
      Instances For
        theorem MindFormal.RefreshStream.agreement_on_good {J : Type u_1} (b : J) {p : Sample J} (hp : p ∈ good b) :
        stream p = fun (x : ↑(Set.Icc 0 2)) => b

        This is pathwise agreement at every declared time, on one common event.

        The exact agreement-event mass includes the possibility that a perturbed initial draw also equals b; this is why the eventual bound is a lower bound.

        theorem MindFormal.RefreshStream.good_mass_lower {J : Type u_1} [MeasurableSpace J] [MeasurableSingletonClass J] (eps : NNReal) (he : eps ≤ 1) (b : J) (mu : MeasureTheory.Measure J) [MeasureTheory.IsProbabilityMeasure mu] :
        (1 - ↑eps) * Real.exp (-2 * ↑eps) ≤ (coupling eps b mu).real (good b)

        The source agreement bound, with both endpoint parameters allowed.

        noncomputable def MindFormal.RefreshStream.law {J : Type u_1} [MeasurableSpace J] (eps : NNReal) (b : J) (mu : MeasureTheory.Measure J) :

        The law is the measurable pushforward of the entire common packet.

        Equations
        Instances For
          theorem MindFormal.RefreshStream.tv_bound {J : Type u_1} [MeasurableSpace J] [MeasurableSingletonClass J] (eps : NNReal) (he : eps ≤ 1) (b : J) (mu : MeasureTheory.Measure J) [MeasureTheory.IsProbabilityMeasure mu] :
          RecordTotalVariation.tv (law eps b mu) (MeasureTheory.Measure.dirac fun (x : ↑(Set.Icc 0 2)) => b) ≤ 1 - (1 - ↑eps) * Real.exp (-2 * ↑eps)

          Bounded tests differ only off the single measurable common agreement event. This uses the whole history, rather than unrelated one-time couplings.