Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section V, pp. 8–9 — S edges of type g₄ and 4S + 3T edges of type g₅

Proved
FarhiQAOA.Cubic.edge_type_count

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

3-regular-graphgraph-countingmaxcutp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let GGG be a connected 3-regular graph on n≠4n \neq 4n=4 vertices with SSS crossed squares and TTT isolated triangles. Classify each edge ⟨jk⟩\langle jk\rangle⟨jk⟩ by the number of common neighbours of jjj and kkk, which is its subgraph type in figure (18). Then

#{edges of type g4}=S,#{edges of type g5}=4S+3T,\#\{\text{edges of type } g_4\} = S, \qquad \#\{\text{edges of type } g_5\} = 4S + 3T,#{edges of type g4​}=S,#{edges of type g5​}=4S+3T,

where type g4g_4g4​ means two common neighbours and type g5g_5g5​ means one.

Each crossed square contributes its diagonal as an edge of type g4g_4g4​ and its four sides as edges of type g5g_5g5​, and each isolated triangle contributes its three edges as edges of type g5g_5g5​. Together with the edge count 3n/23n/23n/2 this gives the coefficients of (32).

Formalization Note Edges are counted once, as ordered pairs u<vu<vu<v. The hypotheses "connected" and n≠4n\neq 4n=4 exclude K4K_4K4​, the paper's special case ("the only case where the analysis below does not apply", p. 8): in K4K_4K4​ all six edges have two common neighbours while S=T=0S=T=0S=T=0.

Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Adiabatic
import Definitions.Def_FarhiQAOA_Cubic_Types
Formal statement
namespace FarhiQAOA.Cubic

open QAlgorithms

/-- Farhi–Goldstone–Gutmann, Section V, pp. 8–9: in a connected 3-regular graph other than `K₄`
(`n ≠ 4`), the edges of subgraph type `g₄` (endpoints with 2 common neighbours) number `S`, and the
edges of type `g₅` (endpoints with 1 common neighbour) number `4S + 3T`. Edges are counted once,
as ordered pairs `u < v`. -/
theorem edge_type_count {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj]
    (h3 : G.IsRegularOfDegree 3) (hconn : G.Connected) (hn4 : n ≠ 4) :
    ((Finset.univ ×ˢ Finset.univ).filter fun e : Fin n × Fin n =>
        e.1 < e.2 ∧ G.Adj e.1 e.2 ∧ commonNbrCount G e.1 e.2 = 2).card = S G ∧
      ((Finset.univ ×ˢ Finset.univ).filter fun e : Fin n × Fin n =>
        e.1 < e.2 ∧ G.Adj e.1 e.2 ∧ commonNbrCount G e.1 e.2 = 1).card = 4 * S G + 3 * T G := by sorry

end FarhiQAOA.Cubic
Source
Farhi, Goldstone, Gutmann, A Quantum Approximate Optimization Algorithm, arXiv:1411.4028v1, pp. 8–9, Section V, between (31) and (32)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

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