Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.6 (Operational correspondence): ObsGM⋄(Fi^ t⃗,w,a)  ⟺  T⋄(m,i,R)(w)=a\mathrm{Obs}_{G^\diamond_M}(F_{\hat i}\,\vec t,w,a)\iff T^\diamond(m,i,R)(w)=aObsGM⋄​​(Fi^​t,w,a)⟺T⋄(m,i,R)(w)=a

Proved
TreeEquivalenceHORS.Equivalence.lemma_5_6

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

compilershigher-order-recursion-schemesp2o-batch-stoc27ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let t⃗\vec tt be a closed argument tuple with Regm(t⃗;R)\mathrm{Reg}_m(\vec t;R)Regm​(t;R). Then for every natural number iii (normalized to i^\hat ii^), every address w∈N∗w\in\mathbb N^*w∈N∗ and every terminal a∈Σ0a\in\Sigma_0a∈Σ0​,

ObsGM⋄(Fi^ t⃗,w,a)  ⟺  T⋄(m,i,R)(w)=a.\mathrm{Obs}_{G^\diamond_M}(F_{\hat i}\,\vec t,w,a)\iff T^\diamond(m,i,R)(w)=a.ObsGM⋄​​(Fi^​t,w,a)⟺T⋄(m,i,R)(w)=a.

This turns the head-rewriting behaviour of the compiled scheme into the explicit output trees of Equation (23), including padding and absent addresses.

Differences from the source:

  • encoding: V_o = partial maps ℕ* ⇀ Σ₀ with † for undefined → Val .o = List ℕ → Option (Fin 3), none = †, Fin 3 indexing z, a, b; reason: same set of partial maps
Preamble
import Mathlib
import Definitions.Def_TreeEquivalenceHORS_Equivalence_Compiler
Formal statement
namespace TreeEquivalenceHORS.Equivalence

/-- **Lemma 5.6 (Operational correspondence)** (printed p. 19 / PDF p. 21). If `Reg_m(t⃗; R)`, then for
every address `w` and terminal `a` of `Σ₀`, `Obs_{G^⋄_M}(F_î t⃗, w, a) ⟺ T^⋄(m, i, R)(w) = a`,
for every natural `i` (normalized to `î`). -/
theorem lemma_5_6 (side : Side) (M : Machine) (m i : ℕ) (t : StateArgs) (R : PairState)
    (hR : Reg (compile side M) m t R) (w : List ℕ) (a : Fin 3) :
    (compile side M).Obs (callF M i t.toList) w a.val ↔ Tmap side M m i R w = some a := by sorry

end TreeEquivalenceHORS.Equivalence
Source
Mingkun Xiao, Yixuan Sun, Tree Equivalence of Higher-Order Recursion Schemes Is Undecidable, STOC 2027 submission #421 (October 2026), source.pdf SHA-256 e875d09ced029e3f5cb114abba049e4a2b1bdaa9b064c98b0d71f2ec7451c7af, Lemma 5.6, printed p. 19 / PDF p. 21
Human review
  • Endorsed by Shuze Chen · Nov 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Nov 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