Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

R03 candidate definition: r03 defs ff1c84bf6a R03CubeCenter v1

Definition
r03_defs_ff1c84bf6a_R03CubeCenter_v1

by hao jia · Sep 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

graph-theoryopg-46613p3-factorsource-faithful-candidate

This is a source-faithful definition module supporting a conditional formalization of the cubic P3-partition problem. It contains data structures and predicates used by separately published theorem candidates; it does not assert that the open root problem is solved.

Definition code
import Mathlib.Data.Fin.VecNotation

/- Candidate-only finite cube-center obstruction and scalar bookkeeping.
   The arbitrary-graph factor projector and cycle/fiber identity are not
   formalized in this source. -/
set_option Elab.async false
set_option maxRecDepth 20000
set_option maxHeartbeats 10000000
set_option synthInstance.maxSize 100000
namespace R03CubeCenter

def chosen (m : Fin 128) (v : Fin 7) : Bool := m.val.testBit v.val

def bit (m : Fin 128) (v : Fin 7) : Nat := if chosen m v then 1 else 0

def cardinality (m : Fin 128) : Nat :=
  bit m 0 + bit m 1 + bit m 2 + bit m 3 + bit m 4 + bit m 5 + bit m 6

def portCount (m : Fin 128) : Nat := bit m 0 + bit m 1 + bit m 3

def adjacent (u v : Fin 7) : Bool :=
  let d := Nat.xor (u.val+1) (v.val+1)
  d==1 || d==2 || d==4

def Dominating (m : Fin 128) : Prop :=
  ∀ v : Fin 7, chosen m v=false →
    ∃ u : Fin 7, chosen m u=true ∧ adjacent u v=true

def HasCenterEdge (m : Fin 128) : Prop :=
  ∃ u v : Fin 7, chosen m u=true ∧ chosen m v=true ∧ adjacent u v=true

end R03CubeCenter
Source
VibeMathing candidate definition artifact: Definitions/Def_r03_defs_ff1c84bf6a_R03CubeCenter_v1.lean; candidate-only formalization for ProblemContract problem:opg-46613-p3-partition.

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