MindFormal v1.0.0One Mind

MindFormal.Run.A939ScanIndex.Times

11.9's one-pass calendar on the item acts' times alone, over any record (a sequence of timed action slots). The j-th item act (j ≥ 1) is the record's slot k₀ + j - 1, so k₀ = 0 admits a record that opens with the pass; the first falls at c + Δ for a number c and successive item acts are Δ apart. 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). Which item each act reads (item j shown on a final part of cycle j, a blank allowed before it) is a separate premise, used only to name the accepted item.

structure MindFormal.A939ScanIndex.ItemPass {C : Type u_1} (rec : ℕ → ActionSlot C) (k₀ : ℕ) (c Δ : ℝ) (m : ℕ) :

One pass through m items on the record rec: the j-th item act (slot k₀ + j - 1, 1 ≤ j ≤ m) is an act; the first falls at c + Δ and successive ones are Δ apart.

Instances For
    def MindFormal.A939ScanIndex.ItemsShown {C : Type u_1} {X : Type u_2} (rec : ℕ → ActionSlot C) (u : ℝ → X) (k₀ : ℕ) (Δ : ℝ) (item : ℕ → X) (m : ℕ) :

    Item j is shown on a final part (t - Δ + ℓ, t] of cycle j, 0 ≤ ℓ < Δ, t the j-th item act's time.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def MindFormal.A939ScanIndex.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.A939ScanIndex.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.A939ScanIndex.ItemPass.times {C : Type u_1} {rec : ℕ → ActionSlot C} {k₀ : ℕ} {c Δ : ℝ} {m : ℕ} (P : ItemPass rec k₀ c Δ m) (j : ℕ) :
          1 ≤ j → j ≤ m → ∃ (i : C), rec (k₀ + j - 1) = (c + ↑j * Δ, Sum.inl i)

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

          theorem MindFormal.A939ScanIndex.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 k₀ c Δ K) (hK : 1 ≤ K) (hl : AcceptsAt rec k₀ a x K) :
          (∀ (j : ℕ), 1 ≤ j → j < K → rec (k₀ + j - 1) = (c + ↑j * Δ, Sum.inl x)) ∧ rec (k₀ + K - 1) = (c + ↑K * Δ, Sum.inl a) ∧ (ItemsShown rec u k₀ Δ item K → ∃ (ℓ : ℝ), 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Δ; if item j is shown on a final part of cycle j, the accepted item is item K.

          theorem MindFormal.A939ScanIndex.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 k₀ c Δ L) (hl : EndsAfter rec k₀ x L) :
          (∀ (j : ℕ), 1 ≤ j → j ≤ L → rec (k₀ + j - 1) = (c + ↑j * Δ, Sum.inl x)) ∧ (ItemsShown rec u k₀ Δ item L → ∀ (j : ℕ), 1 ≤ j → j ≤ L → ∃ (ℓ : ℝ), 0 ≤ ℓ ∧ ℓ < Δ ∧ ∀ s ∈ Set.Ioc (c + ↑j * Δ - Δ + ℓ) (c + ↑j * Δ), u s = item j)

          Absent: a pass that ends after the L-th item has every item act a next act, the j-th at c + jΔ, and ends at c + LΔ; if item j is shown on a final part of cycle j, every item is read once.

          theorem MindFormal.A939ScanIndex.rank_mean {C : Type u_1} {k₀ : ℕ} {c Δ : ℝ} {recP : ℕ → ℕ → ℕ → ActionSlot C} {recA : ℕ → ℕ → ActionSlot C} {a x : C} {Lmax : ℕ} (hp : ∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → ItemPass (recP L K) k₀ c Δ K ∧ AcceptsAt (recP L K) k₀ a x K) (ha : ∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → ItemPass (recA L) k₀ c Δ L ∧ EndsAfter (recA L) k₀ x L) :
          ∃ (Tp : ℕ → ℕ → ℝ) (A : ℕ → ℝ), (∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → recP L K (k₀ + K - 1) = (Tp L K, Sum.inl a)) ∧ (∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → recA L (k₀ + L - 1) = (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.