Proof of Theorem 3.9, p. 15:17 — if (α, j, ∅) ∈ Q_k, line 7 builds p_α^{D̂ⱼ} from stored relations, and it equals α^(D̄,τ̄,j) and is regular
ProvedMFOTLMon.Monitor.relations_built_correctAssume the hypotheses of Theorem 3.9: the input structures are automatic with respect to a fixed constant domain representation of and interpret a binary as ; is bounded, each temporal subformula occurs once in , and the direct subformulas of every and subformula have the same free variables. Let be the list of on entering its st loop iteration. If , then after lines 5–7 of that iteration the store contains , and
This is what the paper draws from the claim that line 7 can be executed (every input of the construction has been built earlier and not yet discarded), combined with Lemmas 3.5–3.8; it yields part (i) of Theorem 3.9.
Formalization Note. The store after line 7 is afterBuild D (run D Φ k). A build whose input is absent from the store stores nothing, so the conclusion includes that the build succeeded.
import Mathlib import Definitions.Def_MFOTLMon_Monitor_Algorithm
namespace MFOTLMon.Monitor
/-- The conclusion drawn from "line 7 can be executed" in the proof of Theorem 3.9 (p. 15:17): if
`(α, j, ∅) ∈ Q_k`, then line 7 of the `(k+1)`st iteration builds `p_α^{D̂ⱼ}` from the store, and it
equals `α^{(D̄,τ̄,j)}` and is regular. -/
theorem relations_built_correct {S : Signature} {Γ : Type} [Fintype Γ] (rep : DomainRep Γ)
(D : TempStruct S) (hD : IsAutomatic rep D) (hlt : HasOrderPred D) (Φ : Formula S)
(hΦ : Bounded Φ) (huniq : TemporalSubformulasOnce Φ) (hfree : DirectFreeAligned Φ) :
∀ (k : ℕ) (α : Formula S) (j : ℕ), (α, j, ([] : List (Formula S))) ∈ (run D Φ k).Q →
(afterBuild D (run D Φ k)).store (Key.p α) j = some (satSet D α j) ∧
RegularRel rep (freeList α).length (satSet D α j) := by sorry
end MFOTLMon.Monitor
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.