MindFormal v1.0.0One Mind

MindFormal.Run.A926ScanCalendar.Record

11.9's one-pass calendar read off the native action record of any run. On an outcome where the record's acts from index k₀ start at c and are Δ apart, and the item shown since each act is the one the next act reads, the j-th act falls at c + jΔ by summing the cycles (Sol's calendarTime and calendar_constant); so an accept at the K-th act falls at c + KΔ, 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.A926ScanCalendar.OnePass {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k₀ : ℕ) (c Δ : ℝ) (item : ℕ → Fin N → ℝ) (m : ℕ) :

One pass on the record of G through its m-th act from k₀: the acts start at c and are Δ apart, and the item shown since the (j-1)-th act is item j, read by the j-th act.

Instances For
    def MindFormal.A926ScanCalendar.AcceptsAt {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k₀ : ℕ) (a x : Fin N) (K : ℕ) :

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

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def MindFormal.A926ScanCalendar.EndsAfter {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (H : ℝ) (k₀ : ℕ) (x : Fin N) (L : ℕ) :

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

      Equations
      Instances For
        theorem MindFormal.A926ScanCalendar.OnePass.times {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {G : PhysicalGlobalData N n T Λ} {H : ℝ} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → Fin N → ℝ} {m : ℕ} (P : OnePass G H k₀ c Δ item m) (j : ℕ) :
        j ≤ m → ∃ (i : Fin N), ((G.native H false).search (k₀ + j)).event = some (A881CalibratedScan.calendarTime c (fun (x : ℕ) => Δ) j, i)

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

        theorem MindFormal.A926ScanCalendar.calendar_at (c Δ : ℝ) (j : ℕ) :
        A881CalibratedScan.calendarTime c (fun (x : ℕ) => Δ) j = c + ↑j * Δ
        theorem MindFormal.A926ScanCalendar.OnePass.act {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {G : PhysicalGlobalData N n T Λ} {H : ℝ} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → Fin N → ℝ} {m : ℕ} (P : OnePass G H k₀ c Δ item m) {j : ℕ} (h1 : 1 ≤ j) (hj : j ≤ m) :
        (∃ (i : Fin N), ((G.native H false).search (k₀ + j)).event = some (c + ↑j * Δ, i)) ∧ ∀ s ∈ Set.Ioc (c + (↑j - 1) * Δ) (c + ↑j * Δ), G.input s = item j

        The j-th act falls at c + jΔ and reads item j, shown on (c+(j-1)Δ, c+jΔ].

        theorem MindFormal.A926ScanCalendar.accept_calendar {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {G : PhysicalGlobalData N n T Λ} {H : ℝ} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → Fin N → ℝ} {a x : Fin N} {K : ℕ} (P : OnePass G H k₀ c Δ item K) (hK : 1 ≤ K) (hl : AcceptsAt G H k₀ a x K) :
        (∀ (j : ℕ), 1 ≤ j → j < K → ((G.native H false).search (k₀ + j)).event = some (c + ↑j * Δ, x)) ∧ ((G.native H false).search (k₀ + K)).event = some (c + ↑K * Δ, a) ∧ ∀ s ∈ Set.Ioc (c + (↑K - 1) * Δ) (c + ↑K * Δ), G.input s = item K

        The present universal: on every outcome of every run whose record makes one pass through its K-th act from c, Δ apart, and accepts at the K-th, the acts 1,…,K-1 are next acts at c + jΔ, the accept falls at c + KΔ, and the item it accepts is item K, shown for the K-th cycle.

        theorem MindFormal.A926ScanCalendar.end_calendar {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {G : PhysicalGlobalData N n T Λ} {H : ℝ} {k₀ : ℕ} {c Δ : ℝ} {item : ℕ → Fin N → ℝ} {x : Fin N} {L : ℕ} (P : OnePass G H k₀ c Δ item L) (hl : EndsAfter G H k₀ x L) (j : ℕ) :
        1 ≤ j → j ≤ L → ((G.native H false).search (k₀ + j)).event = some (c + ↑j * Δ, x) ∧ ∀ s ∈ Set.Ioc (c + (↑j - 1) * Δ) (c + ↑j * Δ), G.input s = item j

        The absent universal: on every outcome of every run whose record makes one pass through its L-th act from c, Δ apart, with only next acts, every item 1,…,L is read once, the j-th at c + jΔ, and the pass ends after the L-th act, at c + LΔ.

        theorem MindFormal.A926ScanCalendar.rank_mean {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {H : ℝ} {k₀ : ℕ} {c Δ : ℝ} {Gp : ℕ → ℕ → PhysicalGlobalData N n T Λ} {Ga : ℕ → PhysicalGlobalData N n T Λ} {a x : Fin N} {itemP : ℕ → ℕ → ℕ → Fin N → ℝ} {itemA : ℕ → ℕ → Fin N → ℝ} {Lmax : ℕ} (hp : ∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → OnePass (Gp L K) H k₀ c Δ (itemP L K) K ∧ AcceptsAt (Gp L K) H k₀ a x K) (ha : ∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → OnePass (Ga L) H k₀ c Δ (itemA L) L ∧ EndsAfter (Ga L) H k₀ x L) :
        ∃ (Tp : ℕ → ℕ → ℝ) (A : ℕ → ℝ), (∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → (((Gp L K).native H false).search (k₀ + K)).event = some (Tp L K, a)) ∧ (∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → (((Ga L).native H false).search (k₀ + L)).event = some (A L, 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 every list length L ≤ Lmax, runs at every rank K that make one pass and accept at the K-th, and a run that makes one pass and ends after the L-th, all from c and Δ apart: the accept times read from their 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.