Lemma 3.4, p. 15:10 — φ̂^{D̂ᵢ} = φ^(D̄,τ̄,i) once the auxiliary relations of tsub(φ) are right, and φ̂^{D̂ᵢ} is regular once they are regular
ProvedMFOTLMon.Monitor.lemma_3_4Let be a temporal structure with domain whose structures are automatic with respect to a fixed constant domain representation, and fix a time point . Let be an extension of to the extended signature: it interprets the predicates of and the constants as does, and each auxiliary predicate by a relation . Then for every formula :
- if for all , then
- if is regular for all , then is regular.
The lemma is the bridge between the first-order formula the monitor evaluates and the temporal semantics of ; each of Lemmas 3.5–3.8 applies it to the direct subformulas of a temporal operator.
Formalization Note. The relations are an arbitrary family . The page states the lemma for subformulas of ; it is stated here for every formula, which is stronger. Regularity is with respect to the fixed representation rep, and the arity of a satisfying set is the number of free variables.
import Mathlib import Definitions.Def_MFOTLMon_Monitor_Constructions
namespace MFOTLMon.Monitor
/-- Lemma 3.4 (p. 15:10). Let the extended structure `D̂ᵢ` interpret `R` and `C` as `Dᵢ` does and the
auxiliary predicate `p_ψ` by `P ψ`. (i) If `P ψ = ψ^{(D̄,τ̄,i)}` for all `ψ ∈ tsub(φ)`, then
`φ̂^{D̂ᵢ} = φ^{(D̄,τ̄,i)}`. (ii) If every `P ψ`, `ψ ∈ tsub(φ)`, is regular, then `φ̂^{D̂ᵢ}` is regular.
Stated for every formula `φ` (the page says every subformula of `Φ`). -/
theorem lemma_3_4 {S : Signature} {Γ : Type} [Fintype Γ] (rep : DomainRep Γ) (D : TempStruct S)
(hD : IsAutomatic rep D) (i : ℕ) (P : Formula S → Set (List ℕ)) (φ : Formula S) :
((∀ ψ ∈ tsub φ, P ψ = satSet D ψ i) → hatSet (D.rel i) D.const P φ = satSet D φ i) ∧
((∀ ψ ∈ tsub φ, RegularRel rep (freeList ψ).length (P ψ)) →
RegularRel rep (freeList φ).length (hatSet (D.rel i) D.const P φ)) := by sorry
end MFOTLMon.Monitor
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.