MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch04.RetainedMeans

noncomputable def MindFormal.retainedAverage {I : Type u_5} (selected : Finset I) (time : I → ℝ) :

04.32 C11: arithmetic mean of a finite retained group. The harmless totalization at the empty set is never included in the conditional experiment.

Equations
Instances For
    theorem MindFormal.retainedAverage_window {I : Type u_5} (selected : Finset I) (time : I → ℝ) (hne : selected.Nonempty) {L U : ℝ} (hw : ∀ q ∈ selected, time q ∈ Set.Icc L U) :
    retainedAverage selected time ∈ Set.Icc L U

    04.32 C8--C11: every nonempty subset of times in [L,U] has its mean in that interval. Thus arbitrary within-condition deletion, including the declared three-SD rule, preserves a certified whole-group separation.

    structure MindFormal.RetainedTrials {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (m : ℕ) :
    Type u_1

    04.32 C8--C11: a condition's actual correct-response trial slots, array onsets, retained-after-exclusion subset and common response bounds. The selection is the declared experimental rule, not a zero-filled mean.

    Instances For
      noncomputable def MindFormal.RetainedTrials.time {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {m : ℕ} (R : RetainedTrials C m) (z : Ω) (q : Fin m) :

      04.32 C11: prompt-relative actual finite native time in each retained trial.

      Equations
      Instances For
        noncomputable def MindFormal.RetainedTrials.mean {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {m : ℕ} (R : RetainedTrials C m) (z : Ω) :

        04.32 C11: measured retained group mean, used only on nonempty groups.

        Equations
        Instances For
          def MindFormal.RetainedTrials.Calibration {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {m : ℕ} (R : RetainedTrials C m) :

          04.32 C1--C9: the exact source-to-native gap is reward acquisition, full-pool first IV capture, pulse coverage and correct V score windows in every continuing trial. Reference margins, actual release bounds and nonempty retained groups are the explicit intermediate obligations.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.retained_native_window {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {m : ℕ} (R : RetainedTrials C m) (hR : R.Calibration) (z : Ω) :
            z ∈ C.good → R.mean z ∈ Set.Icc R.lower R.upper

            04.32 C8--C11: source trial calibration yields the actual retained mean interval on the constructed event. The proof first obtains every native correct report/time, then applies the subset-average bound after exclusions.

            theorem MindFormal.live_04_32 {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {m r : ℕ} (high : RetainedTrials C m) (neutral : RetainedTrials C r) (rewardCaptureRetainedCalibration : high.Calibration ∧ neutral.Calibration) :
            1 - C.control.failure ≤ C.data.μ.real {z : Ω | (high.selected z).Nonempty ∧ (neutral.selected z).Nonempty ∧ high.lower - neutral.upper ≤ high.mean z - neutral.mean z}

            04.32 C9--C11 finite clause: both retained groups are nonempty and their actual means differ by at least RHminus-RNplus with probability

            =1-epsilon. rewardCaptureRetainedCalibration names the missing complete training/first-focus/response margin and selection-nonemptiness proof.

            theorem MindFormal.live_04_32_mean {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {m r : ℕ} (high : RetainedTrials C m) (neutral : RetainedTrials C r) {H : ℝ} (hH : 0 ≤ H) (rewardCaptureRetainedCalibration : high.Calibration ∧ neutral.Calibration) (retainedCorrectProtocol : ∀ (z : Ω), (∀ q ∈ high.selected z, high.time z q ∈ Set.Icc 0 H) ∧ ∀ q ∈ neutral.selected z, neutral.time z q ∈ Set.Icc 0 H) (sourceGap : 0 ≤ high.lower - neutral.upper) (hQ : MeasurableSet {z : Ω | (high.selected z).Nonempty ∧ (neutral.selected z).Nonempty}) (positive : 0 < C.data.μ.real {z : Ω | (high.selected z).Nonempty ∧ (neutral.selected z).Nonempty}) (actualUI : MeasureTheory.Integrable (fun (z : Ω) => high.mean z - neutral.mean z) C.data.μ[|{z : Ω | (high.selected z).Nonempty ∧ (neutral.selected z).Nonempty}]) :
            (high.lower - neutral.upper) * (1 - C.control.failure) - H * C.control.failure ≤ ∫ (z : Ω), high.mean z - neutral.mean z ∂C.data.μ[|{z : Ω | (high.selected z).Nonempty ∧ (neutral.selected z).Nonempty}]

            04.32 C10--C11 separate mean clause: conditional on BOTH retained groups being nonempty, their integrable bounded actual means have the source lower gap d(1-epsilon)-H epsilon. retainedCorrectProtocol requires every retained time to be a valid [0,H] experimental RT; empty groups are excluded. The good event's conditional failure is derived, not assumed to equal its unconditional failure. UI is explicit and no uncensored latency mean is asserted.