11.9.2's rank average with each run's pass at its own record slot and its
own start: the present run at rank K of an L-item list passes from slot
kP L K with its j-th item act at τP L K + c + jΔ, the absent run from slot
kA L with its j-th at τA L + c + jΔ. Each search time is read from its own
start, T - τ, and over ranks 1,…,L these average c + (L+1)Δ/2 against the
absent c + LΔ (Sol's calendar_constant and uniform_calendar_mean).
theorem
MindFormal.A942ScanStart.own_start_mean
{C : Type u_1}
{recP : ℕ → ℕ → ℕ → ActionSlot C}
{recA : ℕ → ℕ → ActionSlot C}
{kP : ℕ → ℕ → ℕ}
{kA : ℕ → ℕ}
{τP : ℕ → ℕ → ℝ}
{τA : ℕ → ℝ}
{c Δ : ℝ}
{a x : C}
{Lmax : ℕ}
(hp :
∀ (L K : ℕ),
1 ≤ K →
K ≤ L →
L ≤ Lmax →
A939ScanIndex.ItemPass (recP L K) (kP L K) (τP L K + c) Δ K ∧ A939ScanIndex.AcceptsAt (recP L K) (kP L K) a x K)
(ha :
∀ (L : ℕ),
1 ≤ L →
L ≤ Lmax → A939ScanIndex.ItemPass (recA L) (kA L) (τA L + c) Δ L ∧ A939ScanIndex.EndsAfter (recA L) (kA L) x L)
:
∃ (Tp : ℕ → ℕ → ℝ) (A : ℕ → ℝ),
(∀ (L K : ℕ), 1 ≤ K → K ≤ L → L ≤ Lmax → recP L K (kP L K + K - 1) = (Tp L K, Sum.inl a)) ∧ (∀ (L : ℕ), 1 ≤ L → L ≤ Lmax → recA L (kA L + L - 1) = (A L, Sum.inl x)) ∧ (∀ (L : ℕ),
1 ≤ L →
L ≤ Lmax →
(∑ k ∈ Finset.range L, (Tp L (k + 1) - τP L (k + 1))) / ↑L = c + (↑L + 1) * Δ / 2 ∧ A L - τA L = c + ↑L * Δ) ∧ ∀ (L : ℕ),
1 ≤ L →
L + 1 ≤ Lmax →
(∑ k ∈ Finset.range (L + 1), (Tp (L + 1) (k + 1) - τP (L + 1) (k + 1))) / ↑(L + 1) - (∑ k ∈ Finset.range L, (Tp L (k + 1) - τP L (k + 1))) / ↑L = (A (L + 1) - τA (L + 1) - (A L - τA L)) / 2
The rank average with each run's own pass slot and start: the accept and end times read from the records, less each run's start, average c + (L+1)Δ/2 and equal c + LΔ, and one added item raises the average by half the rise of the end.