MindFormal v1.0.0One Mind

MindFormal.Tools.A1043LongRunAttention.Plan

Paper 2, long-run attention, §2: the planned innovation paths. Stage k < K occupies [kd, (k + 1)d]; on it a coordinate's planned innovation moves with slope ν·b_k·σ_k, with σ_k = ±1. The path is a finite sum of clipped lines: it starts at zero, has exactly that increment on each stage, and is Lipschitz with an explicit constant. These are paths of the original innovations' event, not a control added to the mind.

The clip of x to [0, d].

Equations
Instances For
    theorem MindFormal.A1043LongRunAttention.clipD_of_nonpos {d x : ℝ} (hd : 0 ≤ d) (hx : x ≤ 0) :
    clipD d x = 0
    theorem MindFormal.A1043LongRunAttention.clipD_of_ge {d x : ℝ} (hd : 0 ≤ d) (hx : d ≤ x) :
    clipD d x = d
    theorem MindFormal.A1043LongRunAttention.clipD_of_mem {d x : ℝ} (hx0 : 0 ≤ x) (hxd : x ≤ d) :
    clipD d x = x
    theorem MindFormal.A1043LongRunAttention.sum_lipschitz {ι : Type u_1} (s : Finset ι) (f : ι → ℝ → ℝ) (K : ι → NNReal) (hf : ∀ (i : ι), LipschitzWith (K i) (f i)) (a : ι → ℝ) :
    LipschitzWith (∑ i ∈ s, ‖a i‖₊ * K i) fun (u : ℝ) => ∑ i ∈ s, a i * f i u

    A finite combination of Lipschitz functions is Lipschitz.

    def MindFormal.A1043LongRunAttention.planPath (ν d : ℝ) (K : ℕ) (amp dir : ℕ → ℝ) (u : ℝ) :

    The planned path: stage k < K contributes ν·b_k·σ_k times the clipped time spent in it.

    Equations
    Instances For
      theorem MindFormal.A1043LongRunAttention.planPath_zero {ν d : ℝ} (hd : 0 ≤ d) (K : ℕ) (amp dir : ℕ → ℝ) :
      planPath ν d K amp dir 0 = 0
      theorem MindFormal.A1043LongRunAttention.planPath_step {ν d : ℝ} (hd : 0 ≤ d) {K k : ℕ} (hk : k < K) (amp dir : ℕ → ℝ) {v : ℝ} (hv0 : 0 ≤ v) (hvd : v ≤ d) :
      planPath ν d K amp dir (↑k * d + v) - planPath ν d K amp dir (↑k * d) = ν * amp k * dir k * v

      The stage increment. On stage k < K the planned path moves with slope ν·b_k·σ_k.

      def MindFormal.A1043LongRunAttention.planLip (ν : ℝ) (K : ℕ) (amp dir : ℕ → ℝ) :

      The planned path's Lipschitz constant.

      Equations
      Instances For
        theorem MindFormal.A1043LongRunAttention.planPath_lipschitz (ν d : ℝ) (K : ℕ) (amp dir : ℕ → ℝ) :
        LipschitzWith (planLip ν K amp dir) (planPath ν d K amp dir)
        theorem MindFormal.A1043LongRunAttention.planPath_continuous (ν d : ℝ) (K : ℕ) (amp dir : ℕ → ℝ) :
        Continuous (planPath ν d K amp dir)