Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

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

Proved
MFOTLMon.Monitor.lemma_3_4

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

automatic-structuresmfotlp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1temporal-logic

Let (Dˉ,τˉ)(\bar{\mathcal D},\bar\tau)(Dˉ,τˉ) be a temporal structure with domain N\mathbb NN whose structures are automatic with respect to a fixed constant domain representation, and fix a time point iii. Let D^i\hat{\mathcal D}_iD^i​ be an extension of Di\mathcal D_iDi​ to the extended signature: it interprets the predicates of RRR and the constants as Di\mathcal D_iDi​ does, and each auxiliary predicate pψp_\psipψ​ by a relation pψD^ip_\psi^{\hat{\mathcal D}_i}pψD^i​​. Then for every formula φ\varphiφ:

  1. if pψD^i=ψ(Dˉ,τˉ,i)p_\psi^{\hat{\mathcal D}_i}=\psi^{(\bar{\mathcal D},\bar\tau,i)}pψD^i​​=ψ(Dˉ,τˉ,i) for all ψ∈tsub(φ)\psi\in\mathit{tsub}(\varphi)ψ∈tsub(φ), then
φ^D^i=φ(Dˉ,τˉ,i);\hat\varphi^{\hat{\mathcal D}_i}=\varphi^{(\bar{\mathcal D},\bar\tau,i)};φ^​D^i​=φ(Dˉ,τˉ,i);
  1. if pψD^ip_\psi^{\hat{\mathcal D}_i}pψD^i​​ is regular for all ψ∈tsub(φ)\psi\in\mathit{tsub}(\varphi)ψ∈tsub(φ), then φ^D^i\hat\varphi^{\hat{\mathcal D}_i}φ^​D^i​ is regular.

The lemma is the bridge between the first-order formula Φ^\hat\PhiΦ^ the monitor evaluates and the temporal semantics of Φ\PhiΦ; each of Lemmas 3.5–3.8 applies it to the direct subformulas of a temporal operator.

Formalization Note. The relations pψD^ip_\psi^{\hat{\mathcal D}_i}pψD^i​​ are an arbitrary family PPP. The page states the lemma for subformulas of Φ\PhiΦ; 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.

Preamble
import Mathlib
import Definitions.Def_MFOTLMon_Monitor_Constructions
Formal statement
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
Source
Basin, Klaedtke, Müller, Zălinescu, Monitoring metric first-order temporal properties, J. ACM 62(2), Article 15 (2015), p. 15:10, Lemma 3.4
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me