MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch13.DescribedCash

def MindFormal.DescribedChoice.completeComparator (F residual : ℝ → ℝ) (sign amount : ℝ) :
Equations
Instances For
    def MindFormal.DescribedChoice.prospectRead (F : ℝ → ℝ) (weight high low : ℝ) :
    Equations
    Instances For
      theorem MindFormal.DescribedChoice.rational_inverse {A P D amount level : ℝ} (hpool : P + D * amount ≠ 0) (hlevel : A - D * level ≠ 0) (hroot : Prospect.branch A P D amount = level) :
      amount = P * level / (A - D * level)
      theorem MindFormal.DescribedChoice.rational_shift_positive {A P D amount : ℝ} (hA : 0 < A) (hP : 0 < P) (hD : 0 < D) (hm : 0 ≤ amount) :
      0 < A - D * Prospect.branch A P D amount
      theorem MindFormal.DescribedChoice.cash_constant_reference {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] (I : EquationInstance N n T Λ J) (projection : T → Fin n → ℝ) (u q : ℝ → Fin N → ℝ) (bank : ℝ → MindState (Fin N) n T Λ) (code : Fin N) (amounts : Set ℝ) (P D d γ baseline sign d0 weight high low : ℝ) (residual : ℝ → ℝ) (hP : 0 < P) (hD : 0 < D) (hA : 0 < γ * (d - I.activity.g * D)) (h_nonneg : ∀ m ∈ amounts, 0 ≤ m) (h_active : ∀ m ∈ amounts, 0 ≤ (d - I.activity.g * D) * m) (h_fields : ∀ m ∈ amounts, assembledInputs I.drift (u m) (q m) (bank m) code = I.activity.g * P + d * m ∧ pool I.activity.σ (assembledInputs I.drift (u m) (q m) (bank m)) = P + D * m) (h_presence : ∀ m ∈ amounts, I.presence (mindTrace (bank m) code) = normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u m) (q m) (bank m)) code) (h_reads : ∀ m ∈ amounts, ∑ a : T, ∑ b : Fin n, projection a b * mindValue (bank m) code b a = γ) (h_other : ∀ m ∈ amounts, ∑ j ∈ Finset.univ.erase code, I.presence (mindTrace (bank m) j) * ∑ a : T, ∑ b : Fin n, projection a b * mindValue (bank m) j b a = baseline) (h_residual : ∀ m ∈ amounts, residual m = d0) (h_range : prospectRead (fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline) weight high low + sign * d0 ∈ (fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline) '' amounts) :
      have F := fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline; have Q := prospectRead F weight high low; have A := γ * (d - I.activity.g * D); have mstar := P * (Q + sign * d0) / (A - D * (Q + sign * d0)); 0 < A - D * (Q + sign * d0) ∧ mstar ∈ amounts ∧ (∀ m ∈ amounts, completeComparator F residual sign m = Q ↔ m = mstar) ∧ sign * mstar = sign * (P * (Q + sign * d0) / (A - D * (Q + sign * d0)))

      FF1.2 on the actual complete-field code. The rational curve is derived from the whole pool, settled presence, code read and all other contributions. The constant residual is retained; represented-range membership proves both admissibility of the explicit amount and positivity of its denominator.

      theorem MindFormal.DescribedChoice.cash_zero_low {A P D h w : ℝ} (hA : 0 < A) (hP : 0 < P) (hD : 0 < D) (hh : 0 ≤ h) (hw : w ∈ Set.Icc 0 1) :
      P * (w * Prospect.branch A P D h) / (A - D * (w * Prospect.branch A P D h)) = P * w * h / (P + D * h * (1 - w)) ∧ P * w * h / (P + D * h * (1 - w)) ∈ Set.Icc 0 h

      FF1.2's zero-low-outcome, zero-residual reduction at the same rational coefficients. The amount is between the two outcomes for every weight in [0,1], including both endpoint weights.

      theorem MindFormal.DescribedChoice.rational_order {A P D x y : ℝ} (hA : 0 < A) (hP : 0 < P) (hD : 0 < D) (hx : 0 ≤ x) (hy : 0 ≤ y) :

      Strictly positive rational fields preserve the amount order on the entire nonnegative represented range.

      theorem MindFormal.DescribedChoice.cash_reference {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype T] [Fintype Λ] (I : EquationInstance N n T Λ J) (projection : T → Fin n → ℝ) (u q : ℝ → Fin N → ℝ) (bank : ℝ → MindState (Fin N) n T Λ) (code : Fin N) (amounts : Set ℝ) (P D d γ baseline sign d0 weight high low : ℝ) (residual : ℝ → ℝ) (hP : 0 < P) (hD : 0 < D) (hA : 0 < γ * (d - I.activity.g * D)) (h_nonneg : ∀ m ∈ amounts, 0 ≤ m) (h_active : ∀ m ∈ amounts, 0 ≤ (d - I.activity.g * D) * m) (h_fields : ∀ m ∈ amounts, assembledInputs I.drift (u m) (q m) (bank m) code = I.activity.g * P + d * m ∧ pool I.activity.σ (assembledInputs I.drift (u m) (q m) (bank m)) = P + D * m) (h_presence : ∀ m ∈ amounts, I.presence (mindTrace (bank m) code) = normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift (u m) (q m) (bank m)) code) (h_reads : ∀ m ∈ amounts, ∑ a : T, ∑ b : Fin n, projection a b * mindValue (bank m) code b a = γ) (h_other : ∀ m ∈ amounts, ∑ j ∈ Finset.univ.erase code, I.presence (mindTrace (bank m) j) * ∑ a : T, ∑ b : Fin n, projection a b * mindValue (bank m) j b a = baseline) (h_residual : ∀ m ∈ amounts, residual m = d0) (h_range : prospectRead (fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline) weight high low + sign * d0 ∈ (fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline) '' amounts) :
      have F := fun (m : ℝ) => Prospect.projectedForecast I projection (bank m) - baseline; have Q := prospectRead F weight high low; have A := γ * (d - I.activity.g * D); have mstar := P * (Q + sign * d0) / (A - D * (Q + sign * d0)); 0 < A - D * (Q + sign * d0) ∧ mstar ∈ amounts ∧ (∀ m ∈ amounts, completeComparator F residual sign m = Q ↔ m = mstar) ∧ sign * mstar = sign * (P * (Q + sign * d0) / (A - D * (Q + sign * d0))) ∧ (low ∈ amounts → high ∈ amounts → low ≤ high → d0 = 0 → weight ∈ Set.Icc 0 1 → mstar ∈ Set.Icc low high ∧ (low = 0 → mstar = P * weight * high / (P + D * high * (1 - weight))))

      All of FF1.2 at the actual complete-field code, including nonzero lesser outcomes, constant residual shifts, signed conversion, the zero residual amount bracket and the zero-outcome closed-form reduction.

      theorem MindFormal.DescribedChoice.cash_local_comparator {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} (I : EquationInstance N n T Λ J) (port : Fin 2 ↪o Fin N) (bank : ℝ → MindState (Fin N) n T Λ) (F dP dS : ℝ → ℝ) (Q sign offset χ : ℝ) (h_local : ∀ (m : ℝ) (i : Fin 2) (x : ℝ), 0 ≤ x → physicalReadReal I.reads.output x (mindValue (bank m) (port i)) = x + offset + χ * if i = 0 then sign * Q + dP m else sign * F m + dS m) (m x : ℝ) :
      0 ≤ x → physicalReadReal I.reads.output x (mindValue (bank m) (port 0)) - physicalReadReal I.reads.output x (mindValue (bank m) (port 1)) = χ * (sign * (Q - F m) + (dP m - dS m))

      FF1.1's complete comparator, including an amount-dependent contrast, is what the actual independently calibrated local option reads compare.

      theorem MindFormal.DescribedChoice.complete_inverse_interval (F residual : ℝ → ℝ) (sign Q : ℝ) (amounts : Set ℝ) :
      (StrictMonoOn (completeComparator F residual sign) amounts → Q ∈ completeComparator F residual sign '' amounts → ∃ root ∈ amounts, completeComparator F residual sign root = Q ∧ ∀ m ∈ amounts, (completeComparator F residual sign m = Q ↔ m = root) ∧ (root < m ↔ Q < completeComparator F residual sign m) ∧ (m < root ↔ completeComparator F residual sign m < Q)) ∧ ∀ (e lo hi : ℝ), 0 ≤ e → (∀ m ∈ amounts, m < lo → completeComparator F residual sign m < Q - e) → (∀ m ∈ amounts, hi < m → Q + e < completeComparator F residual sign m) → ∀ m ∈ amounts, |completeComparator F residual sign m - Q| ≤ e → m ∈ Set.Icc lo hi

      FF1.3's monotone inverse and FF1.4's certified enclosure use the whole amount-dependent comparator. The interval alternative needs no monotonicity inside the enclosure and permits multiple roots.