MindFormal v1.0.0One Mind

MindFormal.Run.A931ScanTimes.Times

11.9's one-pass calendar on the item acts' times alone, over any record (a sequence of timed action slots) and any input path. The j-th item act is the record's slot k₀ + j; the first falls at c + Δ for a number c, successive item acts are Δ apart, and item j is shown on a final part of cycle j (a blank may precede it). Summing the cycles (Sol's calendarTime, calendar_constant) puts the j-th item act at c + jΔ, so an accept at the K-th falls at c + KΔ and an end after the n-th at c + nΔ, and over ranks 1,…,n the accept times average c + (n+1)Δ/2 (Sol's uniform_calendar_mean).

structure MindFormal.A931ScanTimes.ItemPass {C : Type u_1} {X : Type u_2} (rec : ℕ → ActionSlot C) (u : ℝ → X) (k₀ : ℕ) (c Δ : ℝ) (item : ℕ → X) (m : ℕ) :

One pass through m items on the record rec with input path u: the j-th item act (slot k₀ + j) is an act; the first falls at c + Δ, successive ones are Δ apart, and item j is shown on a final part of cycle j, (t - Δ + ℓ, t] with 0 ≤ ℓ < Δ, t its act's time.

Instances For
    def MindFormal.A931ScanTimes.AcceptsAt {C : Type u_1} (rec : ℕ → ActionSlot C) (k₀ : ℕ) (a x : C) (K : ℕ) :

    Accepting at the K-th item: item acts 1,…,K-1 are the next act x and the K-th is the accept act a.

    Equations
    Instances For
      def MindFormal.A931ScanTimes.EndsAfter {C : Type u_1} (rec : ℕ → ActionSlot C) (k₀ : ℕ) (x : C) (L : ℕ) :

      Ending after the L-th item: item acts 1,…,L are the next act x.

      Equations
      Instances For
        theorem MindFormal.A931ScanTimes.ItemPass.times {C : Type u_1} {X : Type u_2} {rec : ℕ → ActionSlot C} {u : ℝ → X} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → X} {m : ℕ} (P : ItemPass rec u k₀ c Δ item m) (j : ℕ) :
        1 ≤ j → j ≤ m → ∃ (i : C), rec (k₀ + j) = (c + ↑j * Δ, Sum.inl i)

        Summing the cycles: the j-th item act falls at calendarTime c Δ j = c + jΔ.

        theorem MindFormal.A931ScanTimes.ItemPass.act {C : Type u_1} {X : Type u_2} {rec : ℕ → ActionSlot C} {u : ℝ → X} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → X} {m : ℕ} (P : ItemPass rec u k₀ c Δ item m) {j : ℕ} (h1 : 1 ≤ j) (hj : j ≤ m) :
        (∃ (i : C), rec (k₀ + j) = (c + ↑j * Δ, Sum.inl i)) ∧ ∃ (ℓ : ℝ), 0 ≤ ℓ ∧ ℓ < Δ ∧ ∀ s ∈ Set.Ioc (c + ↑j * Δ - Δ + ℓ) (c + ↑j * Δ), u s = item j

        The j-th item act falls at c + jΔ and item j is shown on a final part of its cycle.

        theorem MindFormal.A931ScanTimes.accept_times {C : Type u_1} {X : Type u_2} {rec : ℕ → ActionSlot C} {u : ℝ → X} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → X} {a x : C} {K : ℕ} (P : ItemPass rec u k₀ c Δ item K) (hK : 1 ≤ K) (hl : AcceptsAt rec k₀ a x K) :
        (∀ (j : ℕ), 1 ≤ j → j < K → rec (k₀ + j) = (c + ↑j * Δ, Sum.inl x)) ∧ rec (k₀ + K) = (c + ↑K * Δ, Sum.inl a) ∧ ∃ (ℓ : ℝ), 0 ≤ ℓ ∧ ℓ < Δ ∧ ∀ s ∈ Set.Ioc (c + ↑K * Δ - Δ + ℓ) (c + ↑K * Δ), u s = item K

        Present: a pass that accepts at the K-th item has its next acts at c + jΔ and its accept at c + KΔ, and the accepted item is item K, shown on a final part of the K-th cycle.

        theorem MindFormal.A931ScanTimes.end_times {C : Type u_1} {X : Type u_2} {rec : ℕ → ActionSlot C} {u : ℝ → X} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → X} {x : C} {L : ℕ} (P : ItemPass rec u k₀ c Δ item L) (hl : EndsAfter rec k₀ x L) (j : ℕ) :
        1 ≤ j → j ≤ L → rec (k₀ + j) = (c + ↑j * Δ, Sum.inl x) ∧ ∃ (ℓ : ℝ), 0 ≤ ℓ ∧ ℓ < Δ ∧ ∀ s ∈ Set.Ioc (c + ↑j * Δ - Δ + ℓ) (c + ↑j * Δ), u s = item j

        Absent: a pass that ends after the L-th item reads every item once, the j-th act at c + jΔ with item j on a final part of cycle j, and ends at c + LΔ.

        theorem MindFormal.A931ScanTimes.rank_mean {C : Type u_1} {X : Type u_2} {k₀ : ℕ} {c Δ : ℝ} {recP : ℕ → ℕ → ℕ → ActionSlot C} {uP : ℕ → ℕ → ℝ → X} {itemP : ℕ → ℕ → ℕ → X} {recA : ℕ → ℕ → ActionSlot C} {uA : ℕ → ℝ → X} {itemA : ℕ → ℕ → X} {a x : C} {Lmax : ℕ} (hp : ∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → ItemPass (recP L K) (uP L K) k₀ c Δ (itemP L K) K ∧ AcceptsAt (recP L K) k₀ a x K) (ha : ∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → ItemPass (recA L) (uA L) k₀ c Δ (itemA L) L ∧ EndsAfter (recA L) k₀ x L) :
        ∃ (Tp : ℕ → ℕ → ℝ) (A : ℕ → ℝ), (∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → recP L K (k₀ + K) = (Tp L K, Sum.inl a)) ∧ (∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → recA L (k₀ + L) = (A L, Sum.inl x)) ∧ (∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → (∑ k ∈ Finset.range L, Tp L (k + 1)) / ↑L = c + (↑L + 1) * Δ / 2 ∧ A L = c + ↑L * Δ) ∧ ∀ (L : ℕ), 1 ≤ L → L + 1 ≤ Lmax → (∑ k ∈ Finset.range (L + 1), Tp (L + 1) (k + 1)) / ↑(L + 1) - (∑ k ∈ Finset.range L, Tp L (k + 1)) / ↑L = (A (L + 1) - A L) / 2

        The rank average: for list lengths L ≤ Lmax, passes at every rank K accepting at the K-th item and passes ending after the L-th, all with the same c and Δ: the accept times read from the records average c + (L+1)Δ/2, the end falls at c + LΔ, and one added item raises the average by half the rise of the end.