MindFormal v1.0.0One Mind

MindFormal.Example.A1029AttentionTiming.ScheduleReadout

Paper 2, attention timing, §7: the prepared readout (24). For finitely many value points P ℓ in ℝ² with assigned scores υ ℓ, Y(v) = min_{ℓ'} {υ ℓ' + L_Y Σ_d [P ℓ' d − v_d]₊} with L_Y = max(1, max_{υ ℓ > υ ℓ'} (υ ℓ − υ ℓ')/Σ_d [P ℓ' d − P ℓ d]₊). When every higher-scored point has a positive deficit, Y interpolates the scores, is globally Lipschitz, nonincreasing in each value element and constant in activity: IV's signature, nothing added.

The coordinate deficit Σ_d [P ℓ' d − v_d]₊.

Equations
Instances For
    noncomputable def MindFormal.A1029AttentionTiming.readConst {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) :

    (24)'s constant L_Y.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      noncomputable def MindFormal.A1029AttentionTiming.readValue {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (v : Fin 2 → ℝ) :

      (24)'s readout on value pairs.

      Equations
      Instances For
        theorem MindFormal.A1029AttentionTiming.readConst_pos {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) :
        0 < readConst P υ
        theorem MindFormal.A1029AttentionTiming.deficit_change (p v w : Fin 2 → ℝ) :
        deficit p v ≤ deficit p w + ∑ d : Fin 2, |v d - w d|

        A positive part moves by at most the change of its argument.

        theorem MindFormal.A1029AttentionTiming.readValue_lower {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (hdef : ∀ (ℓ ℓ' : I), υ ℓ' < υ ℓ → 0 < deficit (P ℓ') (P ℓ)) (ℓ : I) (v : Fin 2 → ℝ) :
        υ ℓ - readConst P υ * ∑ d : Fin 2, |v d - P ℓ d| ≤ readValue P υ v

        Interpolation (lower half). If every higher-scored point has a positive deficit, every term of Y at v is at least υ ℓ − L_Y Σ_d |v_d − P ℓ d|.

        theorem MindFormal.A1029AttentionTiming.readValue_upper {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (ℓ : I) (v : Fin 2 → ℝ) :
        readValue P υ v ≤ υ ℓ + readConst P υ * ∑ d : Fin 2, |v d - P ℓ d|

        Interpolation (upper half). Y(v) ≤ υ ℓ + L_Y Σ_d |v_d − P ℓ d|.

        theorem MindFormal.A1029AttentionTiming.readValue_data {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (hdef : ∀ (ℓ ℓ' : I), υ ℓ' < υ ℓ → 0 < deficit (P ℓ') (P ℓ)) (ℓ : I) :
        readValue P υ (P ℓ) = υ ℓ

        Exact interpolation at the data.

        theorem MindFormal.A1029AttentionTiming.readValue_lipschitz {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (v w : Fin 2 → ℝ) :
        |readValue P υ v - readValue P υ w| ≤ readConst P υ * ∑ d : Fin 2, |v d - w d|

        Y is globally Lipschitz in the value pair, with constant L_Y for the ℓ¹ distance.

        theorem MindFormal.A1029AttentionTiming.readValue_antitone {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) (d : Fin 2) (v : Fin 2 → ℝ) :
        Antitone fun (r : ℝ) => readValue P υ (Function.update v d r)

        Y is nonincreasing in each value element.

        theorem MindFormal.A1029AttentionTiming.readValue_anti {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) {w w' : Fin 2 → ℝ} (h : ∀ (d : Fin 2), w d ≤ w' d) :
        readValue P υ w' ≤ readValue P υ w

        Y is nonincreasing in the coordinatewise order of value pairs.

        The value pair read from IV's argument.

        Equations
        Instances For
          noncomputable def MindFormal.A1029AttentionTiming.scheduleRead {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) :

          (24) as IV's attention read: constant in activity.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.A1029AttentionTiming.scheduleRead_lipschitz {I : Type u_1} [Fintype I] [Nonempty I] (P : I → Fin 2 → ℝ) (υ : I → ℝ) :