Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.5, p. 15:10 — previous operator: p_α^{D̂₀} = α^(D̄,τ̄,0) = ∅, and p_α^{D̂ᵢ} is regular and equals α^(D̄,τ̄,i) for i > 0

Proved
MFOTLMon.Monitor.lemma_3_5

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

mfotlmonitoringp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1temporal-logic

Let α=∙Iβ\alpha=\bullet_I\betaα=∙I​β and let pαD^ip_\alpha^{\hat{\mathcal D}_i}pαD^i​​ be given by the construction of §3.4.1 from β^D^i−1\hat\beta^{\hat{\mathcal D}_{i-1}}β^​D^i−1​, where each D^j\hat{\mathcal D}_jD^j​ interprets the predicates of RRR as Dj\mathcal D_jDj​ does and each pφp_\varphipφ​ by a relation pφD^jp_\varphi^{\hat{\mathcal D}_j}pφD^j​​. Then:

  1. pαD^0p_\alpha^{\hat{\mathcal D}_0}pαD^0​​ is regular and pαD^0=α(Dˉ,τˉ,0)=∅p_\alpha^{\hat{\mathcal D}_0}=\alpha^{(\bar{\mathcal D},\bar\tau,0)}=\emptysetpαD^0​​=α(Dˉ,τˉ,0)=∅;
  2. for i>0i>0i>0, if the relations pφD^i−1p_\varphi^{\hat{\mathcal D}_{i-1}}pφD^i−1​​ are regular and pφD^i−1=φ(Dˉ,τˉ,i−1)p_\varphi^{\hat{\mathcal D}_{i-1}}=\varphi^{(\bar{\mathcal D},\bar\tau,i-1)}pφD^i−1​​=φ(Dˉ,τˉ,i−1) for all φ∈tsub(β)\varphi\in\mathit{tsub}(\beta)φ∈tsub(β), then
pαD^i is regular and pαD^i=α(Dˉ,τˉ,i).p_\alpha^{\hat{\mathcal D}_i}\text{ is regular and } p_\alpha^{\hat{\mathcal D}_i}=\alpha^{(\bar{\mathcal D},\bar\tau,i)}.pαD^i​​ is regular and pαD^i​​=α(Dˉ,τˉ,i).

This is the correctness of the monitor's construction for the previous operator.

Formalization Note. The auxiliary relations are a family P(φ,j)P(\varphi,j)P(φ,j); β^D^j\hat\beta^{\hat{\mathcal D}_j}β^​D^j​ is hatSet (D.rel j) D.const (P · j) β. The structures are automatic with respect to the fixed representation (hypothesis hD).

Preamble
import Mathlib
import Definitions.Def_MFOTLMon_Monitor_Constructions
Formal statement
namespace MFOTLMon.Monitor

/-- Lemma 3.5 (p. 15:10), `α = ●_I β`. The relation `p_α^{D̂₀}` is regular and
`p_α^{D̂₀} = α^{(D̄,τ̄,0)} = ∅`. For `i > 0`, if the relations `p_φ^{D̂_{i−1}}` (here `P φ (i − 1)`)
are regular and equal `φ^{(D̄,τ̄,i−1)}` for all `φ ∈ tsub(β)`, then `p_α^{D̂ᵢ}` is regular and
`p_α^{D̂ᵢ} = α^{(D̄,τ̄,i)}`. Here `p_α^{D̂ᵢ} = prevP τ I i (β̂^{D̂_{i−1}})` (§3.4.1). -/
theorem lemma_3_5 {S : Signature} {Γ : Type} [Fintype Γ] (rep : DomainRep Γ) (D : TempStruct S)
    (hD : IsAutomatic rep D) (I : Interval) (β : Formula S)
    (P : Formula S → ℕ → Set (List ℕ)) :
    let B : ℕ → Set (List ℕ) := fun j => hatSet (D.rel j) D.const (fun ψ => P ψ j) β
    (RegularRel rep (freeList (Formula.prev I β)).length (prevP D.τ I 0 (B 0)) ∧
      prevP D.τ I 0 (B 0) = satSet D (Formula.prev I β) 0 ∧
      satSet D (Formula.prev I β) 0 = ∅) ∧
    ∀ i, 0 < i →
      (∀ φ ∈ tsub β, RegularRel rep (freeList φ).length (P φ (i - 1)) ∧
        P φ (i - 1) = satSet D φ (i - 1)) →
      RegularRel rep (freeList (Formula.prev I β)).length (prevP D.τ I i (B (i - 1))) ∧
        prevP D.τ I i (B (i - 1)) = satSet D (Formula.prev I β) i := 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.5 (construction of §3.4.1)
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