Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

R03 P3-factor definition module: r03_defs_92a06852f6_v6_ProtectedTheta

Definition
r03_defs_92a06852f6_v6_ProtectedTheta

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

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

This module packages source-faithful finite-graph, matching, port, or bookkeeping structures used by reusable auxiliary theorems in the cubic P3-partition formalization. It contains definitions and structural interfaces only; it does not assert closure of the open root problem.

Formalization Note The code was extracted from the cited candidate artifact and its exact digest is recorded in the campaign ledger.

Definition code
import Mathlib.Data.Fin.VecNotation

/- Candidate-only half-edge calculations, not a graph-level root theorem.
   Codes: 0 unused, 1 incoming, 2 outgoing. A directed cycle adds 1 at
   the entering half-edge and 2 at the leaving one. A theta adds the
   same nonzero code on all three half-edges at either branch. -/
namespace R03ProtectedThetaV6
set_option maxRecDepth 10000
set_option maxHeartbeats 1000000

def ins (a b c : Fin 3) : Nat :=
  (if a = 1 then 1 else 0) + (if b = 1 then 1 else 0) + (if c = 1 then 1 else 0)
def outs (a b c : Fin 3) : Nat :=
  (if a = 2 then 1 else 0) + (if b = 2 then 1 else 0) + (if c = 2 then 1 else 0)
def bad (a b c : Fin 3) : Nat :=
  if ins a b c = 1 ∧ outs a b c = 2 then 1 else 0

end R03ProtectedThetaV6
Source
VibeMathing candidate artifact: research/artifacts/candidates/r03/v6_ProtectedTheta.lean; source SHA-256 9a5f89a023459e0ec3056acfce8208a237ead9b6fb5790cbd3a5261d6f71635f; ProblemContract problem:opg-46613-p3-partition; candidate-only formalization.

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