MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch13.ProspectReadTests

theorem MindFormal.Prospect.calibrated_pair_test {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] (I : EquationInstance N n T Λ J) (port : Fin 2 ↪o Fin N) (bank : MindState (Fin N) n T Λ) (u q : Fin N → ℝ) (S : Fin 2 → ℝ) (offset χ target : ℝ) (hχ : 0 < χ) (h_local : ∀ (i : Fin 2) (x : ℝ), 0 ≤ x → physicalReadReal I.reads.output x (mindValue bank (port i)) = x + offset + χ * S i) (h_target : ∀ (i : Fin 2), normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u q bank) (port i) = target) (hneed : ∀ (i : Fin 2), 0 < I.reads.actionBar - (offset + χ * S i)) :
(∀ (i j : Fin 2) (x : ℝ), 0 ≤ x → (physicalReadReal I.reads.output x (mindValue bank (port i)) < physicalReadReal I.reads.output x (mindValue bank (port j)) ↔ S i < S j)) ∧ ∀ (i j : Fin 2), I.reads.actionBar - (offset + χ * S i) < target → I.reads.actionBar - (offset + χ * S j) < target → (passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u q bank) (port j)) 0 (I.reads.actionBar - (offset + χ * S j)) < passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u q bank) (port i)) 0 (I.reads.actionBar - (offset + χ * S i)) ↔ S i < S j)

A separately calibrated local read turns exactly the scalar score ordering into the local output ordering; reachable held arrivals reverse it.

noncomputable def MindFormal.Prospect.framingScore (G L : ℝ → ℝ) (wg wl N : ℝ) (loss : Bool) (i : Fin 2) :
Equations
Instances For
    theorem MindFormal.Prospect.framing_read_tests {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] (I : EquationInstance N n T Λ J) (port : Fin 2 ↪o Fin N) (bank : Bool → MindState (Fin N) n T Λ) (u q : Bool → Fin N → ℝ) (G L : ℝ → ℝ) (wg wl N✝ offset χ target : ℝ) (hχ : 0 < χ) (h_local : ∀ (side : Bool) (i : Fin 2) (x : ℝ), 0 ≤ x → physicalReadReal I.reads.output x (mindValue (bank side) (port i)) = x + offset + χ * framingScore G L wg wl N✝ side i) (h_target : ∀ (side : Bool) (i : Fin 2), normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port i) = target) (hneed : ∀ (side : Bool) (i : Fin 2), 0 < I.reads.actionBar - (offset + χ * framingScore G L wg wl N✝ side i)) :
    (∀ (x : ℝ), 0 ≤ x → (physicalReadReal I.reads.output x (mindValue (bank false) (port 1)) < physicalReadReal I.reads.output x (mindValue (bank false) (port 0)) ↔ wg * G N✝ < G (N✝ / 3)) ∧ (physicalReadReal I.reads.output x (mindValue (bank true) (port 0)) < physicalReadReal I.reads.output x (mindValue (bank true) (port 1)) ↔ wl * L N✝ < L (2 * N✝ / 3))) ∧ (∀ (side : Bool) (i j : Fin 2), I.reads.actionBar - (offset + χ * framingScore G L wg wl N✝ side i) < target → I.reads.actionBar - (offset + χ * framingScore G L wg wl N✝ side j) < target → (passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port j)) 0 (I.reads.actionBar - (offset + χ * framingScore G L wg wl N✝ side j)) < passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port i)) 0 (I.reads.actionBar - (offset + χ * framingScore G L wg wl N✝ side i)) ↔ framingScore G L wg wl N✝ side i < framingScore G L wg wl N✝ side j)) ∧ ∀ (c : ℝ), 0 < c → (wl * (c * L N✝) < c * L (2 * N✝ / 3) ↔ wl * L N✝ < L (2 * N✝ / 3))

    The saved/lost framing tests through the actual independently calibrated local option reads. Their complete common targets and every positive requirement are retained; the held arrival test additionally checks reach.

    def MindFormal.Prospect.fourfoldScore (G L : ℝ → ℝ) (p h wg wl : ℝ) (loss : Bool) (i : Fin 2) :
    Equations
    Instances For
      theorem MindFormal.Prospect.fourfold_read_tests {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] (I : EquationInstance N n T Λ J) (port : Fin 2 ↪o Fin N) (bank : Bool → MindState (Fin N) n T Λ) (u q : Bool → Fin N → ℝ) (G L : ℝ → ℝ) (p h wg wl offset χ target : ℝ) (hχ : 0 < χ) (hG : 0 < G h) (hL : 0 < L h) (h_local : ∀ (side : Bool) (i : Fin 2) (x : ℝ), 0 ≤ x → physicalReadReal I.reads.output x (mindValue (bank side) (port i)) = x + offset + χ * fourfoldScore G L p h wg wl side i) (h_target : ∀ (side : Bool) (i : Fin 2), normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port i) = target) (hneed : ∀ (side : Bool) (i : Fin 2), 0 < I.reads.actionBar - (offset + χ * fourfoldScore G L p h wg wl side i)) :
      (∀ (x : ℝ), 0 ≤ x → (physicalReadReal I.reads.output x (mindValue (bank false) (port 0)) < physicalReadReal I.reads.output x (mindValue (bank false) (port 1)) ↔ G (p * h) / G h < wg) ∧ (physicalReadReal I.reads.output x (mindValue (bank false) (port 1)) < physicalReadReal I.reads.output x (mindValue (bank false) (port 0)) ↔ wg < G (p * h) / G h) ∧ (physicalReadReal I.reads.output x (mindValue (bank true) (port 1)) < physicalReadReal I.reads.output x (mindValue (bank true) (port 0)) ↔ L (p * h) / L h < wl) ∧ (physicalReadReal I.reads.output x (mindValue (bank true) (port 0)) < physicalReadReal I.reads.output x (mindValue (bank true) (port 1)) ↔ wl < L (p * h) / L h)) ∧ ∀ (side : Bool) (i j : Fin 2), I.reads.actionBar - (offset + χ * fourfoldScore G L p h wg wl side i) < target → I.reads.actionBar - (offset + χ * fourfoldScore G L p h wg wl side j) < target → (passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port j)) 0 (I.reads.actionBar - (offset + χ * fourfoldScore G L p h wg wl side j)) < passageTime I.activity.ν (normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u side) (q side) (bank side)) (port i)) 0 (I.reads.actionBar - (offset + χ * fourfoldScore G L p h wg wl side i)) ↔ fourfoldScore G L p h wg wl side i < fourfoldScore G L p h wg wl side j)

      All four signs in the score table through the actual local reads, with their separately stated response and complete-target calibration.