Sign-based fast decoding equals exact decoding
ProvedCouret.STROBO2TORS.recoh_sign_fast_decoder_eq_exactcouret-programmecouret-unification-20261108
Let be an abelian group, , the ordered pair-sum count of a finite support, and . Assume finite. Let contain the nonzero support of observed square , let be a sound and complete partial halving solver, and let for an arbitrary bank , . Select indices and coordinates so that . Assume each selected reading is nonzero on every triple. Use those selected readings and for sign recovery. Then
The final exact observation filter remains part of the decoder.
Preamble
import Aesop
import Definitions.Def_Couret_RecohFastDecoder_5bb89f11acce
import Lean.Elab.Tactic.Omega
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.Field.ZMod
import Mathlib.Algebra.Group.AddChar
import Mathlib.Algebra.Module.ZMod
import Mathlib.Analysis.Complex.Basic
import Mathlib.Analysis.SpecialFunctions.Complex.CircleAddChar
import Mathlib.Data.Complex.Basic
import Mathlib.Data.Finset.Card
import Mathlib.Data.Finset.Powerset
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Card
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib.Data.ZMod.Basic
import Mathlib.FieldTheory.Finiteness
import Mathlib.GroupTheory.FiniteAbelian.Duality
import Mathlib.LinearAlgebra.Dimension.Constructions
import Mathlib.LinearAlgebra.Dimension.Finite
import Mathlib.LinearAlgebra.Dual.Lemmas
import Mathlib.LinearAlgebra.LinearIndependent.Lemmas
import Mathlib.Tactic.Abel
import Mathlib.Tactic.Choose
import Mathlib.Tactic.FinCases
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Tauto
import Theorems.Thm_Couret_STROBO2TORS_recoh_fast_candidates_complete
import Theorems.Thm_Couret_STROBO2TORS_recoh_mem_exact_decoder_iff
import Theorems.Thm_Couret_STROBO2TORS_recoh_sign_recovery_spec
import Definitions.Def_Couret_RecohDecoderBounds_60ec29457baa
import Definitions.Def_Couret_RecohCyclicHalves_383c4510168a
import Definitions.Def_Couret_RecohSignRecovery_71a8a4a1ce8a
set_option autoImplicit false
/-!
One-representative RECOH decoder on an explicitly supplied finite support.
The construction visits only the three-element subsets of U. A supplied
doubling solver chooses one half-sum for each feasible edge set, and a
translation-recovery function turns the corresponding representative into
one candidate. The final filter uses the complete labelled observation.
No enumeration of the ambient group or its two-torsion subgroup occurs in
these definitions. Their construction needs no Fintype instance on G.
The refinement theorem proves equality with recohExactDecoder, provided U
covers the observed square support and the half-sum and recovery contracts
hold. Sign recovery supplies the recovery contract for binary coordinates
inside any larger labelled character bank. Complex equality remains
noncomputable here: this is a Lean refinement of the mathematical decoder,
not a verification of the external Python parser or arithmetic runtime.
-/
namespace Couret.STROBO2TORS
open scoped BigOperators
variable {G : Type*} [AddCommGroup G] [DecidableEq G]
section FiniteRefinement
variable [Fintype G]
end FiniteRefinement
variable {r : ℕ}
local notation "H₂" => recohTorsionSubgroup (G := G) 2
Formal statement
theorem recoh_sign_fast_decoder_eq_exact [Fintype G] {I : Type*}
(U : Finset G) (half : G → Option G)
(bank : I → AddChar G ℂ) (obs : (G → ℕ) × (I → ℂ))
(index : Fin r → I) (e : H₂ ≃+ (Fin r → ZMod 2))
(hhalf : RecohHalfSolverSpec half)
(hcoord : ∀ (u : H₂) (i : Fin r),
bank (index i) (u : G) = if e u i = 0 then 1 else -1)
(hnonzero : ∀ i (B : Finset G), B.card = 3 →
recohSupportProbe (bank (index i)) B ≠ 0)
(hU : recohSquareSupport obs.1 ⊆ U) :
recohFastDecoder U half
(recohSignRecoverSupport (fun i => bank (index i)) e (fun i => obs.2 (index i)))
bank obs = recohExactDecoder bank obs := by sorry
end Couret.STROBO2TORS
Source
Alexandre Couret, Couret — Additive reconstruction: STROBO-4, singleton collisions and RECOH formal proof artifacts, https://zenodo.org/records/23980513; archive COURET_MATHEMATIQUES_20261105.zip, SHA-256 19a3b59aee930df74cab79c27b29e014843bd17179a26fef1261ed6b5a651ab7; file RECOH/lean/RecohFastDecoder.lean, lines 305–321; source file SHA-256 d84bc4908e0c9ab4ae54de4f0901e08828a787fa98a3987c63969ea57c85e8da; theorem Couret.STROBO2TORS.recoh_sign_fast_decoder_eq_exact