MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.SymmetricPhaseLine

11.14 (SF3)-(SF4): the scalar phase line of the symmetric held comparison. A globally Lipschitz scalar field has a solution on [0,∞) from every start, glued from the unique finite-horizon solutions of the reflected solver with no reflected coordinate and no driver; its solutions do not cross equilibria, and between equilibria they are monotone and converge to the equilibrium the field's sign points to.

structure MindFormal.ScalarSolution (F x : ℝ → ℝ) :

11.14 (SF3): a solution of x'=F(x) on [0,∞): continuous there, with right derivative F(x(t)) at every t≥0 and derivative F(x(t)) at every t>0.

Instances For
    def MindFormal.scalarField (F : ℝ → ℝ) :
    (Fin 1 → ℝ) → Fin 1 → ℝ

    The vector field on Fin 1 → ℝ carrying F.

    Equations
    Instances For
      noncomputable def MindFormal.horizonSolution {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) :
      C(↑(HorizonTime ↑↑n), Fin 1 → ℝ)

      The unique horizon-n solution of the unreflected, undriven integral equation.

      Equations
      Instances For
        noncomputable def MindFormal.horizonPath {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) (t : ℝ) :

        The horizon-n solution read on the real line.

        Equations
        Instances For
          theorem MindFormal.horizonPath_continuous {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) :
          theorem MindFormal.horizonPath_integral {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑n) :
          horizonPath hF y0 n t = y0 + ∫ (s : ℝ) in 0..t, F (horizonPath hF y0 n s)
          theorem MindFormal.horizonPath_zero {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) :
          horizonPath hF y0 n 0 = y0
          theorem MindFormal.horizonPath_primitive_deriv {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) (t : ℝ) :
          HasDerivAt (fun (s : ℝ) => y0 + ∫ (u : ℝ) in 0..s, F (horizonPath hF y0 n u)) (F (horizonPath hF y0 n t)) t

          The primitive form agreeing with the horizon path on [0,n].

          theorem MindFormal.horizonPath_hasDerivAt {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) {t : ℝ} (ht : t ∈ Set.Ioo 0 ↑n) :
          HasDerivAt (horizonPath hF y0 n) (F (horizonPath hF y0 n t)) t
          theorem MindFormal.horizonPath_hasDerivWithinAt {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) (n : ℕ) {t : ℝ} (ht : t ∈ Set.Ico 0 ↑n) :
          HasDerivWithinAt (horizonPath hF y0 n) (F (horizonPath hF y0 n t)) (Set.Ici t) t
          theorem MindFormal.horizonPath_consistent {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) {n m : ℕ} (hnm : n ≤ m) (t : ℝ) :
          t ∈ Set.Icc 0 ↑n → horizonPath hF y0 n t = horizonPath hF y0 m t

          Horizons agree where both are defined.

          noncomputable def MindFormal.globalPath {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 t : ℝ) :

          The glued solution on [0,∞).

          Equations
          Instances For
            theorem MindFormal.globalPath_eq {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) {n : ℕ} {t : ℝ} (ht : t ∈ Set.Icc 0 ↑n) :
            globalPath hF y0 t = horizonPath hF y0 n t
            theorem MindFormal.globalPath_solution {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) (y0 : ℝ) :
            theorem MindFormal.scalarSolution_unique {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x y : ℝ → ℝ} (hx : ScalarSolution F x) (hy : ScalarSolution F y) (h0 : x 0 = y 0) (t : ℝ) :
            0 ≤ t → x t = y t

            Two solutions from one start agree on [0,∞).

            theorem MindFormal.scalarSolution_equilibrium {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {e : ℝ} (he : F e = 0) (h0 : x 0 = e) (t : ℝ) :
            0 ≤ t → x t = e

            A solution starting at an equilibrium stays there.

            theorem MindFormal.scalarSolution_no_crossing {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {e : ℝ} (he : F e = 0) (h0 : x 0 ≠ e) (t : ℝ) :
            0 ≤ t → x t ≠ e

            A solution not starting at an equilibrium never reaches it.

            theorem MindFormal.scalarSolution_side {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {e : ℝ} (he : F e = 0) :
            (e < x 0 → ∀ (t : ℝ), 0 ≤ t → e < x t) ∧ (x 0 < e → ∀ (t : ℝ), 0 ≤ t → x t < e)

            Starting strictly above (below) an equilibrium, a solution stays strictly above (below).

            theorem MindFormal.scalarSolution_limit {F : ℝ → ℝ} (hFc : Continuous F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {L : ℝ} (hL : Filter.Tendsto x Filter.atTop (nhds L)) :
            F L = 0

            A convergent solution converges to an equilibrium.

            theorem MindFormal.scalarSolution_to_lower {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {a b : ℝ} (ha : F a = 0) (hb : F b = 0) (hneg : ∀ y ∈ Set.Ioo a b, F y < 0) (h0 : x 0 ∈ Set.Ioo a b) :

            Between equilibria a<b with F<0 strictly between, a solution starting between converges down to a.

            theorem MindFormal.scalarSolution_to_upper {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {a b : ℝ} (ha : F a = 0) (hb : F b = 0) (hpos : ∀ y ∈ Set.Ioo a b, 0 < F y) (h0 : x 0 ∈ Set.Ioo a b) :

            Between equilibria a<b with F>0 strictly between, a solution starting between converges up to b.

            theorem MindFormal.scalarSolution_from_above {F : ℝ → ℝ} {K : NNReal} (hF : LipschitzWith K F) {x : ℝ → ℝ} (hx : ScalarSolution F x) {b : ℝ} (hb : F b = 0) (hneg : ∀ (y : ℝ), b < y → F y < 0) (h0 : b < x 0) :

            Above the top equilibrium b with F<0 above it, a solution starting above converges down to b.

            noncomputable def MindFormal.symTarget (Mr I W Hx g X : ℝ) :

            11.14 (SF2): the common clipped target of the symmetric held comparison at total new activity X: Mr members of raw input I+W·X, external load Hx, gate g.

            Equations
            Instances For
              noncomputable def MindFormal.symDrift (ν Mr I W Hx g y : ℝ) :

              11.14 (SF3): the mean drift ν(T(Mr·ȳ)-ȳ), the mean read at its positive part.

              Equations
              Instances For
                theorem MindFormal.symShare_lipschitz {Mr Hx A B : ℝ} (hM : 0 ≤ Mr) (hH : 0 < Hx) (hA : 0 ≤ A) (hB : 0 ≤ B) :
                |A / (Hx + Mr * A) - B / (Hx + Mr * B)| ≤ |A - B| / Hx
                theorem MindFormal.symDrift_lipschitz {ν Mr I W Hx g : ℝ} (hν : 0 ≤ ν) (hM : 0 ≤ Mr) (hI : 0 ≤ I) (hW : 0 ≤ W) (hH : 0 < Hx) :
                LipschitzWith (ν * (W * Mr / Hx + 1)).toNNReal (symDrift ν Mr I W Hx g)
                theorem MindFormal.symDrift_sign {ν Mr I W Hx g y : ℝ} (hν : 0 < ν) (hM : 0 ≤ Mr) (hI : 0 ≤ I) (hW : 0 ≤ W) (hH : 0 < Hx) (hy : 0 < y) :
                have q := Mr ^ 2 * W * y ^ 2 + (Hx + Mr * I - Mr * W * (1 - Mr * g)) * y + (g * Hx - (1 - Mr * g) * I); (0 < symDrift ν Mr I W Hx g y ↔ q < 0) ∧ (symDrift ν Mr I W Hx g y < 0 ↔ 0 < q) ∧ (symDrift ν Mr I W Hx g y = 0 ↔ q = 0)

                11.14 (SF3): for positive mean activity the drift's sign is the opposite of the quadratic D2y²+D1y+D0's, with D2=Mr²W, D1=Hx+Mr·I-Mr·W(1-Mr·g), D0=g·Hx-(1-Mr·g)I.

                def MindFormal.symD1 (Mr I W Hx g : ℝ) :

                11.14 (SF3): the linear coefficient D1=Hx+Mr·I-Mr·W(1-Mr·g).

                Equations
                Instances For
                  def MindFormal.symD0 (Mr I Hx g : ℝ) :

                  11.14 (SF3): the constant coefficient D0=g·Hx-(1-Mr·g)I.

                  Equations
                  Instances For
                    noncomputable def MindFormal.symRootLow (Mr I W Hx g : ℝ) :

                    11.14 (SF3): the separating mean activity x̄₋.

                    Equations
                    Instances For
                      noncomputable def MindFormal.symRootHigh (Mr I W Hx g : ℝ) :

                      11.14 (SF3): the stable high mean activity x̄₊.

                      Equations
                      Instances For
                        theorem MindFormal.sym_roots {ν Mr I W Hx g : ℝ} (hν : 0 < ν) (hM : 1 ≤ Mr) (hI : 0 ≤ I) (hW : 0 < W) (hH : 0 < Hx) (hD0 : 0 < symD0 Mr I Hx g) (hD1 : symD1 Mr I W Hx g < 0) (hdisc : 4 * (Mr ^ 2 * W) * symD0 Mr I Hx g < symD1 Mr I W Hx g ^ 2) :
                        have xm := symRootLow Mr I W Hx g; have xp := symRootHigh Mr I W Hx g; 0 < xm ∧ xm < xp ∧ symDrift ν Mr I W Hx g 0 = 0 ∧ symDrift ν Mr I W Hx g xm = 0 ∧ symDrift ν Mr I W Hx g xp = 0 ∧ (∀ y ∈ Set.Ioo 0 xm, symDrift ν Mr I W Hx g y < 0) ∧ (∀ y ∈ Set.Ioo xm xp, 0 < symDrift ν Mr I W Hx g y) ∧ ∀ (y : ℝ), xp < y → symDrift ν Mr I W Hx g y < 0

                        11.14 (SF3): under bistability (D0>0, D1<0, D1²>4D2D0) the two roots are positive and ordered, and the drift has the phase-line signs: zero at 0, x̄₋, x̄₊, negative on (0,x̄₋) and above x̄₊, positive between.

                        theorem MindFormal.symDrift_nonneg {ν Mr I W Hx g : ℝ} (hν : 0 ≤ ν) {y : ℝ → ℝ} (hy : ScalarSolution (symDrift ν Mr I W Hx g) y) (h0 : 0 ≤ y 0) (t : ℝ) :
                        0 ≤ t → 0 ≤ y t

                        11.14 (SF3): a mean solution starting at or above zero stays at or above zero: e^{νt}ȳ(t) does not decrease, since the target is nonnegative.

                        theorem MindFormal.sym_phase_line {ν Mr I W Hx g : ℝ} (hν : 0 < ν) (hM : 1 ≤ Mr) (hI : 0 ≤ I) (hW : 0 < W) (hH : 0 < Hx) (hD0 : 0 < symD0 Mr I Hx g) (hD1 : symD1 Mr I W Hx g < 0) (hdisc : 4 * (Mr ^ 2 * W) * symD0 Mr I Hx g < symD1 Mr I W Hx g ^ 2) {y : ℝ → ℝ} (hy : ScalarSolution (symDrift ν Mr I W Hx g) y) (h0 : 0 ≤ y 0) :
                        (y 0 < symRootLow Mr I W Hx g → Filter.Tendsto y Filter.atTop (nhds 0)) ∧ (y 0 = symRootLow Mr I W Hx g → ∀ (t : ℝ), 0 ≤ t → y t = symRootLow Mr I W Hx g) ∧ (symRootLow Mr I W Hx g < y 0 → Filter.Tendsto y Filter.atTop (nhds (symRootHigh Mr I W Hx g)))

                        11.14 (SF3)-(SF4): the scalar phase line of the mean. Under bistability every mean solution from a nonnegative start converges to zero below x̄₋, stays at x̄₋ from x̄₋, and converges to x̄₊ above x̄₋.

                        structure MindFormal.SymSystemSolution (ν I W Hx g : ℝ) {M : ℕ} (x : Fin M → ℝ → ℝ) :

                        11.14 (SF3): a solution on [0,∞) of the symmetric held comparison x_j'=ν(T(Σx)-x_j), with right derivatives at every t≥0 and derivatives at every t>0.

                        Instances For
                          def MindFormal.sparseLaunch {M : ℕ} (S : Finset (Fin M)) (need : ℝ) :
                          Fin M → ℝ

                          11.14 (SF4): the sparse launch: the seeds S at need, every other member at zero.

                          Equations
                          Instances For
                            theorem MindFormal.symTarget_nonneg (Mr I W Hx g X : ℝ) :
                            0 ≤ symTarget Mr I W Hx g X
                            theorem MindFormal.sym_system_nonneg {ν I W Hx g : ℝ} (hν : 0 ≤ ν) {M : ℕ} {x : Fin M → ℝ → ℝ} (hx : SymSystemSolution ν I W Hx g x) (h0 : ∀ (j : Fin M), 0 ≤ x j 0) (j : Fin M) (t : ℝ) :
                            0 ≤ t → 0 ≤ x j t

                            Members starting at or above zero stay at or above zero.

                            theorem MindFormal.sym_system_mean {ν I W Hx g : ℝ} (hν : 0 ≤ ν) {M : ℕ} (hM : 0 < M) {x : Fin M → ℝ → ℝ} (hx : SymSystemSolution ν I W Hx g x) (h0 : ∀ (j : Fin M), 0 ≤ x j 0) :
                            ScalarSolution (symDrift ν (↑M) I W Hx g) fun (t : ℝ) => (∑ k : Fin M, x k t) / ↑M

                            The members' mean solves the scalar mean equation.

                            theorem MindFormal.sym_system_difference {ν I W Hx g : ℝ} (hν : 0 ≤ ν) {M : ℕ} (hM : 0 < M) {x : Fin M → ℝ → ℝ} (hx : SymSystemSolution ν I W Hx g x) (j : Fin M) (t : ℝ) :
                            0 ≤ t → x j t - (∑ k : Fin M, x k t) / ↑M = (x j 0 - (∑ k : Fin M, x k 0) / ↑M) * Real.exp (-ν * t)

                            Each member differs from the mean by its entering difference decayed at rate ν.

                            theorem MindFormal.sym_system_exists {ν I W Hx g : ℝ} (hν : 0 ≤ ν) {M : ℕ} (hM : 0 < M) (hI : 0 ≤ I) (hW : 0 ≤ W) (hH : 0 < Hx) (x0 : Fin M → ℝ) (h0 : ∀ (j : Fin M), 0 ≤ x0 j) :
                            ∃ (x : Fin M → ℝ → ℝ), SymSystemSolution ν I W Hx g x ∧ ∀ (j : Fin M), x j 0 = x0 j

                            Every nonnegative start has a solution: the mean's global solution plus the decaying entering differences.

                            theorem MindFormal.sparseLaunch_sum {M : ℕ} (S : Finset (Fin M)) (need : ℝ) :
                            ∑ j : Fin M, sparseLaunch S need j = ↑S.card * need
                            theorem MindFormal.sparseLaunch_nonneg {M : ℕ} (S : Finset (Fin M)) {need : ℝ} (hn : 0 ≤ need) (j : Fin M) :
                            0 ≤ sparseLaunch S need j
                            theorem MindFormal.sym_members_limit {ν I W Hx g : ℝ} (hν : 0 < ν) {M : ℕ} (hM : 0 < M) {x : Fin M → ℝ → ℝ} (hx : SymSystemSolution ν I W Hx g x) {L : ℝ} (hmean : Filter.Tendsto (fun (t : ℝ) => (∑ k : Fin M, x k t) / ↑M) Filter.atTop (nhds L)) (j : Fin M) :

                            The members of any solution converge to the mean's limit.

                            theorem MindFormal.sym_launch_characterization {ν I W Hx g need : ℝ} {M mstar : ℕ} (hν : 0 < ν) (hM : 1 ≤ M) (hI : 0 ≤ I) (hW : 0 < W) (hH : 0 < Hx) (hn : 0 < need) (hD0 : 0 < symD0 (↑M) I Hx g) (hD1 : symD1 (↑M) I W Hx g < 0) (hdisc : 4 * (↑M ^ 2 * W) * symD0 (↑M) I Hx g < symD1 (↑M) I W Hx g ^ 2) (hm1 : 1 ≤ mstar) (hmM : mstar ≤ M) :
                            (∀ (S : Finset (Fin M)), ∃ (x : Fin M → ℝ → ℝ), SymSystemSolution ν I W Hx g x ∧ ∀ (j : Fin M), x j 0 = sparseLaunch S need j) ∧ ((↑mstar - 1) * need / ↑M < symRootLow (↑M) I W Hx g ∧ symRootLow (↑M) I W Hx g < ↑mstar * need / ↑M ∧ need < symRootHigh (↑M) I W Hx g ↔ (∀ (m : ℕ), 1 ≤ m → m < mstar → ∀ (S : Finset (Fin M)), S.card = m → ∀ (x : Fin M → ℝ → ℝ), SymSystemSolution ν I W Hx g x → (∀ (j : Fin M), x j 0 = sparseLaunch S need j) → ∀ (j : Fin M), Filter.Tendsto (x j) Filter.atTop (nhds 0)) ∧ ∀ (m : ℕ), mstar ≤ m → m ≤ M → ∀ (S : Finset (Fin M)), S.card = m → ∀ (x : Fin M → ℝ → ℝ), SymSystemSolution ν I W Hx g x → (∀ (j : Fin M), x j 0 = sparseLaunch S need j) → ∃ (T : ℝ), ∀ (t : ℝ), T ≤ t → ∀ (j : Fin M), need < x j t)

                            11.14 (SF4): the exact launch characterization. In SF3's bistable comparison with 1≤m*≤M, SF4's root inequalities hold exactly when every positive subcritical sparse launch has every member converging to zero and every launch of at least m* seeds has every member eventually above need; every launch has a solution.