MindFormal v1.0.0One Mind

MindFormal.Run.CountableContinuationRepair.SharpPath

structure MindFormal.CountableContinuationRepair.SharpPath (N n : ℕ) (T : Type u_3) (Λ : Type u_4) [Fintype T] [Fintype Λ] :
Type (max u_3 u_4)

Pathwise native equations for the ordinary activity-floor branch of RP9. There is no noise-index parameter or solver in this contract. The original complete history discharges it; probability is proved separately from rows.

Instances For
    noncomputable def MindFormal.CountableContinuationRepair.SharpPath.target {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) (s : ℝ) :

    02.20: content i's complete target on the run at real time s, with the run's own input, native focus pulse, links, values and traces.

    Equations
    Instances For
      noncomputable def MindFormal.CountableContinuationRepair.SharpPath.targetConv {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) (t : ℝ) :

      02.20 (RP5): the exponential convolution of content i's own actual target from its start.

      Equations
      Instances For
        theorem MindFormal.CountableContinuationRepair.SharpPath.target_bounds {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) (s : ℝ) :
        0 ≤ G.target i s ∧ G.target i s < 1 - G.data.activity.g
        theorem MindFormal.CountableContinuationRepair.SharpPath.target_integrable {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) {b : ℝ} (hb : 0 ≤ b) :
        theorem MindFormal.CountableContinuationRepair.SharpPath.activity_increment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) :
        mindActivity (G.state b) i - mindActivity (G.state a) i = (∫ (s : ℝ) in a..b, G.data.activity.ν * (G.target i s - mindActivity (G.state s) i)) + (G.driver b.toNNReal (Sum.inr (Sum.inl i)) - G.driver a.toNNReal (Sum.inr (Sum.inl i))) + (G.realPush b i - G.realPush a i)
        theorem MindFormal.CountableContinuationRepair.SharpPath.targetConv_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) {t : ℝ} (ht : 0 ≤ t) :

        02.20 (RP5): the convolution of a target below 1 − g from x₀ stays at most max(x₀, 1 − g).

        theorem MindFormal.CountableContinuationRepair.SharpPath.trace_le_from {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) {a t X Xr : ℝ} (ha : 0 ≤ a) (ht : a ≤ t) (hXr : X ≤ Xr) (hr0 : ∀ (i : Fin N) (l : Λ), mindTrace (G.state a) i l ≤ Xr) (hx : ∀ s ∈ Set.Icc a t, ∀ (i : Fin N), mindActivity (G.state s) i ≤ X) (i : Fin N) (l : Λ) :
        mindTrace (G.state t) i l ≤ Xr

        The RP7 trace bound after a nonnegative cut, with its original D4 equation and zero trace innovation. This extends the original proof in place.

        theorem MindFormal.CountableContinuationRepair.SharpPath.trace_le {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) {t X Xr : ℝ} (ht : 0 ≤ t) (hXr : X ≤ Xr) (hr0 : ∀ (i : Fin N) (l : Λ), mindTrace (G.state 0) i l ≤ Xr) (hx : ∀ s ∈ Set.Icc 0 t, ∀ (i : Fin N), mindActivity (G.state s) i ≤ X) (i : Fin N) (l : Λ) :
        mindTrace (G.state t) i l ≤ Xr

        02.20 (RP7): with activity at most X ≤ X_r on [0,t] and the start's traces at most X_r, D4 keeps every trace in [0,X_r] through t; traces carry no innovation.

        theorem MindFormal.CountableContinuationRepair.SharpPath.activity_near_targetConv {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (i : Fin N) {t1 ϖ : ℝ} (hξ : ∀ s ∈ Set.Icc 0 t1, |G.driver s.toNNReal (Sum.inr (Sum.inl i))| ≤ ϖ) (t : ℝ) :
        t ∈ Set.Icc 0 t1 → |mindActivity (G.state t) i - G.targetConv i t| ≤ 2 * ϖ

        02.20 (RP5), THE CORRIDOR THAT KEEPS REFLECTION. If content i's innovation stays within ϖ in absolute value on [0,t1], its activity stays within 2ϖ of the exponential convolution of its own actual target there: |x_i(t) − m_i(t)| ≤ 2ϖ.

        theorem MindFormal.CountableContinuationRepair.SharpPath.coord_bound_from {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (j : CoordinateIndex (Fin N) n T Λ) (hj : mindFloor j = false) {a t K : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (hK : ∀ s ∈ Set.Ioo a t, |assembledDrift G.data (G.input s) (G.pulse s) (G.state s) j| ≤ K) :
        |G.state t j - G.state a j| ≤ K * (t - a) + |G.driver t.toNNReal j - G.driver a.toNNReal j|

        A nonreflecting coordinate's full drift bound on any nonnegative window bounds its increment, with its original restarted innovation.

        theorem MindFormal.CountableContinuationRepair.SharpPath.coord_bound {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (j : CoordinateIndex (Fin N) n T Λ) (hj : mindFloor j = false) {t K : ℝ} (ht : 0 ≤ t) (hK : ∀ s ∈ Set.Ioo 0 t, |assembledDrift G.data (G.input s) (G.pulse s) (G.state s) j| ≤ K) :
        |G.state t j - G.state 0 j| ≤ K * t + |G.driver t.toNNReal j|

        02.20 (RP7): a relation, value or trace coordinate moves from its start by at most K·t plus its own innovation, when its complete drift is at most K in absolute value inside (0,t).

        theorem MindFormal.CountableContinuationRepair.SharpPath.box_closure {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) {t1 H X Xr ρW ρv KW Kv ϖx ϖW ϖv lam : ℝ} {Ureg : Set (Fin N → ℝ)} (ht1H : t1 ≤ H) (hXr : X ≤ Xr) (hr0 : ∀ (i : Fin N) (l : Λ), mindTrace (G.state 0) i l ≤ Xr) (hlam : ∀ (l : Λ), G.data.rate l ≤ lam) (hKW0 : 0 ≤ KW) (hKv0 : 0 ≤ Kv) (hU : ∀ s ∈ Set.Icc 0 t1, G.input s ∈ Ureg) (hKW : ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (G.state 0) X Xr ρW ρv s → ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ Ureg → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i j : Fin N), |assembledDrift G.data u q s (Sum.inl (i, j))| ≤ KW) (hKv : ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (G.state 0) X Xr ρW ρv s → ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ Ureg → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i : Fin N) (b : Fin n) (τ : T), |assembledDrift G.data u q s (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ Kv) (hξx : ∀ s ∈ Set.Icc 0 t1, ∀ (i : Fin N), |G.driver s.toNNReal (Sum.inr (Sum.inl i))| ≤ ϖx) (hξW : ∀ s ∈ Set.Icc 0 t1, ∀ (i j : Fin N), |G.driver s.toNNReal (Sum.inl (i, j))| ≤ ϖW) (hξv : ∀ s ∈ Set.Icc 0 t1, ∀ (i : Fin N) (b : Fin n) (τ : T), |G.driver s.toNNReal (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ ϖv) (hcW : KW * H + ϖW < ρW) (hcv : Kv * H + ϖv < ρv) (hcx : ∀ (i : Fin N), max (mindActivity (G.state 0) i) (1 - G.data.activity.g) + 2 * ϖx ≤ X) (t : ℝ) :
        t ∈ Set.Icc 0 t1 → InCorridorBox (G.state 0) X Xr ρW ρv (G.state t) ∧ (∀ (i : Fin N), mindActivity (G.state t) i ≤ max (mindActivity (G.state 0) i) (1 - G.data.activity.g) + 2 * ϖx) ∧ (∀ (i j : Fin N), |mindRelation (G.state t) i j - mindRelation (G.state 0) i j| ≤ KW * t + ϖW) ∧ (∀ (i : Fin N) (b : Fin n) (τ : T), |mindValue (G.state t) i b τ - mindValue (G.state 0) i b τ| ≤ Kv * t + ϖv) ∧ ∀ (i : Fin N) (l : Λ), |mindTrace (G.state t) i l - mindTrace (G.state 0) i l| ≤ min Xr (lam * Xr * t)

        02.20 (RP7), THE BOX CLOSES. On [0,t₁] ⊆ [0,H], let the run's input stay in a region U, each activity, link and value innovation stay within ϖ_x, ϖ_W, ϖ_v, the trace rates be at most λ_*, and K_W, K_v ≥ 0 bound the absolute II and III drift coordinates on the box (activities in [0,X], traces in [0,X_r], links within ρ_W and values within ρ_v of the start's) at every input of the region and every binary focus. If the start's traces are at most X_r ≥ X and the closure inequalities K_W·H + ϖ_W < ρ_W, K_v·H + ϖ_v < ρ_v and max(x_i(0), 1 − g) + 2ϖ_x ≤ X hold, the run stays in the box through t₁, with activity at most max(x_i(0), 1 − g) + 2ϖ_x, links within K_W·t + ϖ_W, values within K_v·t + ϖ_v and traces within min(X_r, λ_*X_r t) of the start.

        noncomputable def MindFormal.CountableContinuationRepair.SharpPath.heldTarget {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) (ub qb xb : ℝ → Fin N → ℝ) (k : Fin N) (w : ℝ) :

        02.20 (RP9): content k's held target at time w: the target with the declared input ū, binary attention q̄ and the held state (the start's links, values and traces, the comparison's activities x̄(w)).

        Equations
        Instances For
          theorem MindFormal.CountableContinuationRepair.SharpPath.sharp_corridor {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : SharpPath N n T Λ) {t1 H X Xr ρW ρv KW Kv ϖx ϖW ϖv lam Lu Lq Lv LR Lψ Δu Δq d0 : ℝ} {Ureg : Set (Fin N → ℝ)} (ht1H : t1 ≤ H) (hXr : X ≤ Xr) (hr0 : ∀ (i : Fin N) (l : Λ), mindTrace (G.state 0) i l ≤ Xr) (hlam0 : 0 ≤ lam) (hlam : ∀ (l : Λ), G.data.rate l ≤ lam) (hKW0 : 0 ≤ KW) (hKv0 : 0 ≤ Kv) (hϖx0 : 0 ≤ ϖx) (hϖW0 : 0 ≤ ϖW) (hϖv0 : 0 ≤ ϖv) (hU : ∀ s ∈ Set.Icc 0 t1, G.input s ∈ Ureg) (hKW : ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (G.state 0) X Xr ρW ρv s → ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ Ureg → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i j : Fin N), |assembledDrift G.data u q s (Sum.inl (i, j))| ≤ KW) (hKv : ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (G.state 0) X Xr ρW ρv s → ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ Ureg → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i : Fin N) (b : Fin n) (τ : T), |assembledDrift G.data u q s (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ Kv) (hξx : ∀ s ∈ Set.Icc 0 t1, ∀ (i : Fin N), |G.driver s.toNNReal (Sum.inr (Sum.inl i))| ≤ ϖx) (hξW : ∀ s ∈ Set.Icc 0 t1, ∀ (i j : Fin N), |G.driver s.toNNReal (Sum.inl (i, j))| ≤ ϖW) (hξv : ∀ s ∈ Set.Icc 0 t1, ∀ (i : Fin N) (b : Fin n) (τ : T), |G.driver s.toNNReal (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ ϖv) (hcW : KW * H + ϖW < ρW) (hcv : Kv * H + ϖv < ρv) (hcx : ∀ (i : Fin N), max (mindActivity (G.state 0) i) (1 - G.data.activity.g) + 2 * ϖx ≤ X) (ub qb : ℝ → Fin N → ℝ) (xb0 : Fin N → ℝ) (xb : ℝ → Fin N → ℝ) (hub : ∀ w ∈ Set.Icc 0 t1, 0 ≤ ub w ∧ ub w ∈ Ureg) (hqb : ∀ w ∈ Set.Icc 0 t1, ∀ (i : Fin N), qb w i ∈ {0, 1}) (hxb0 : ∀ (i : Fin N), 0 ≤ xb0 i ∧ max (xb0 i) (1 - G.data.activity.g) ≤ X) (hTbi : ∀ (i : Fin N), IntervalIntegrable (G.heldTarget ub qb xb i) MeasureTheory.volume 0 t1) (hxb : ∀ t ∈ Set.Icc 0 t1, ∀ (i : Fin N), xb t i = expConv G.data.activity.ν (xb0 i) (G.heldTarget ub qb xb i) t) (hd0 : ∀ (i : Fin N), |mindActivity (G.state 0) i - xb0 i| ≤ d0) (hLD : ∀ w ∈ Set.Icc 0 t1, ∀ (ℓ : Fin N) (v : Fin n → T → ℝ), (∀ (b : Fin n) (τ : T), |v b τ - mindValue (G.state 0) ℓ b τ| ≤ ρv) → |G.data.drive (G.input w ℓ) (G.pulse w ℓ) v - G.data.drive (ub w ℓ) (qb w ℓ) (mindValue (G.state 0) ℓ)| ≤ Lu * |G.input w ℓ - ub w ℓ| + Lq * |G.pulse w ℓ - qb w ℓ| + Lv * ‖v - mindValue (G.state 0) ℓ‖) (hLR : ∀ (ℓ : Fin N) (r : Λ → ℝ), (∀ (l : Λ), 0 ≤ r l ∧ r l ≤ Xr) → |G.data.residue r - G.data.residue (mindTrace (G.state 0) ℓ)| ≤ LR * ‖r - mindTrace (G.state 0) ℓ‖) (hLψ : ∀ (s s' : MindState (Fin N) n T Λ) (u u' q q' : Fin N → ℝ), InCorridorBox (G.state 0) X Xr ρW ρv s → InCorridorBox (G.state 0) X Xr ρW ρv s' → 0 ≤ u → u ∈ Ureg → 0 ≤ u' → u' ∈ Ureg → (∀ (i : Fin N), q i ∈ {0, 1}) → (∀ (i : Fin N), q' i ∈ {0, 1}) → ∀ (ℓ : Fin N), |G.data.transform.ψ (corridorRaw G.data u q s ℓ) - G.data.transform.ψ (corridorRaw G.data u' q' s' ℓ)| ≤ Lψ * |corridorRaw G.data u q s ℓ - corridorRaw G.data u' q' s' ℓ|) (hLu0 : 0 ≤ Lu) (hLq0 : 0 ≤ Lq) (hLv0 : 0 ≤ Lv) (hLR0 : 0 ≤ LR) (hLψ0 : 0 ≤ Lψ) (hui : IntervalIntegrable (fun (w : ℝ) => ‖G.input w - ub w‖) MeasureTheory.volume 0 t1) (hqi : IntervalIntegrable (fun (w : ℝ) => ‖G.pulse w - qb w‖) MeasureTheory.volume 0 t1) (hΔu : ∀ t ∈ Set.Icc 0 t1, G.data.activity.ν * ∫ (w : ℝ) in 0..t, Real.exp (-G.data.activity.ν * (t - w)) * ‖G.input w - ub w‖ ≤ Δu) (hΔq : ∀ t ∈ Set.Icc 0 t1, G.data.activity.ν * ∫ (w : ℝ) in 0..t, Real.exp (-G.data.activity.ν * (t - w)) * ‖G.pulse w - qb w‖ ≤ Δq) :
          have ν := G.data.activity.ν; have εW := KW * H + ϖW; have εv := Kv * H + ϖv; have εr := min Xr (lam * Xr * H); have LT := ↑(Fintype.card (Fin N)) * Lψ / G.data.activity.σ; have Lstar := Lψ / G.data.activity.σ * ∑ ℓ : Fin N, ∑ j : Fin N, |mindRelation (G.state 0) ℓ j|; have εT := LT * ((Lv * εv + LR * εr + ↑(Fintype.card (Fin N)) * X * εW) * (1 - Real.exp (-ν * H)) + Lu * Δu + Lq * Δq); ∀ t ∈ Set.Icc 0 t1, ∀ (i : Fin N), |mindActivity (G.state t) i - xb t i| ≤ (d0 + 2 * ϖx + εT) * Real.exp (ν * Lstar * H)

          02.20 (RP9)–(RP10), THE SHARP CORRIDOR. On [0,t₁] ⊆ [0,H] take the box closure's hypotheses (box_closure), the trace-rate bound λ_* ≥ 0, and a held comparison: a declared input ū in the input region and binary attention q̄, and activities x̄ from x̄₀ (0 ≤ x̄₀ᵢ, max(x̄₀ᵢ, 1 − g) ≤ X) equal to the exponential convolution of their own held targets T̄ᵢ (links, values and traces held at the start's, the held targets integrable), with |xᵢ(0) − x̄₀ᵢ| ≤ d₀. Let L_u, L_q, L_v ≥ 0 bound the drive's change in input, binary attention and value at the start's value on the compared ranges, L_R ≥ 0 the residue's at the start's trace, L_ψ ≥ 0 the transform's on the raw inputs of box states, and Δ_u, Δ_q the convolutions ν∫₀ᵗe^{−ν(t−w)}‖u − ū‖ and the same for the actual native focus pulse against q̄ (both integrable). Then with ε_W = K_W·H + ϖ_W, ε_v = K_v·H + ϖ_v, ε_r = min(X_r, λ_X_r H), L_T = N·L_ψ/σ, L_ = (L_ψ/σ)Σ_{ℓ,j}|W⁰_{ℓj}|, ε_T = L_T[(L_v ε_v + L_R ε_r + N·X·ε_W)(1 − e^{−νH}) + L_u Δ_u + L_q Δ_q] and ε_x = (d₀ + 2ϖ_x + ε_T)e^{νL_*H}: every actual activity stays within ε_x of its held comparison through t₁.