MindFormal v1.0.0One Mind

MindFormal.Example.PageRoleRouting

Strict-past selection of the first query request from the existing record.

theorem MindFormal.PageFamily.querySlot_exists {N : ℕ} (a : ℝ) (h : FiniteActionHistory (Fin N)) :
∃ (n : ℕ), a ≤ (↑h n).1 ∨ (↑h n).2 = Sum.inr ()

The record is finite, so scanning past the acquisition cut reaches either its first query request or an empty slot.

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
    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) :
      ∃ (n : ℕ) (τ : ℝ), ↑hist n = (τ, Sum.inl i) ∧ a ≤ τ ∧ τ < s

      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_none {N : ℕ} (a s : ℝ) (hist : FiniteActionHistory (Fin N)) (h : ∀ (n : ℕ) (τ : ℝ) (i : Fin N), ↑hist n = (τ, Sum.inl i) → a ≤ τ → s ≤ τ) :
      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.