MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.PairingHistory

12.27's steady-pattern comparison: Equation II and D4 solved exactly along a prescribed pairing history of the admitted mind (paragraph 1's coefficient choices, every part held: constant gain, a value-independent drive, no native event, the declared input), the carried trace recurrence, the trained links as composed pair maps, the competing links at the cue, and the complete entering pool at the matched cue. Nothing here is tagged.

A scalar linear integral equation on a segment #

theorem MindFormal.segment_linear {a b : ℝ} (hab : a ≤ b) (f μ F : ℝ → ℝ) (hf : ContinuousOn f (Set.Icc a b)) (hμ : IntervalIntegrable μ MeasureTheory.volume a b) (hF : IntervalIntegrable F MeasureTheory.volume a b) (heq : ∀ t ∈ Set.Icc a b, f t = f a + ∫ (w : ℝ) in a..t, F w - μ w * f w) :
f b = Real.exp (-∫ (w : ℝ) in a..b, μ w) * (f a + ∫ (s : ℝ) in a..b, Real.exp (∫ (w : ℝ) in a..s, μ w) * F s)

12.27, 12.28: on [a,b], a continuous f with f(t)=f(a)+∫_a^t(F−μf) for every t ∈ [a,b], μ and F integrable, ends at f(b)=e^{−∫_a^bμ}(f(a)+∫_a^b e^{∫_a^sμ}F(s)ds).

theorem MindFormal.segment_linear_local {a L : ℝ} (hL : 0 ≤ L) (f μ F : ℝ → ℝ) (hf : ContinuousOn f (Set.Icc a (a + L))) (hμ : IntervalIntegrable μ MeasureTheory.volume a (a + L)) (hF : IntervalIntegrable F MeasureTheory.volume a (a + L)) (heq : ∀ t ∈ Set.Icc a (a + L), f t = f a + ∫ (w : ℝ) in a..t, F w - μ w * f w) :
f (a + L) = Real.exp (-∫ (w : ℝ) in 0..L, μ (a + w)) * (f a + ∫ (s : ℝ) in 0..L, Real.exp (∫ (w : ℝ) in 0..s, μ (a + w)) * F (a + s))

12.27, 12.28: the same in the segment's own time: f(a+L) = e^{−∫_0^Lμ(a+w)dw} (f(a)+∫_0^L e^{∫_0^sμ(a+w)dw}F(a+s)ds), for the equation on [a,a+L].

noncomputable def MindFormal.expQuotient (z L : ℝ) :

12.27 (RC7.2): the entire exponential quotient 𝓔(z,L)=(e^{zL}−1)/z, with 𝓔(0,L)=L.

