Lemma 3.8, pp. 15:13–15:14 (repaired) — bounded until: characterizations of r_α^{D̂ᵢ} and s_α^{D̂ᵢ}, and p_α^{D̂ᵢ} is regular and equals α^(D̄,τ̄,i)
ProvedMFOTLMon.Monitor.lemma_3_8Let with , where and have the same vector of free variables, let be the lookahead offset, and let , , be given by the (repaired) construction of §3.4.4. Assume the input structures are automatic with respect to the fixed representation and interpret a binary predicate as , and that the relations are regular and for all and . Then:
- is regular and, for all and ,
- is regular and, for all and ,
- is regular and .
This is the correctness of the incremental construction for the bounded until operator, the only future operator with an unbounded number of time points to wait for.
Formalization Note. The statement is repaired with respect to the page in three places. The construction carries repairs R1 and R2 (see the Constructions definition): the printed construction is not correct, already in the paper's own example of §3.5. In part 1 the page writes "", read here as ; and the page has no bound on , so that for its right-hand side holds vacuously while the relation contains no such pair; the bound is added to the right-hand side. Tuples are lists , . is the finite upper bound of (hypothesis I.hi = b').
import Mathlib import Definitions.Def_MFOTLMon_Monitor_Constructions
namespace MFOTLMon.Monitor
/-- Lemma 3.8 (pp. 15:13–15:14, repaired), `α = β U_{[b,b′)} γ` with `b′ ∈ ℕ` and
`free(β) = free(γ)` (WLOG of §3.4). Let `ℓᵢ` be the lookahead offset. Assume that the relations
`p_φ^{D̂ₖ}` (here `P φ k`) are regular and equal `φ^{(D̄,τ̄,k)}` for all `k ≤ i + ℓᵢ` and
`φ ∈ tsub(β) ∪ tsub(γ)`. Then, for the repaired §3.4.4 construction (`untilRS`, `untilP`):
(i) `r_α^{D̂ᵢ}` is regular and, for all `ā ∈ ℕⁿ` and `j ∈ ℕ`, `(ā, j) ∈ r_α^{D̂ᵢ}` iff `j ≤ ℓᵢ` and
`ā ∈ β^{(D̄,τ̄,i+k)}` for all `j ≤ k ≤ ℓᵢ`;
(ii) `s_α^{D̂ᵢ}` is regular and, for all `ā ∈ ℕⁿ` and `j, j′, t ∈ ℕ`, `(ā, j, j′, t) ∈ s_α^{D̂ᵢ}` iff
`j ≤ j′`, `t = τ_{i+j′} − τᵢ ∈ [b, b′)`, `ā ∈ γ^{(D̄,τ̄,i+j′)}` and `ā ∈ β^{(D̄,τ̄,i+k)}` for all
`j ≤ k < j′`;
(iii) `p_α^{D̂ᵢ}` is regular and `p_α^{D̂ᵢ} = α^{(D̄,τ̄,i)}`. -/
theorem lemma_3_8 {S : Signature} {Γ : Type} [Fintype Γ] (rep : DomainRep Γ) (D : TempStruct S)
(hD : IsAutomatic rep D) (hlt : HasOrderPred D) (I : Interval) (b' : ℕ) (hb' : I.hi = b')
(β γ : Formula S) (hfree : free β = free γ) (P : Formula S → ℕ → Set (List ℕ)) (i : ℕ) :
let B : ℕ → Set (List ℕ) := fun j => hatSet (D.rel j) D.const (fun ψ => P ψ j) β
let G : ℕ → Set (List ℕ) := fun j => hatSet (D.rel j) D.const (fun ψ => P ψ j) γ
let n := (freeList (Formula.until I β γ)).length
let ℓ := lookahead D b' i
let RS := untilRS D I B G i
(∀ k, k ≤ i + ℓ → ∀ φ ∈ tsub β ++ tsub γ, RegularRel rep (freeList φ).length (P φ k) ∧
P φ k = satSet D φ k) →
(RegularRel rep (n + 1) RS.1 ∧
∀ a : List ℕ, a.length = n → ∀ j : ℕ,
(a ++ [j] ∈ RS.1 ↔ j ≤ ℓ ∧ ∀ k, j ≤ k → k ≤ ℓ → a ∈ satSet D β (i + k))) ∧
(RegularRel rep (n + 3) RS.2 ∧
∀ a : List ℕ, a.length = n → ∀ j j' t : ℕ,
(a ++ [j, j', t] ∈ RS.2 ↔
j ≤ j' ∧ t = D.τ (i + j') - D.τ i ∧ I.Mem t ∧ a ∈ satSet D γ (i + j') ∧
∀ k, j ≤ k → k < j' → a ∈ satSet D β (i + k))) ∧
(RegularRel rep n (untilP RS.2) ∧ untilP RS.2 = satSet D (Formula.until I β γ) i) := by sorry
end MFOTLMon.Monitor
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.