MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch08.RepeatedContexts

Repeated complete held-pattern phases. These are ordinary affine maps on a value bank, not a second history or experiment interface.

noncomputable def MindFormal.contextDamp {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (F : E) (α : ℝ) (x : E) :
E

The homogeneous part of one positive-duration held identity phase.

Equations
Instances For
    theorem MindFormal.contextDamp_energy {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (F x : E) (α : ℝ) (hF : F ≠ 0) :
    ‖contextDamp F α x‖ ^ 2 = ‖x‖ ^ 2 - α * (2 - α) * inner ℝ F x ^ 2 / ‖F‖ ^ 2

    Exact energy loss, with the full phase coefficient.

    theorem MindFormal.contextDamp_loss {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (F x : E) {α : ℝ} (hF : F ≠ 0) (hα : 0 < α) (hα2 : α < 2) :
    ‖contextDamp F α x‖ ≤ ‖x‖ ∧ (‖contextDamp F α x‖ = ‖x‖ ↔ inner ℝ F x = 0) ∧ (inner ℝ F x = 0 → contextDamp F α x = x)

    A phase is nonexpansive, and equality leaves the bank unchanged and orthogonal to its own template.

    noncomputable def MindFormal.contextCycle {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) (x : E) :
    E

    The ordered finite product; every occurrence uses its own coefficient.

    Equations
    Instances For
      theorem MindFormal.contextCycle_loss {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) (hF : ∀ i ∈ order, F i ≠ 0) (hα : ∀ i ∈ order, 0 < α i ∧ α i < 2) (x : E) :
      ‖contextCycle F α order x‖ ≤ ‖x‖ ∧ (‖contextCycle F α order x‖ = ‖x‖ ↔ ∀ i ∈ order, inner ℝ (F i) x = 0)

      The only equality case for an entire cycle is orthogonality to every visited template. This proves the common fixed-space rather than assuming it.

      theorem MindFormal.contextCycle_smul {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) (r : ℝ) (x : E) :
      contextCycle F α order (r • x) = r • contextCycle F α order x

      Homogeneity needed to turn compact-sphere strict loss into a uniform rate.

      theorem MindFormal.contextCycle_continuous {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) :

      Every finite phase product is continuous.

      theorem MindFormal.contextCycle_rate {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) (hF : ∀ i ∈ order, F i ≠ 0) (hα : ∀ i ∈ order, 0 < α i ∧ α i < 2) (spans : ∀ (x : E), (∀ i ∈ order, inner ℝ (F i) x = 0) → x = 0) :
      ∃ (q : ℝ), 0 ≤ q ∧ q < 1 ∧ ∀ (x : E), ‖contextCycle F α order x‖ ≤ q * ‖x‖

      Compactness makes the strictly dissipative finite cycle uniformly contractive when the visited templates span the bank. No rate is supplied.

      theorem MindFormal.contextCycle_geometric {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (order : List ι) {q : ℝ} (hq0 : 0 ≤ q) (hq1 : q < 1) (bound : ∀ (x : E), ‖contextCycle F α order x‖ ≤ q * ‖x‖) (x : E) :
      (∀ (k : ℕ), ‖(contextCycle F α order)^[k] x‖ ≤ q ^ k * ‖x‖) ∧ Filter.Tendsto (fun (k : ℕ) => (contextCycle F α order)^[k] x) Filter.atTop (nhds 0)

      The rate gives the finite geometric tail and its reference limit.

      noncomputable def MindFormal.contextPhase {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (F : E) (α tau K : ℝ) (x : E) :
      E

      A held phase, with its actual positive duration and delivery.

      Equations
      Instances For
        theorem MindFormal.contextPhase_center {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] (F star x : E) (α tau K : ℝ) (calibration : inner ℝ F star = tau * K) :
        contextPhase F α tau K x = star + contextDamp F α (x - star)

        Subtracting a calibrated bank gives exactly the homogeneous phase.

        theorem MindFormal.contextPhase_product {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α K : ι → ℝ) (tau : ℝ) (order : List ι) (star x : E) (calibration : ∀ i ∈ order, inner ℝ (F i) star = tau * K i) :
        List.foldl (fun (y : E) (i : ι) => contextPhase (F i) (α i) tau (K i) y) x order = star + contextCycle F α order (x - star)

        Every finite calendar gives the explicit affine phase product about its common calibration, without any reset between phases.

        def MindFormal.hubTemplate {m : ℕ} (h p : ℝ) (i : Fin m) :

        The source's separate hub/good template, with every good retained.

        Equations
        Instances For
          noncomputable def MindFormal.hubSelected {m : ℕ} (h p tau jb : ℝ) (K : Fin m → ℝ) :
          Equations
          Instances For
            def MindFormal.hubNull {m : ℕ} (h p : ℝ) (x : EuclideanSpace ℝ (Option (Fin m))) :
            Equations
            Instances For
              theorem MindFormal.hubTemplate_inner {m : ℕ} (h p : ℝ) (i : Fin m) (x : EuclideanSpace ℝ (Option (Fin m))) :
              inner ℝ (hubTemplate h p i) x = h * x.ofLp none + p * x.ofLp (some i)
              theorem MindFormal.hubTemplate_nonzero {m : ℕ} {p : ℝ} (hp : 0 < p) (h : ℝ) (i : Fin m) :
              theorem MindFormal.hubSelected_calibration {m : ℕ} {p h tau jb : ℝ} (hp : 0 < p) (hh : 0 < h) (K : Fin m → ℝ) :
              (∀ (i : Fin m), inner ℝ (hubTemplate h p i) (hubSelected h p tau jb K) = tau * K i) ∧ hubNull h p (hubSelected h p tau jb K) = jb

              P2's bank and conserved contrast are solved algebraically; the common fixed point is obtained from data rather than supplied.

              theorem MindFormal.hub_span_of_null {m : ℕ} {p h : ℝ} (hp : 0 < p) (x : EuclideanSpace ℝ (Option (Fin m))) (hx : hubNull h p x = 0) :

              The history's null hyperplane is exactly the span of all templates.

              theorem MindFormal.hub_span_orthogonal_zero {m : ℕ} (h p : ℝ) (x : ↥(Submodule.span ℝ (Set.range (hubTemplate h p)))) (hx : ∀ (i : Fin m), inner ℝ (hubTemplate h p i) ↑x = 0) :
              x = 0

              The templates span their own finite-dimensional subspace, which is all the coercivity needed by the cycle theorem.

              theorem MindFormal.context_dose_fraction {eta tau duration norm2 : ℝ} (he : 0 < eta) (ht : 0 < tau) (hd : 0 < duration) (hn : 0 < norm2) :
              0 < 1 - Real.exp (-eta * norm2 * duration / tau) ∧ 1 - Real.exp (-eta * norm2 * duration / tau) < 1

              The native positive phase duration determines a strict damping coefficient even with an arbitrary finite calendar.

              theorem MindFormal.contextPhase_iterate {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α K : ι → ℝ) (tau : ℝ) (order : List ι) (star x : E) (calibration : ∀ i ∈ order, inner ℝ (F i) star = tau * K i) (k : ℕ) :
              (fun (y : E) => List.foldl (fun (z : E) (i : ι) => contextPhase (F i) (α i) tau (K i) z) y order)^[k] x = star + (contextCycle F α order)^[k] (x - star)

              Phase products centered at calibration commute with arbitrary repetition.

              theorem MindFormal.contextCycle_submodule {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (S : Submodule ℝ E) (F : ι → ↥S) (α : ι → ℝ) (order : List ι) (x : ↥S) :
              ↑(contextCycle F α order x) = contextCycle (fun (i : ι) => ↑(F i)) α order ↑x

              Restricting a template product to its span uses the same maps.

              theorem MindFormal.hub_error_in_span {m : ℕ} {p h tau : ℝ} (hp : 0 < p) (hh : 0 < h) (K : Fin m → ℝ) (x : EuclideanSpace ℝ (Option (Fin m))) :

              The history-selected null contrast places the whole error in the span on which the repeated calendar contracts.

              theorem MindFormal.hub_repeated_contexts {m : ℕ} {p h eta tau : ℝ} (hp : 0 < p) (hh : 0 < h) (he : 0 < eta) (ht : 0 < tau) (duration : Fin m → ℝ) (hd : ∀ (i : Fin m), 0 < duration i) (order : List (Fin m)) (covers : ∀ (i : Fin m), i ∈ order) (K : Fin m → ℝ) (x : EuclideanSpace ℝ (Option (Fin m))) :
              have F := hubTemplate h p; have α := fun (i : Fin m) => 1 - Real.exp (-eta * ‖F i‖ ^ 2 * duration i / tau); have star := hubSelected h p tau (hubNull h p x) K; have cycle := fun (y : EuclideanSpace ℝ (Option (Fin m))) => List.foldl (fun (z : EuclideanSpace ℝ (Option (Fin m))) (i : Fin m) => contextPhase (F i) (α i) tau (K i) z) y order; (∀ (i : Fin m), inner ℝ (F i) star = tau * K i) ∧ hubNull h p star = hubNull h p x ∧ ∃ (q : ℝ), 0 ≤ q ∧ q < 1 ∧ (∀ (k : ℕ), ‖cycle^[k] x - star‖ ≤ q ^ k * ‖x - star‖) ∧ Filter.Tendsto (fun (k : ℕ) => cycle^[k] x) Filter.atTop (nhds star)

              P2/H7: every positive-duration calendar visiting all templates has its data-selected common fixed bank and a derived geometric convergence rate. The entering null contrast selects which calibrated bank is reached.

              theorem MindFormal.hub_phase_null {m : ℕ} (h p tau K α : ℝ) (i : Fin m) (x : EuclideanSpace ℝ (Option (Fin m))) :
              hubNull h p (contextPhase (hubTemplate h p i) α tau K x) = hubNull h p x

              Every template increment preserves the entering null contrast.

              theorem MindFormal.hub_acquired_null {m : ℕ} (h p tau : ℝ) (α K : Fin m → ℝ) (history : List (Fin m)) :
              hubNull h p (List.foldl (fun (x : EuclideanSpace ℝ (Option (Fin m))) (i : Fin m) => contextPhase (hubTemplate h p i) (α i) tau (K i) x) 0 history) = 0

              Finite acquisition from zero cannot create an entering null bank.

              theorem MindFormal.hub_omission_selected {m : ℕ} (p h tau : ℝ) :
              (hubSelected h p tau 0 fun (x : Fin m) => 0) = 0

              In omission, the selected calibrated bank is exactly the entering null component; if the bank was acquired from zero it is zero.

              theorem MindFormal.hub_omission_erasure {m : ℕ} {p h eta tau : ℝ} (hp : 0 < p) (hh : 0 < h) (he : 0 < eta) (ht : 0 < tau) (duration : Fin m → ℝ) (hd : ∀ (i : Fin m), 0 < duration i) (order : List (Fin m)) (covers : ∀ (i : Fin m), i ∈ order) (acquisition : List (Fin m)) (acquireFraction delivery : Fin m → ℝ) :
              have F := hubTemplate h p; have α := fun (i : Fin m) => 1 - Real.exp (-eta * ‖F i‖ ^ 2 * duration i / tau); have acquired := List.foldl (fun (z : EuclideanSpace ℝ (Option (Fin m))) (i : Fin m) => contextPhase (F i) (acquireFraction i) tau (delivery i) z) 0 acquisition; have cycle := fun (y : EuclideanSpace ℝ (Option (Fin m))) => List.foldl (fun (z : EuclideanSpace ℝ (Option (Fin m))) (i : Fin m) => contextPhase (F i) (α i) tau 0 z) y order; (∃ (q : ℝ), 0 ≤ q ∧ q < 1 ∧ ∀ (k : ℕ), ‖cycle^[k] acquired‖ ≤ q ^ k * ‖acquired‖) ∧ Filter.Tendsto (fun (k : ℕ) => cycle^[k] acquired) Filter.atTop (nhds 0)

              Repeated omission erases every bank acquired from zero on these contexts, for arbitrary finite acquisition and positive omission durations.

              theorem MindFormal.omission_null_survives {E : Type u_1} [NormedAddCommGroup E] [InnerProductSpace ℝ E] {ι : Type u_2} (F : ι → E) (α : ι → ℝ) (tau : ℝ) (order : List ι) (x : E) (null : ∀ i ∈ order, inner ℝ (F i) x = 0) (k : ℕ) :
              (fun (y : E) => List.foldl (fun (z : E) (i : ι) => contextPhase (F i) (α i) tau 0 z) y order)^[k] x = x

              An entering bank invisible to every omission template is fixed by all its phases. Such null contrasts are not erased by repetition.