Strict-past selection of the first query request from the existing record.
noncomputable def
MindFormal.PageFamily.querySlot
{N : ℕ}
(a : ℝ)
(h : FiniteActionHistory (Fin N))
:
A pure selector of an existing slot, with no additional record type.
Equations
Instances For
noncomputable def
MindFormal.PageFamily.firstQueryRole
{N : ℕ}
(a : ℝ)
(h : FiniteActionHistory (Fin N))
:
The copied role is read once from the first post-acquisition request.
Equations
- MindFormal.PageFamily.firstQueryRole a h = match (↑h (MindFormal.PageFamily.querySlot a h)).2 with | Sum.inl i => some i | Sum.inr val => none
Instances For
The selector is measurable on the original finite-history space.
The same selector can be used in the existing finite-menu world builder.
theorem
MindFormal.PageFamily.firstQueryRole_sound
{N : ℕ}
(a s : ℝ)
(hist : FiniteActionHistory (Fin N))
{i : Fin N}
(hi : firstQueryRole a (actionPast s hist) = some i)
:
A selected request is an occupied original slot between the acquisition cut and the strict read time. This also covers reads before any query act.
theorem
MindFormal.PageFamily.firstQueryRole_latched
{N : ℕ}
(a : ℝ)
(hist : FiniteActionHistory (Fin N))
(hc : ChronologicalHistory hist)
{n : ℕ}
{τ s : ℝ}
{i : Fin N}
(hn : ↑hist n = (τ, Sum.inl i))
(ha : a ≤ τ)
(hs : τ < s)
(hfirst : ∀ (m : ℕ) (r : ℝ) (j : Fin N), ↑hist m = (r, Sum.inl j) → a ≤ r → τ ≤ r)
:
Any actual first request remains the selected role at every later strict-past read, irrespective of all subsequent acts and their labels.