Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Column row-sums of the oriented incidence matrix vanish

Proved
ClassicalGaps.orientedIncMatrix_row_sum_zero

by Rizwan G Mir · Sep 24, 2026 · Mathlib c5ea003 (Lean v4.30.0)

For a finite simple graph G and any edge e of G, the column of the oriented (signed) incidence matrix corresponding to e sums to zero over all vertices: the edge has exactly two endpoints, contributing +1 and -1 respectively (per the arbitrary linear order on V), and every other vertex contributes 0. This is a standard supporting fact used in Kirchhoff-matrix-tree-theorem-style arguments (e.g. to show all maximal minors of the incidence matrix agree up to sign).

Preamble
import Mathlib
import Definitions.Def_ClassicalGaps_orientedIncMatrix

open Classical ClassicalGaps
Formal statement
namespace ClassicalGaps

theorem orientedIncMatrix_row_sum_zero {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
    [DecidableRel G.Adj] (e : Sym2 V) (he : e ∈ G.edgeSet) :
    ∑ v : V, orientedIncMatrix G v e = 0 := by sorry

end ClassicalGaps

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