MindFormal v1.0.0One Mind

MindFormal.Tools.A641Practice.LessonClock

Equations
Instances For
    theorem MindFormal.A641Practice.slot_mass_nonneg {p : ℝ} (hp : p ∈ Set.Icc 0 1) (N d : ℕ) :
    0 ≤ slotMass p N d
    theorem MindFormal.A641Practice.slot_mass_hasSum {p : ℝ} (hp : p ∈ Set.Ioc 0 1) (d : ℕ) :
    HasSum (fun (N : ℕ) => slotMass p N d) (1 / p)
    theorem MindFormal.A641Practice.lesson_tail_hasSum {p : ℝ} (hp : p ∈ Set.Ioc 0 1) (m : ℕ) :
    HasSum (lessonTail p m) (↑m / p)

    The full finite pattern law of independent Bernoulli lesson slots. This is a sampling premise; neither a count law nor a waiting-time law is assumed. Restriction to a finite prefix keeps all joint slot indicators.

    Instances For
      noncomputable def MindFormal.A641Practice.lessonCount {Ω : Type u_1} (X : Ω → Set ℕ) (N : ℕ) (ω : Ω) :
      Equations
      Instances For
        theorem MindFormal.A641Practice.lesson_count_mono {Ω : Type u_1} (X : Ω → Set ℕ) (ω : Ω) :
        Monotone fun (N : ℕ) => lessonCount X N ω
        theorem MindFormal.A641Practice.BernoulliSlots.count_tail {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} {X : Ω → Set ℕ} {p : ↑unitInterval} (h : BernoulliSlots X p) (m N : ℕ) :
        μ.real {ω : Ω | lessonCount X N ω < m} = lessonTail (↑p) m N
        noncomputable def MindFormal.A641Practice.BernoulliSlots.waitingSlots {Ω : Type u_1} {X : Ω → Set ℕ} (m : ℕ) (ω : Ω) :

        The number of slots up to the m-th usable lesson, including infinity on a stream that never supplies it. Each not-yet-successful prefix pays one further slot. This is the tail-count definition of the hitting time.

        Equations
        Instances For
          theorem MindFormal.A641Practice.BernoulliSlots.waitingSlots_first {Ω : Type u_1} {X : Ω → Set ℕ} (m N : ℕ) (ω : Ω) (hit : m ≤ lessonCount X N ω) (early : ∀ n < N, lessonCount X n ω < m) :
          waitingSlots m ω = ↑N

          On a stream whose m-th success first occurs at slot N, the constructed hitting time is exactly N. Its laws below are consequences of sampling.

          theorem MindFormal.A641Practice.BernoulliSlots.expected_calendar {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {X : Ω → Set ℕ} {p : ↑unitInterval} (h : BernoulliSlots X p) (hp : 0 < ↑p) (m : ℕ) {duration preparation readTime : ℝ} (hd : 0 ≤ duration) (hprep : 0 ≤ preparation) (hread : 0 ≤ readTime) :
          ∫⁻ (ω : Ω), ENNReal.ofReal duration * waitingSlots m ω + ENNReal.ofReal preparation + ENNReal.ofReal readTime ∂μ = ENNReal.ofReal (duration * (↑m / ↑p) + preparation + readTime)

          Calendar time pays each sampled slot and the separate fixed costs. The expectation follows from the constructed hitting time, including its infinite-stream convention, rather than from an assumed waiting law.