Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section III, p. 385 — the COSET WEIGHTS instance (B, 11⋯1, |T|) is a yes-instance iff the triples admit a matching

Proved
IntractableCoding.Weights.coset_reduction_iff

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

decodingnp-completenessp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1three-dimensional-matching

Let U⊆T×T×TU\subseteq T\times T\times TU⊆T×T×T with ∣T∣=n|T|=n∣T∣=n, and let BBB be its triple incidence matrix. Then UUU admits a matching if and only if the COSET WEIGHTS instance (A,y,w)=(B, 11⋯1, n)(A,y,w)=(B,\ 11\cdots1,\ n)(A,y,w)=(B, 11⋯1, n) is a yes-instance:

U admits a matching  ⟺  ∃x∈GF(2)∣U∣, ∣x∣≤n and xB=11⋯1.U\text{ admits a matching}\iff\exists x\in\mathrm{GF}(2)^{|U|},\ |x|\le n\ \text{and}\ xB=11\cdots1.U admits a matching⟺∃x∈GF(2)∣U∣, ∣x∣≤n and xB=11⋯1.

Together with the polynomial-time computability of the map U↦(B,11⋯1,n)U\mapsto(B,11\cdots1,n)U↦(B,11⋯1,n) this is the reduction of THREE-DIMENSIONAL MATCHING to COSET WEIGHTS. Note that COSET WEIGHTS asks for weight at most nnn while a matching uses exactly nnn rows.

Differences from the source:

  • encoding: input a set U ⊆ T × T × T of triples over a finite set T → ThreeDMInstance = ⟨n, edge⟩ with T = Fin n and U = {(a,b,c) | edge a b c}; the triples listed lexicographically, the incidence columns in three blocks a, n + b, 2n + c; reason: any finite T is in bijection with Fin |T|; the row and column orders change no weight and no instance's answer
  • encoding: binary matrix A, row vector x, xA computed mod 2 → Matrix (Fin m) (Fin n) (ZMod 2), Matrix.vecMul x A, Hamming weight hammingNorm; reason: GF(2) = ZMod 2; xA with x indexed by the rows is Matrix.vecMul
Preamble
import Mathlib
import Definitions.Def_IntractableCoding_Weights_Reductions
Formal statement
namespace IntractableCoding.Weights

open PricingWithTips

/-- The COSET WEIGHTS instance `(B, 11⋯1, |T|)` built from a 3DM instance is a yes-instance
iff the 3DM instance has a matching. -/
theorem coset_reduction_iff (I : ThreeDMInstance) :
    ThreeDMYes I ↔ CosetWeightsYes (cosetOf3DM I) := by sorry

end IntractableCoding.Weights
Source
Berlekamp, McEliece & van Tilborg, On the Inherent Intractability of Certain Coding Problems, IEEE Trans. Inform. Theory IT-24(3), 1978, https://doi.org/10.1109/TIT.1978.1055873, p. 385, Section III, reduction of THREE-DIMENSIONAL MATCHING to COSET WEIGHTS
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 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