A Boolean equality test gives the same recovered sign bit
ProvedCouret.STROBO2TORS.recoh_sign_bit_from_bool_eqcouret-programmecouret-unification-20261108
Let and be Boolean, with exactly when . Define the Boolean sign bit as zero for true and one for false, and the recovered comparison bit as zero when and one otherwise. Then
There is no nonzero or sign-compatibility hypothesis.
Preamble
import Aesop import Definitions.Def_Couret_RecohExactSignBackend_8d2941f5c2c9 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.RingTheory.Polynomial.Cyclotomic.Roots import Mathlib.Tactic 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 Definitions.Def_Couret_RecohFastDecoder_5bb89f11acce import Definitions.Def_Couret_RecohCyclotomicNormalization_6797485e207c import Definitions.Def_Couret_RecohSparseObservation_6dd9be0e8eb2 set_option autoImplicit false /-! Computable comparison bits and their refinement of complex sign recovery. The comparison booleans are supplied by an exact arithmetic backend. Only their correctness proposition mentions complex numbers. The recovered coordinate vector and transport through a supplied coordinate equivalence are ordinary Lean definitions, with no complex equality decision at runtime. -/ namespace Couret.STROBO2TORS
Formal statement
theorem recoh_sign_bit_from_bool_eq (base obs : ℂ) (same : Bool)
(h : same = true ↔ obs = base) :
recohSignBitFromBool same = recohRecoveredSignBit base obs := by sorry
variable {G : Type*} [AddCommGroup G] {r : ℕ}
local notation "H₂" => recohTorsionSubgroup (G := G) 2
variable [DecidableEq G]
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/RecohExactSignBackend.lean, lines 21–25; source file SHA-256 f99e3408f62032866dd7332e37aea90148e1e51601887993b2026a97b35d79dd; theorem Couret.STROBO2TORS.recoh_sign_bit_from_bool_eq