Equations
Instances For

    12.27 (RC7.2): ∫_0^L e^{zs} ds = 𝓔(z,L).

    theorem MindFormal.pair_exponent {lam Gp Gb x r0 : ℝ} (hlam : lam ≠ 0) (s : ℝ) :
    ∫ (w : ℝ) in 0..s, Gp * (x + (r0 - x) * Real.exp (-lam * w)) + Gb = (Gp * x + Gb) * s + Gp * (r0 - x) / lam * (1 - Real.exp (-lam * s))

    12.27 (RC7.2): the exponent of one pairing, A(s)=Γ₀s+Δ(1−e^{−λs}), is the integral of μ(s)=Γ_pred ρ(s)+Γ_bind along the pairing's trace ρ(s)=x+(r₀−x)e^{−λs}.

    theorem MindFormal.pair_map {lam L Gp Gb Gin x r0 W0 : ℝ} (hlam : lam ≠ 0) (hGp : Gp ≠ 0) :
    Real.exp (-∫ (w : ℝ) in 0..L, Gp * (x + (r0 - x) * Real.exp (-lam * w)) + Gb) * (W0 + ∫ (s : ℝ) in 0..L, Real.exp (∫ (w : ℝ) in 0..s, Gp * (x + (r0 - x) * Real.exp (-lam * w)) + Gb) * (Gin * (x + (r0 - x) * Real.exp (-lam * s)))) = Real.exp (-(Gp * x + Gb) * L - Gp * (r0 - x) / lam * (1 - Real.exp (-lam * L))) * W0 + Gin / Gp * (1 - Real.exp (-(Gp * x + Gb) * L - Gp * (r0 - x) / lam * (1 - Real.exp (-lam * L))) - Gb * Real.exp (-(Gp * x + Gb) * L - Gp * (r0 - x) / lam * (1 - Real.exp (-lam * L))) * ∫ (s : ℝ) in 0..L, Real.exp ((Gp * x + Gb) * s + Gp * (r0 - x) / lam * (1 - Real.exp (-lam * s))))

    12.27 (RC7.2): one pairing's map of the trained link. Along ρ(s)=x+(r₀−x)e^{−λs}, the linear equation Ẇ=Γ_inρ−(Γ_predρ+Γ_bind)W from W₀ ends at G W₀+J, G=e^{−Γ₀L−Δ(1−e^{−λL})}, J=W_cap{1−G−Γ_bind GΦ}, Γ₀=Γ_pred x+Γ_bind, Δ=Γ_pred(r₀−x)/λ, W_cap=Γ_in/Γ_pred, Φ=∫_0^L e^{Γ₀s+Δ(1−e^{−λs})}ds.

    theorem MindFormal.phi_series (Γ0 Δ lam L : ℝ) (hlam : 0 ≤ lam) (hL : 0 ≤ L) :
    HasSum (fun (h : ℕ) => Real.exp Δ * ((-Δ) ^ h / ↑h.factorial) * expQuotient (Γ0 - ↑h * lam) L) (∫ (s : ℝ) in 0..L, Real.exp (Γ0 * s + Δ * (1 - Real.exp (-lam * s))))

    12.27 (RC7.2): Φ=∫_0^L e^{Γ₀s+Δ(1−e^{−λs})}ds is the absolutely convergent series e^{Δ}Σ_h(−Δ)^h/h!·𝓔(Γ₀−hλ,L).

    noncomputable def MindFormal.pairG (lam Gp Gb x L r0 : ℝ) :

    12.27 (RC7.2): one pairing's contraction G=e^{−Γ₀L−Δ(1−e^{−λL})}, Γ₀=Γ_pred x+Γ_bind, Δ=Γ_pred(r₀−x)/λ, r₀ the entering trace.

    Equations
    Instances For
      noncomputable def MindFormal.pairPhi (lam Gp Gb x L r0 : ℝ) :

      12.27 (RC7.2): Φ=∫_0^L e^{Γ₀s+Δ(1−e^{−λs})}ds.

      Equations
      Instances For
        noncomputable def MindFormal.pairJ (lam Gp Gb Gin x L r0 : ℝ) :

        12.27 (RC7.2): one pairing's increment J=W_cap{1−G−Γ_bind GΦ}, W_cap=Γ_in/Γ_pred.

        Equations
        Instances For
          noncomputable def MindFormal.pairRin (x γp γg : ℝ) (k : ℕ) :

          12.27 (RC7.1): the trace entering pairing k (from k=0), r_in=x(1−γ_pair)γ_gap(1−γ_cycle^k)/(1−γ_cycle), γ_cycle=γ_pairγ_gap.

          Equations
          Instances For
            noncomputable def MindFormal.pairRend (x γp γg : ℝ) (k : ℕ) :

            12.27 (RC7.1): the trace leaving pairing k, r_end=x(1−γ_pair)(1−γ_cycle^{k+1})/(1−γ_cycle).

            Equations
            Instances For
              noncomputable def MindFormal.pairRtest (x γp γg : ℝ) (N : ℕ) :

              12.27 (RC7.1): the trace after N pairings, r_end^{(N)}=x(1−γ_pair)(1−γ_cycle^N)/(1−γ_cycle), zero for N=0.

              Equations
              Instances For
                noncomputable def MindFormal.pairJr (x γp γg lam L : ℝ) (N : ℕ) :

                12.27 (RC7.3): the accumulated presence of the N pairings, J_r=xNL+(1−γ_pair)/λ·[r_in^{(∞)}{N−(1−γ_cycle^N)/(1−γ_cycle)}−Nx], r_in^{(∞)}=x(1−γ_pair)γ_gap/(1−γ_cycle).

                Equations
                Instances For
                  theorem MindFormal.pairJr_eq_sum {x γp γg lam L : ℝ} (h : 1 - γp * γg ≠ 0) (N : ℕ) :
                  pairJr x γp γg lam L N = ∑ k ∈ Finset.range N, (x * L + (pairRin x γp γg k - x) * (1 - γp) / lam)
                  def MindFormal.pairCompose (G Jv : ℕ → ℝ) (m : ℕ) :

                  12.27 (RC7.2): the composed pair maps from zero, W=Σ_{j<m}J_j∏_{j<h<m}G_h.

                  Equations
                  Instances For
                    theorem MindFormal.pairCompose_zero (G Jv : ℕ → ℝ) :
                    pairCompose G Jv 0 = 0
                    theorem MindFormal.pairCompose_succ (G Jv : ℕ → ℝ) (m : ℕ) :
                    pairCompose G Jv (m + 1) = G m * pairCompose G Jv m + Jv m
                    theorem MindFormal.pairRin_zero (x γp γg : ℝ) :
                    pairRin x γp γg 0 = 0
                    theorem MindFormal.pairRend_eq {x γp γg : ℝ} (h : 1 - γp * γg ≠ 0) (k : ℕ) :
                    pairRend x γp γg k = x + (pairRin x γp γg k - x) * γp
                    theorem MindFormal.pairRin_succ {x γp γg : ℝ} (h : 1 - γp * γg ≠ 0) (k : ℕ) :
                    pairRin x γp γg (k + 1) = pairRend x γp γg k * γg

                    The pairing schedule and the held-pattern comparison #

                    12.27 paragraph 1: N pairings of length L, consecutive pairings separated by a gap ℓ, a final delay d after the last, the paired activity x>0 and the paired drive e.

                    Instances For

                      12.27: the k-th pairing (from k=0) starts at k(L+ℓ).

                      Equations
                      Instances For

                        12.27: a time inside some pairing [k(L+ℓ),k(L+ℓ)+L), k<N.

                        Equations
                        Instances For

                          12.27: the test entry, H_prep=NL+(N−1)ℓ+d for N ≥ 1 and d for N=0.

                          Equations
                          Instances For
                            theorem MindFormal.PairingSchedule.paired_of_window (P : PairingSchedule) {k : ℕ} (hk : k < P.count) {t : ℝ} (h1 : P.start k ≤ t) (h2 : t < P.start k + P.L) :
                            P.Paired t
                            theorem MindFormal.PairingSchedule.not_paired_of_gap (P : PairingSchedule) {k : ℕ} {t : ℝ} (h1 : P.start k + P.L ≤ t) (h2 : t < P.start (k + 1)) :

                            12.27: between the end of pairing k and the start of pairing k+1, no pairing is on.

                            theorem MindFormal.PairingSchedule.not_paired_after (P : PairingSchedule) {t : ℝ} (hN : 0 < P.count) (h1 : P.start (P.count - 1) + P.L ≤ t) :

                            12.27: after the end of the last pairing no pairing is on.

                            noncomputable def MindFormal.pairActivity {N : ℕ} (c0 i0 : Fin N) (P : PairingSchedule) (t : ℝ) (i : Fin N) :

                            12.27 paragraph 1: the prescribed activity, x on the cue c₀ and its partner i₀ inside each pairing and zero otherwise; every other content zero throughout.

                            Equations
                            Instances For
                              noncomputable def MindFormal.pairInput {N : ℕ} (c0 i0 : Fin N) (P : PairingSchedule) (t : ℝ) (i : Fin N) :

                              12.27 paragraph 1: the declared input, e on c₀ and i₀ inside each pairing, zero otherwise.

                              Equations
                              Instances For
                                structure MindFormal.PairingComparison {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] (I : EquationInstance N n T Λ J) (c0 i0 : Fin N) (P : PairingSchedule) :
                                Type (max u_1 u_2)

                                12.27 paragraphs 1–2: the steady-pattern comparison of the admitted instance I. Its activities are the prescribed pattern, not a solution of I; its relations and traces solve II and D4 exactly along them (both writers, every trace carried, none reset), with the declared input (acts held: the world is the schedule) and no native pulse (attention held), from zero traces, zero links among c₀,i₀, zero links into i₀ and from every sender other than c₀, and the competitors' brought links W⁰_{jc₀} ≥ 0.

                                Instances For
                                  theorem MindFormal.integral_congr_Ico {f g : ℝ → ℝ} {a b : ℝ} (hab : a ≤ b) (h : ∀ x ∈ Set.Ico a b, f x = g x) :
                                  ∫ (x : ℝ) in a..b, f x = ∫ (x : ℝ) in a..b, g x

                                  12.27, 12.28: two integrands equal on [a,b) have the same integral over [a,b].

                                  theorem MindFormal.integral_exp_mul_rate (lam v s : ℝ) :
                                  ∫ (u : ℝ) in 0..s, Real.exp (∫ (x : ℝ) in 0..u, lam) * (lam * v) = v * (Real.exp (lam * s) - 1)

                                  12.27: ∫_0^s e^{λu}λv du = v(e^{λs}−1).

                                  theorem MindFormal.PairingComparison.relation_segment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {a t : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (i j : Fin N) :
                                  mindRelation (C.path t) i j = mindRelation (C.path a) i j + ∫ (w : ℝ) in a..t, assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inl (i, j))

                                  12.27: the comparison's relation and trace equations restart at any a ≥ 0.

                                  theorem MindFormal.PairingComparison.trace_segment {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {a t : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (i : Fin N) (l : Λ) :
                                  mindTrace (C.path t) i l = mindTrace (C.path a) i l + ∫ (w : ℝ) in a..t, assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inr (Sum.inr (Sum.inr (i, l))))
                                  theorem MindFormal.PairingComparison.trace_drift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) (w : ℝ) (i : Fin N) (l : Λ) :
                                  assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inr (Sum.inr (Sum.inr (i, l)))) = I.rate l * (pairActivity c0 i0 P w i - mindTrace (C.path w) i l)

                                  12.27: D4 along the comparison is λ_l(x_i−r_il) with the prescribed activity.

                                  theorem MindFormal.PairingComparison.trace_relax {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {a s v : ℝ} (ha : 0 ≤ a) (hs : 0 ≤ s) (i : Fin N) (l : Λ) (hv : ∀ w ∈ Set.Ico a (a + s), pairActivity c0 i0 P w i = v) :
                                  mindTrace (C.path (a + s)) i l = v + (mindTrace (C.path a) i l - v) * Real.exp (-I.rate l * s)

                                  12.27 (RC7.1): on a segment [a,a+s] on which content i's prescribed activity is the constant v, its trace at rate λ_l relaxes to v: r(a+s)=v+(r(a)−v)e^{−λ_l s}.

                                  theorem MindFormal.sum_pairActivity {N : ℕ} {c0 i0 : Fin N} (hci : c0 ≠ i0) (P : PairingSchedule) (W : Fin N → ℝ) (t : ℝ) :
                                  ∑ l : Fin N, W l * pairActivity c0 i0 P t l = if P.Paired t then P.x * (W c0 + W i0) else 0

                                  12.27: only the cue and its partner are active, so a row's prediction Σ_lW_lx_l is x(W_{c₀}+W_{i₀}) inside a pairing and zero outside.

                                  theorem MindFormal.PairingComparison.relation_drift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (w : ℝ) (a b : Fin N) :
                                  assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inl (a, b)) = M * ((1 - I.β) * mindTrace (C.path w) b l0 * (pairInput c0 i0 P w a - ∑ l : Fin N, mindRelation (C.path w) a l * pairActivity c0 i0 P w l) + I.β * pairActivity c0 i0 P w a * (mindTrace (C.path w) b l0 - mindRelation (C.path w) a b))

                                  12.27 (RC7.1): II along the comparison, with paragraph 1's held gain M, value-independent drive D=u+q and presence c(r)=r(λ₀): M[(1−β)r_b(e_a−Σ_lW_alx_l)+βx_a(r_b−W_ab)].

                                  theorem MindFormal.PairingComparison.relation_drift_unpaired {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) {w : ℝ} (hw : ¬P.Paired w) (a b : Fin N) :
                                  assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inl (a, b)) = 0

                                  12.27: outside every pairing the input and every activity are zero, so every relation drift vanishes although the traces persist.

                                  theorem MindFormal.PairingComparison.relation_const {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) {a b : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hw : ∀ w ∈ Set.Ico a b, ¬P.Paired w) (i j : Fin N) :
                                  mindRelation (C.path b) i j = mindRelation (C.path a) i j

                                  12.27: across a stretch with no pairing every link keeps its value.

                                  theorem MindFormal.PairingComparison.pair_trace {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {k : ℕ} (hk : k < P.count) {b : Fin N} (hb : b = c0 ∨ b = i0) (l : Λ) {w : ℝ} (hw : w ∈ Set.Icc (P.start k) (P.start k + P.L)) :
                                  mindTrace (C.path w) b l = P.x + (mindTrace (C.path (P.start k)) b l - P.x) * Real.exp (-I.rate l * (w - P.start k))

                                  12.27 (RC7.1): inside pairing k<N the cue's and the partner's traces relax toward x: r(w)=x+(r₀−x)e^{−λ_l(w−a)} for w ∈ [a,a+L], a=k(L+ℓ).

                                  theorem MindFormal.PairingComparison.pairing_step {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hlam : I.rate l0 ≠ 0) (hGp : 2 * M * (1 - I.β) * P.x ≠ 0) {k : ℕ} (hk : k < P.count) {r0 w0 : ℝ} (hr : ∀ (b : Fin N), b = c0 ∨ b = i0 → mindTrace (C.path (P.start k)) b l0 = r0) (hw : ∀ (a b : Fin N), a = c0 ∨ a = i0 → b = c0 ∨ b = i0 → mindRelation (C.path (P.start k)) a b = w0) (a b : Fin N) (ha : a = c0 ∨ a = i0) (hb : b = c0 ∨ b = i0) :
                                  mindRelation (C.path (P.start k + P.L)) a b = pairG (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) P.x P.L r0 * w0 + pairJ (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) (M * ((1 - I.β) * P.e + I.β * P.x)) P.x P.L r0

                                  12.27 (RC7.2): one pairing k<N. Entering with the cue's and the partner's traces at λ₀ both r₀ and the four links among them all w₀, the four links leave it all G w₀+J, with Γ_pred=2M(1−β)x, Γ_bind=Mβx, Γ_in=M{(1−β)e+βx}: both writers, the trace carried.

                                  theorem MindFormal.PairingComparison.history_entering {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hlam : I.rate l0 ≠ 0) (hGp : 2 * M * (1 - I.β) * P.x ≠ 0) (hcyc : 1 - Real.exp (-I.rate l0 * P.L) * Real.exp (-I.rate l0 * P.gap) ≠ 0) (k : ℕ) :
                                  k < P.count → (∀ (b : Fin N), b = c0 ∨ b = i0 → mindTrace (C.path (P.start k)) b l0 = pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) k) ∧ ∀ (a b : Fin N), a = c0 ∨ a = i0 → b = c0 ∨ b = i0 → mindRelation (C.path (P.start k)) a b = pairCompose (fun (h : ℕ) => pairG (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) P.x P.L (pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) h)) (fun (h : ℕ) => pairJ (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) (M * ((1 - I.β) * P.e + I.β * P.x)) P.x P.L (pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) h)) k

                                  12.27 (RC7.1)–(RC7.2): the history. Entering each pairing k<N the cue's and the partner's traces at λ₀ are r_in(k) and the four links among them all equal the composed pair maps of the earlier pairings; gaps keep every link and decay every trace.

                                  theorem MindFormal.PairingComparison.history_prep {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hlam : I.rate l0 ≠ 0) (hGp : 2 * M * (1 - I.β) * P.x ≠ 0) (hcyc : 1 - Real.exp (-I.rate l0 * P.L) * Real.exp (-I.rate l0 * P.gap) ≠ 0) :
                                  (∀ (b : Fin N), b = c0 ∨ b = i0 → mindTrace (C.path P.prep) b l0 = pairRtest P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) P.count * Real.exp (-I.rate l0 * P.delay)) ∧ ∀ (a b : Fin N), a = c0 ∨ a = i0 → b = c0 ∨ b = i0 → mindRelation (C.path P.prep) a b = pairCompose (fun (h : ℕ) => pairG (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) P.x P.L (pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) h)) (fun (h : ℕ) => pairJ (I.rate l0) (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) (M * ((1 - I.β) * P.e + I.β * P.x)) P.x P.L (pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) h)) P.count

                                  12.27 (RC7.1)–(RC7.2): at the test entry the four trained links all equal the composed pair maps of the N pairings, W_N=Σ_jJ_j∏_{h>j}G_h, and the cue's and the partner's traces at λ₀ equal r_end^{(N)}e^{−λd}.

                                  12.27: the paired indicator's level, x inside a pairing and zero outside.

                                  Equations
                                  Instances For
                                    theorem MindFormal.pairActivity_trained {N : ℕ} {c0 i0 : Fin N} (P : PairingSchedule) {b : Fin N} (hb : b = c0 ∨ b = i0) (t : ℝ) :
                                    pairActivity c0 i0 P t b = P.level t
                                    theorem MindFormal.pairActivity_idle {N : ℕ} {c0 i0 : Fin N} (P : PairingSchedule) {j : Fin N} (h0 : j ≠ c0) (h1 : j ≠ i0) (t : ℝ) :
                                    pairActivity c0 i0 P t j = 0
                                    theorem MindFormal.PairingComparison.idle_trace {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {j : Fin N} (h0 : j ≠ c0) (h1 : j ≠ i0) (l : Λ) {t : ℝ} (ht : 0 ≤ t) :
                                    mindTrace (C.path t) j l = 0

                                    12.27: a content other than c₀ and i₀ is never active, so its traces stay zero.

                                    theorem MindFormal.PairingComparison.trained_trace_eq {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) (l : Λ) {t : ℝ} (ht : 0 ≤ t) :
                                    mindTrace (C.path t) c0 l = mindTrace (C.path t) i0 l

                                    12.27: the cue's and the partner's traces coincide at every time: one prescribed activity, one start.

                                    theorem MindFormal.PairingComparison.idle_sender_drift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) {k : Fin N} (hk0 : k ≠ c0) (hk1 : k ≠ i0) {w : ℝ} (hw : 0 ≤ w) (a : Fin N) :
                                    assembledDrift I.drift (C.input w) (C.mode w) (C.path w) (Sum.inl (a, k)) = -(M * I.β * pairActivity c0 i0 P w a) * mindRelation (C.path w) a k

                                    12.27 (RC7.3): along the comparison II gives a link from a never-active sender k into an active receiver the decay −Mβx_aW_ak, its presence being zero.

                                    theorem MindFormal.PairingComparison.pairing_presence {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {k : ℕ} (hk : k < P.count) (l : Λ) (hlam : I.rate l ≠ 0) {r0 : ℝ} (hr : mindTrace (C.path (P.start k)) c0 l = r0) :
                                    ∫ (w : ℝ) in P.start k..P.start k + P.L, mindTrace (C.path w) c0 l * P.level w = P.x * (P.x * P.L + (r0 - P.x) * (1 - Real.exp (-I.rate l * P.L)) / I.rate l)

                                    12.27 (RC7.3): inside pairing k<N the presence the competitors' cue links feel integrates to x(xL+(r_in(k)−x)(1−γ_pair)/λ).

                                    theorem MindFormal.PairingComparison.presence_to_start {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hlam : I.rate l0 ≠ 0) (hGp : 2 * M * (1 - I.β) * P.x ≠ 0) (hcyc : 1 - Real.exp (-I.rate l0 * P.L) * Real.exp (-I.rate l0 * P.gap) ≠ 0) (k : ℕ) :
                                    k < P.count → ∫ (w : ℝ) in 0..P.start k, mindTrace (C.path w) c0 l0 * P.level w = P.x * ∑ m ∈ Finset.range k, (P.x * P.L + (pairRin P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) m - P.x) * (1 - Real.exp (-I.rate l0 * P.L)) / I.rate l0)

                                    12.27 (RC7.3): the presence felt up to the start of pairing k<N, x Σ_{m<k}(xL+(r_in(m)−x)(1−γ_pair)/λ), the gaps contributing nothing.

                                    theorem MindFormal.PairingComparison.presence_prep {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) {M : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hlam : I.rate l0 ≠ 0) (hGp : 2 * M * (1 - I.β) * P.x ≠ 0) (hcyc : 1 - Real.exp (-I.rate l0 * P.L) * Real.exp (-I.rate l0 * P.gap) ≠ 0) :
                                    ∫ (w : ℝ) in 0..P.prep, mindTrace (C.path w) c0 l0 * P.level w = P.x * pairJr P.x (Real.exp (-I.rate l0 * P.L)) (Real.exp (-I.rate l0 * P.gap)) (I.rate l0) P.L P.count

                                    12.27 (RC7.3): the presence felt over the whole preparation, ∫0^{H_prep}r{c₀}·x = x·J_r.

                                    theorem MindFormal.pairJ_nonneg {lam L Gp Gb Gin x r0 : ℝ} (hlam : 0 < lam) (hL : 0 ≤ L) (hGp : Gp ≠ 0) (hGin : 0 ≤ Gin) (hx : 0 ≤ x) (hr0 : 0 ≤ r0) :
                                    0 ≤ pairJ lam Gp Gb Gin x L r0

                                    12.27: an increment J of one pairing from a nonnegative entering trace is nonnegative when the drive term Γ_in is.

                                    theorem MindFormal.pairRin_nonneg {x γp γg : ℝ} (hx : 0 ≤ x) (hp0 : 0 ≤ γp) (hp1 : γp < 1) (hg0 : 0 ≤ γg) (hg1 : γg ≤ 1) (k : ℕ) :
                                    0 ≤ pairRin x γp γg k
                                    theorem MindFormal.pairCompose_nonneg {G Jv : ℕ → ℝ} (hG : ∀ (h : ℕ), 0 ≤ G h) (hJ : ∀ (h : ℕ), 0 ≤ Jv h) (m : ℕ) :
                                    0 ≤ pairCompose G Jv m
                                    def MindFormal.PairingComparison.probeEntry {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) (xh : ℝ) :
                                    MindState (Fin N) n T Λ

                                    12.27 (RC7.4): the probe's entering state: the comparison's state at the test entry with the declared activity jump to the held cue activity x_hold on c₀ and zero on every other content.

                                    Equations
                                    Instances For
                                      theorem MindFormal.matched_cue_pool {N : ℕ} {σ g xh S Lc : ℝ} {ψ : ℝ → ℝ} (hψ : ∀ (z : ℝ), ψ z = max z 0) (hσ : 0 < σ) (hg : 0 < g) (hz1 : 1 / 2 ≤ xh + g) (hz2 : xh + g < 1 - g) (hS : 0 ≤ S) (hL : 0 ≤ Lc) {c0 i0 : Fin N} (hci : c0 ≠ i0) (raw : Fin N → ℝ) (hc0 : raw c0 = (xh + g) / (1 - (xh + g)) * (σ + S + Lc) - S + S) (hi0 : raw i0 = S) (hj : ∀ (j : Fin N), j ≠ c0 → j ≠ i0 → 0 ≤ raw j) (hsum : ∑ j ∈ (Finset.univ.erase c0).erase i0, raw j = Lc) :
                                      0 ≤ (xh + g) / (1 - (xh + g)) * (σ + S + Lc) - S ∧ ψ (raw c0) = (xh + g) / (1 - (xh + g)) * (σ + S + Lc) ∧ ψ (raw i0) = S ∧ (pool σ fun (j : Fin N) => ψ (raw j)) = (σ + S + Lc) / (1 - (xh + g)) ∧ normalizedTarget σ g (fun (j : Fin N) => ψ (raw j)) c0 = xh ∧ normalizedTarget σ g (fun (j : Fin N) => ψ (raw j)) i0 = max ((1 - (xh + g)) * S / (σ + S + Lc) - g) 0

                                      12.27 (RC7.4): the complete entering pool at the matched cue. At a state whose only active content is the cue at x_h, whose cue and partner receive x_hW from the cue and carry the residue γ_Rr, and whose other contents' raw inputs are x_hw_j ≥ 0 (no residue), with the cue drive e=z_c/(1−z_c)(σ+S+L)−S, z_c=x_h+g ∈ [1/2,1−g), S=x_hW+γ_Rr, L=x_hΣ_jw_j: the drive is nonnegative, the cue's transformed input is z_c/(1−z_c)(σ+S+L), the partner's S, the pool (σ+S+L)/(1−z_c), the cue's target x_h and the partner's [(1−z_c)S/(σ+S+L)−g]_+.

                                      theorem MindFormal.PairingComparison.probeEntry_activity {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) (xh : ℝ) :
                                      mindActivity (C.probeEntry xh) = fun (i : Fin N) => if i = c0 then xh else 0
                                      theorem MindFormal.PairingComparison.probeEntry_relation {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} (C : PairingComparison I c0 i0 P) (xh : ℝ) :
                                      theorem MindFormal.PairingComparison.probe_target {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] {I : EquationInstance N n T Λ J} {c0 i0 : Fin N} {P : PairingSchedule} [Fintype T] [Fintype J] (C : PairingComparison I c0 i0 P) (A : InstanceAdmission I) {M γR : ℝ} {l0 : Λ} (hci : c0 ≠ i0) (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (value_held : ∀ (u q : ℝ) (v : Fin n → T → ℝ), I.drive u q v = u + q) (hc : ∀ (r : Λ → ℝ), I.presence r = r l0) (hres : ∀ (r : Λ → ℝ), I.residue r = γR * r l0) (hγR : 0 ≤ γR) (hψ : ∀ (z : ℝ), I.transform.ψ z = max z 0) {xh : ℝ} (hz1 : 1 / 2 ≤ xh + I.activity.g) (hz2 : xh + I.activity.g < 1 - I.activity.g) :
                                      have lam := I.rate l0; have γp := Real.exp (-lam * P.L); have γg := Real.exp (-lam * P.gap); have WN := pairCompose (fun (h : ℕ) => pairG lam (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) P.x P.L (pairRin P.x γp γg h)) (fun (h : ℕ) => pairJ lam (2 * M * (1 - I.β) * P.x) (M * I.β * P.x) (M * ((1 - I.β) * P.e + I.β * P.x)) P.x P.L (pairRin P.x γp γg h)) P.count; have S := xh * WN + γR * (pairRtest P.x γp γg P.count * Real.exp (-lam * P.delay)); have Γ := 2 * M * (1 - I.β) * P.x * pairJr P.x γp γg lam P.L P.count; have Lc := xh * ((∑ j ∈ (Finset.univ.erase c0).erase i0, mindRelation (C.path 0) j c0) / 2 * (1 + Real.exp (-Γ))); have zc := xh + I.activity.g; have e := zc / (1 - zc) * (I.activity.σ + S + Lc) - S; have u := fun (i : Fin N) => if i = c0 then e else 0; 0 ≤ e ∧ pool I.activity.σ (assembledInputs I.drift u 0 (C.probeEntry xh)) = (I.activity.σ + S + Lc) / (1 - zc) ∧ normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u 0 (C.probeEntry xh)) c0 = xh ∧ normalizedTarget I.activity.σ I.activity.g (assembledInputs I.drift u 0 (C.probeEntry xh)) i0 = max ((1 - zc) * S / (I.activity.σ + S + Lc) - I.activity.g) 0

                                      12.27 (RC7.1)–(RC7.4): the test target of the matched cue. With the held cue activity x_h, z_c=x_h+g ∈ [1/2,1−g), the residue γ_Rr(λ₀) (γ_R ≥ 0), the rectified transform, and the cue drive e=z_c/(1−z_c)(σ+S_N+L_comp)−S_N, where S_N=x_hW_N+γ_Rr_end^{(N)}e^{−λd} and L_comp=x_hW⁰_Σ(1+e^{−Γ_predJ_r})/2: the drive is nonnegative, the pool is (σ+S_N+L_comp)/(1−z_c), the cue's target is x_h and the partner's is 𝒯_*=[(1−z_c)S_N/(σ+S_N+L_comp)−g]_+.

                                      theorem MindFormal.pairing_constants {N n : ℕ} {T : Type u_1} {Λ : Type u_2} {J : Type u_3} [Fintype Λ] [Fintype T] [Fintype J] {I : EquationInstance N n T Λ J} (A : InstanceAdmission I) {M : ℝ} (gain_held : ∀ (z : T → Fin n → ℝ), I.gain z = M) (P : PairingSchedule) (l0 : Λ) :
                                      I.rate l0 ≠ 0 ∧ 2 * M * (1 - I.β) * P.x ≠ 0 ∧ 1 - Real.exp (-I.rate l0 * P.L) * Real.exp (-I.rate l0 * P.gap) ≠ 0

                                      12.27: the admitted constants of the comparison: λ₀>0, Γ_pred=2M(1−β)x ≠ 0 and γ_cycle<1.