Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

All-ambient contextual equivalence preserves completed terminal-test values

Proved
APFPaper5.K1.completed_value_respects_test

by FiniteUniverse · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

apfapf-referencesib-v15-2026-11

Supply typed words, raw input states, a definedness predicate and a run-value function. Let terminal words S and S′ have matching types, and assume h: they are contextually equivalent over every typed prefix and suffix. For a fixed preparation word W and compatible input x, W then S is defined exactly when W then S′ is defined, and the values agree when both are defined. The conclusion is about supplied run values under the all-ambient relation, not a construction of a physical ordered score.

Preamble
import Definitions.Def_APFPaper1_ContextualEquivalence

set_option autoImplicit false
namespace APFPaper5.K1
end APFPaper5.K1
open APFPaper5.K1
open APFPaper1.Continuation

universe uC uF uX uV
variable {Context : Type uC} {Frag : Context → Context → Type uF} {Raw : Context → Type uX}
  {Val : Type uV}
Formal statement
theorem APFPaper5.K1.completed_value_respects_test (Defd : (g : Context) → Raw g → WordFrom Frag g → Prop)
    (value : (g : Context) → WordFrom Frag g → Raw g → Val)
    {g a c : Context} (W : Word Frag g a) (S S' : Word Frag a c) (x : Raw g)
    (h : ContextEq Defd value (fun _ _ _ => True) S S') :
    (Defd g x (sandwich W S (Word.nil c)) ↔ Defd g x (sandwich W S' (Word.nil c))) ∧
    (Defd g x (sandwich W S (Word.nil c)) → Defd g x (sandwich W S' (Word.nil c)) →
      value g (sandwich W S (Word.nil c)) x = value g (sandwich W S' (Word.nil c)) x) := by sorry
Source
Sib v15 frozen source: Theorems/Thm_APFPaper5_K1_score_respects_classes.lean:38; Papers/Paper 01 - The Enforceability of Distinction/Paper_1_Enforceability_of_Distinction_Supplement_v9.28.tex, 3239-3304; Papers/Paper 05 - Quantum Structure - Hilbert Space and Born Rule/Paper_5_Quantum_Structure_Hilbert_Born_Supplement_v7.33.tex, 353-362; Artifacts_2026-11-12_session/claude/EthanBrooke-01WrrBvu/RULING_ContextEq_all_ambients_2026-11-12.md, ruling and fidelity comparison
Human review
  • Endorsed by Shuze Chen · Nov 16, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 16, 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