Lemma 3.7, p. 15:12 — metric since: r_α^{D̂ᵢ} is regular with the stated characterization, and p_α^{D̂ᵢ} is regular and equals α^(D̄,τ̄,i)
ProvedMFOTLMon.Monitor.lemma_3_7Let , where and have the same vector of free variables, and let and be given by the construction of §3.4.3. Assume the input structures are automatic with respect to the fixed representation and interpret a binary predicate as . Assume that the relations are regular and for all and . Then:
- is regular and, for all and ,
- is regular and .
Part 1 says that records, for each tuple, the ages of its still-relevant -witnesses; part 2 is the correctness of the incremental since construction.
Formalization Note. The pair is the list . The same-free-variables hypothesis is the paper's "without loss of generality" assumption of §3.4. The order predicate (§3.1) is a hypothesis because the arithmetic constraint of the construction is defined from it. The construction uses the additive form of the printed constraint.
import Mathlib import Definitions.Def_MFOTLMon_Monitor_Constructions
namespace MFOTLMon.Monitor
/-- Lemma 3.7 (p. 15:12), `α = β S_{[b,b′)} γ` with `free(β) = free(γ)` (WLOG of §3.4). Assume that
the relations `p_φ^{D̂ⱼ}` (here `P φ j`) are regular and equal `φ^{(D̄,τ̄,j)}` for all `j ≤ i` and
`φ ∈ tsub(β) ∪ tsub(γ)`. Then (i) `r_α^{D̂ᵢ}` is regular and, for all `ā ∈ ℕⁿ` and `t ∈ ℕ`,
`(ā, t) ∈ r_α^{D̂ᵢ}` iff there is `j ≤ i` with `t = τᵢ − τⱼ < b′`, `ā ∈ γ^{(D̄,τ̄,j)}` and
`ā ∈ β^{(D̄,τ̄,k)}` for all `j < k ≤ i`; (ii) `p_α^{D̂ᵢ}` is regular and `p_α^{D̂ᵢ} = α^{(D̄,τ̄,i)}`.
`r_α^{D̂ᵢ}` and `p_α^{D̂ᵢ}` are the §3.4.3 constructions `sinceR`, `sinceP` fed with
`β̂^{D̂ⱼ}`, `γ̂^{D̂ⱼ}`. The order `≺` interpreted as `<` (§3.1) is a hypothesis. -/
theorem lemma_3_7 {S : Signature} {Γ : Type} [Fintype Γ] (rep : DomainRep Γ) (D : TempStruct S)
(hD : IsAutomatic rep D) (hlt : HasOrderPred D) (I : Interval) (β γ : 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.since I β γ)).length
(∀ j, j ≤ i → ∀ φ ∈ tsub β ++ tsub γ, RegularRel rep (freeList φ).length (P φ j) ∧
P φ j = satSet D φ j) →
(RegularRel rep (n + 1) (sinceR D.τ I B G i) ∧
∀ a : List ℕ, a.length = n → ∀ t : ℕ,
(a ++ [t] ∈ sinceR D.τ I B G i ↔
∃ j, j ≤ i ∧ t = D.τ i - D.τ j ∧ (t : ℕ∞) < I.hi ∧ a ∈ satSet D γ j ∧
∀ k, j < k → k ≤ i → a ∈ satSet D β k)) ∧
(RegularRel rep n (sinceP I (sinceR D.τ I B G i)) ∧
sinceP I (sinceR D.τ I B G i) = satSet D (Formula.since I β γ) i) := by sorry
end MFOTLMon.Monitor
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.