MindFormal v1.0.0One Mind

MindFormal.Run.A1043LongRunAttention.SlopePaths

Paper 2, long-run attention: two explicit comparison paths for a scalar equation reflected at zero whose innovation follows a straight line c·t. Below, the unreflected reference with target 0 (for c ≥ 0 it never reaches zero); above, the reference with target T⁺ cut at zero, whose push is nondecreasing. Each comparison costs twice the distance of the actual innovation from the line.

theorem MindFormal.A1043LongRunAttention.reference_integral (ν K x₀ t : ℝ) :
referenceActivity ν K x₀ t = x₀ + ∫ (s : ℝ) in 0..t, ν * (K - referenceActivity ν K x₀ s)

The reference solves its integral equation from zero.

The line c·t as a path on the horizon.

Equations
Instances For
    noncomputable def MindFormal.A1043LongRunAttention.refPath {H : ℝ} (ν K x₀ : ℝ) :

    The reference as a path on the horizon.

    Equations
    Instances For
      theorem MindFormal.A1043LongRunAttention.reference_nonneg {ν K x₀ t : ℝ} (hν : 0 ≤ ν) (hK : 0 ≤ K) (hx : 0 ≤ x₀) (ht : 0 ≤ t) :
      0 ≤ referenceActivity ν K x₀ t

      With K ≥ 0 and x₀ ≥ 0 the reference stays nonnegative at nonnegative times.

      theorem MindFormal.A1043LongRunAttention.lower_dynamics {H ν c x₀ : ℝ} (hH : 0 ≤ H) (hν : 0 < ν) (hc : 0 ≤ c) (hx : 0 ≤ x₀) :
      ScalarDynamics hH (refPath ν (c / ν) x₀) (linePath c) fun (s : ℝ) => -ν * referenceActivity ν (c / ν) x₀ s

      The lower path. For c ≥ 0 and x₀ ≥ 0, the reference with target c/ν is the reflected solution with drift −ν·y and innovation c·t; it never touches zero, so its push is zero.

      noncomputable def MindFormal.A1043LongRunAttention.capPath {H : ℝ} (ν K x₀ : ℝ) :

      The upper path: the reference with target K cut at zero.

      Equations
      Instances For
        theorem MindFormal.A1043LongRunAttention.cut_monotone {ν K x₀ s t : ℝ} (hν : 0 ≤ ν) (hx : 0 ≤ x₀) (hs : 0 ≤ s) (hst : s ≤ t) :
        max (-referenceActivity ν K x₀ s) 0 ≤ max (-referenceActivity ν K x₀ t) 0

        The cut's size [−y]₊ is nondecreasing on nonnegative times when x₀ ≥ 0.

        theorem MindFormal.A1043LongRunAttention.cap_upper {H ν c Tp x₀ : ℝ} (hH : 0 ≤ H) (hν : 0 < ν) (hx : 0 ≤ x₀) :
        ∃ (k : C(↑(HorizonTime H), ℝ)), Monotone ⇑k ∧ ∀ (t : ↑(HorizonTime H)), (capPath ν (Tp + c / ν) x₀) t = ((capPath ν (Tp + c / ν) x₀) ⟨0, ⋯⟩ + ∫ (s : ℝ) in 0..↑t, ν * (Tp - max (referenceActivity ν (Tp + c / ν) x₀ s) 0)) + ((linePath c) t - (linePath c) ⟨0, ⋯⟩) + k t

        The upper path. For x₀ ≥ 0, the reference with target Tp + c/ν cut at zero satisfies y(t) = y(0) + ∫₀ᵗ ν(Tp − y) + c·t + k(t) with a nondecreasing k: it is an upper path for the scalar comparison.