MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch20.Exercise

def MindFormal.Exercise.direction {N : ℕ} (j k : Fin N) :
Fin N → ℝ

The fixed column direction e_j-e_k, including the zero direction.

Equations
Instances For
    theorem MindFormal.Exercise.direction_read {N : ℕ} (j k : Fin N) (x : Fin N → ℝ) :
    ∑ l : Fin N, direction j k l * x l = x j - x k
    noncomputable def MindFormal.Exercise.forcingDose {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j k : Fin N) (t : ℝ) :

    CA7's signed discounted forcing, with the realized moving dose.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def MindFormal.Exercise.dampedNoise {N n : ℕ} {T : Type u_2} {Λ : Type u_3} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j k : Fin N) (t : ℝ) :

      CA7's actual by-parts innovation term. The future-dose kernel is used only in an ordinary time integral.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.Exercise.contrast_drift {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) (t : ℝ) :
        have G := E.supportHistory ω; assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, j)) - assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, k)) = G.gain t * (((1 - G.data.β) * actualError G i t + G.data.β * G.x t i) * (G.p t j - G.p t k) - G.data.β * G.x t i * (G.W t i j - G.W t i k))

        CA6: subtracting the two actual II coordinates retains the full receiver error and both signed writers.

        theorem MindFormal.Exercise.contrast_drift_signs {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) (t : ℝ) :
        have G := E.supportHistory ω; have D := assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, j)) - assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, k)); have F := ((1 - G.data.β) * actualError G i t + G.data.β * G.x t i) * (G.p t j - G.p t k) - G.data.β * G.x t i * (G.W t i j - G.W t i k); (0 < D ↔ 0 < F) ∧ (D = 0 ↔ F = 0) ∧ (D < 0 ↔ F < 0)

        CA6: positive gain cancels in all three signs of the actual drift.

        theorem MindFormal.Exercise.contrast_history {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t : ℝ} (ht : 0 ≤ t) :
        have G := E.supportHistory ω; G.W t i j - G.W t i k = doseRetention (ProjectedHistory.loss G i) t * (G.W 0 i j - G.W 0 i k) + forcingDose G i j k t + dampedNoise G i j k t

        CA7: the exact native history identity at e_j-e_k. This specializes the existing projected identity; no second integrating-factor proof is used.

        theorem MindFormal.Exercise.contrast_noise_bound {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t b : ℝ} (ht : 0 ≤ t) (hN : ∀ s ∈ Set.Icc 0 t, |ProjectedHistory.noise (E.supportHistory ω) i (direction j k) s| ≤ b) :
        |dampedNoise (E.supportHistory ω) i j k t| ≤ 2 * b

        CA7: L26's by-parts bound gives exactly the requested 2b allowance for a contrast, even when its dose depends on the whole noisy history.

        theorem MindFormal.Exercise.endpoint_tests {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t b need : ℝ} (ht : 0 ≤ t) (hN : ∀ s ∈ Set.Icc 0 t, |ProjectedHistory.noise (E.supportHistory ω) i (direction j k) s| ≤ b) :
        have G := E.supportHistory ω; have r := doseRetention (ProjectedHistory.loss G i) t; have w0 := G.W 0 i j - G.W 0 i k; (need ≤ r * w0 + forcingDose G i j k t - 2 * b → need ≤ G.W t i j - G.W t i k) ∧ (r * w0 + forcingDose G i j k t + 2 * b < need → G.W t i j - G.W t i k < need) ∧ ((1 - r) * w0 + 2 * b < forcingDose G i j k t → w0 < G.W t i j - G.W t i k)

        CA8: all three sufficient signed tests, with the full native retained component, signed forcing and the common 2b allowance.

        theorem MindFormal.Exercise.exact_endpoint_tests {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t need : ℝ} (ht : 0 ≤ t) :
        have G := E.supportHistory ω; have r := doseRetention (ProjectedHistory.loss G i) t; have w0 := G.W 0 i j - G.W 0 i k; (need ≤ G.W t i j - G.W t i k ↔ need ≤ r * w0 + forcingDose G i j k t + dampedNoise G i j k t) ∧ (G.W t i j - G.W t i k < need ↔ r * w0 + forcingDose G i j k t + dampedNoise G i j k t < need) ∧ (w0 < G.W t i j - G.W t i k ↔ (1 - r) * w0 < forcingDose G i j k t + dampedNoise G i j k t)

        CA8's exact endpoint tests retain the realized Z rather than an allowance. Retention is signed; a large reversal is not retention.

        theorem MindFormal.Exercise.forcing_dose_lower {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t w : ℝ} (ht : 0 ≤ t) (hF : ∀ s ∈ Set.Icc 0 t, ProjectedHistory.loss (E.supportHistory ω) i s * w ≤ ProjectedHistory.forcing (E.supportHistory ω) i (direction j k) s) :

        CA8's lower forcing comparison, integrated with the exact dose kernel. Every integrability requirement is derived from the actual writer.

        theorem MindFormal.Exercise.forcing_dose_upper {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t w : ℝ} (ht : 0 ≤ t) (hF : ∀ s ∈ Set.Icc 0 t, ProjectedHistory.forcing (E.supportHistory ω) i (direction j k) s ≤ ProjectedHistory.loss (E.supportHistory ω) i s * w) :
        theorem MindFormal.Exercise.forcing_comparisons {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t b w : ℝ} (ht : 0 ≤ t) (hN : ∀ s ∈ Set.Icc 0 t, |ProjectedHistory.noise (E.supportHistory ω) i (direction j k) s| ≤ b) :
        have G := E.supportHistory ω; have r := doseRetention (ProjectedHistory.loss G i) t; have w0 := G.W 0 i j - G.W 0 i k; ((∀ s ∈ Set.Icc 0 t, ProjectedHistory.loss G i s * w ≤ ProjectedHistory.forcing G i (direction j k) s) → r * w0 + (1 - r) * w - 2 * b ≤ G.W t i j - G.W t i k) ∧ ((∀ s ∈ Set.Icc 0 t, ProjectedHistory.forcing G i (direction j k) s ≤ ProjectedHistory.loss G i s * w) → G.W t i j - G.W t i k ≤ r * w0 + (1 - r) * w + 2 * b)

        CA8: the two forcing holds give the two discounted convex bounds, with the original signed entering contrast and the same 2b noise price.

        theorem MindFormal.Exercise.absent_forcing_dose {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t : ℝ} (ht : 0 ≤ t) (hC : ∀ s ∈ Set.Icc 0 t, (E.supportHistory ω).p s j = (E.supportHistory ω).p s k) :
        forcingDose (E.supportHistory ω) i j k t = 0

        CA9: equal actual sender presences make the entire discounted forcing zero, regardless of reward or receiver prediction error.

        theorem MindFormal.Exercise.retained_fraction_iff {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i : Fin N) (t : ℝ) {z : ℝ} (hz : 0 < z) :

        CA9: retaining a positive fraction of the homogeneous initial component is exactly a logarithmic dose test. No constant rate is assumed.

        theorem MindFormal.Exercise.receiver_residence {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i : Fin N) {t α : ℝ} (ht : 0 ≤ t) (hα : 0 < α) :
        E.mind.β * E.mind.gain 0 * α * awarenessResidence (fun (s : ℝ) => (E.supportHistory ω).x s i) α t ≤ ∫ (s : ℝ) in 0..t, ProjectedHistory.loss (E.supportHistory ω) i s

        CA9: the dose dominates actual receiver residence. This is L26's proved own-run residence inequality, with the primitive gain floor.

        theorem MindFormal.Exercise.forcing_envelope {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t : ℝ} (ht : 0 ≤ t) (upper : ℝ → ℝ) (hu : IntervalIntegrable upper MeasureTheory.volume 0 t) (hF : ∀ s ∈ Set.Icc 0 t, ProjectedHistory.forcing (E.supportHistory ω) i (direction j k) s ≤ upper s) :

        A pointwise forcing ceiling gives its actual discounted integral. Signed ceilings are allowed; their integrability is a comparison hold.

        theorem MindFormal.Exercise.exposure_deadline {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t α b need : ℝ} (ht : 0 ≤ t) (hα : 0 < α) (hN : ∀ s ∈ Set.Icc 0 t, |ProjectedHistory.noise (E.supportHistory ω) i (direction j k) s| ≤ b) (upper : ℝ → ℝ) (hu : IntervalIntegrable upper MeasureTheory.volume 0 t) (hF : ∀ s ∈ Set.Icc 0 t, ProjectedHistory.forcing (E.supportHistory ω) i (direction j k) s ≤ upper s) (hstart : 0 < (E.supportHistory ω).W 0 i j - (E.supportHistory ω).W 0 i k) :
        have G := E.supportHistory ω; have bill := (∫ (s : ℝ) in 0..t, doseKernel (ProjectedHistory.loss G i) t s * upper s) + 2 * b; bill < need → Real.log ((G.W 0 i j - G.W 0 i k) / (need - bill)) / (E.mind.β * E.mind.gain 0 * α) < awarenessResidence (fun (s : ℝ) => G.x s i) α t → G.W t i j - G.W t i k < need

        CA9: the exposure deadline with a possibly nonzero signed forcing ceiling includes its discounted integral. No constant rate or continuous awareness assumption replaces actual occupied time.

        theorem MindFormal.Exercise.absent_exposure_deadline {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (i j k : Fin N) {t α b need : ℝ} (ht : 0 ≤ t) (hα : 0 < α) (hN : ∀ s ∈ Set.Icc 0 t, |ProjectedHistory.noise (E.supportHistory ω) i (direction j k) s| ≤ b) (hC : ∀ s ∈ Set.Icc 0 t, (E.supportHistory ω).p s j = (E.supportHistory ω).p s k) (hstart : 0 < (E.supportHistory ω).W 0 i j - (E.supportHistory ω).W 0 i k) (hgap : 2 * b < need) (hdeadline : Real.log (((E.supportHistory ω).W 0 i j - (E.supportHistory ω).W 0 i k) / (need - 2 * b)) / (E.mind.β * E.mind.gain 0 * α) < awarenessResidence (fun (s : ℝ) => (E.supportHistory ω).x s i) α t) :
        (E.supportHistory ω).W t i j - (E.supportHistory ω).W t i k < need

        CA9's absent-distinction deadline is the zero-forcing specialization of the same bound. Positive initial orientation is retained explicitly.

        theorem MindFormal.Exercise.contrast_certificate {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (i j k : Fin N) {H : NNReal} (hH : H ≤ E.horizon) {b σ ε : ℝ} (hb : 0 < b) (enclosure : Set Ω) (hm : MeasurableSet enclosure) (he : 1 - ε ≤ E.ground.μ.real enclosure) (hl : ∀ ω ∈ enclosure, E.LinearLoadingBound (ProjectedHistory.rowFunctional i (direction j k)) H σ ω) :
        ∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ enclosure ∧ 1 - min 1 (ε + ItoFiltration.projectedNoisePrice b σ H) ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, ∀ t ∈ Set.Icc 0 ↑H, |dampedNoise (E.supportHistory ω) i j k t| ≤ 2 * b

        CA7–CA9's simultaneous scalar certificate uses L26's combined contrast loading and its zero-loading-free price, with one enclosure failure. The vector form is vector_allowance_event_own, unchanged.