Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Ranks of Weighted Paths and Cycles

Abstract

Ranks of Weighted Paths and Cycles

Let V be any finite vertex type and K any characteristic-two field. All matrices retain their actual entries; symmetry, zero diagonal and exact graph support express an alternating matrix. Equivalences carry arbitrary vertex labels. A path has every size m, including m=1 and m=2. An odd cycle has every odd m>=3. The graph evenCycleGraph(n) has two copies of Fin(n+2), with edges L(i)-R(i) and L(i)-R(sigma(i)); its two displayed edge families are the two alternating perfect matchings, each covering every vertex exactly once. WeightedCycleWalk.parityIso identifies it with the ordinary cycle on 2(n+2) vertices, hence this covers every even length at least four.

Theorem 1.1 (Every weighted path).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Graph/Walks/WeightedPathCycleRank.rank_path (✓ std3). ∎

Source. Repository-derived.

Commentary.

If the support is the path on m vertices, rank(A)=2 floor(m/2). NoEvenCycleRank.rank_eq_twice_maximum_matching is applied directly. Pairing consecutive vertices constructs a matching of floor(m/2) edges, and the vertex count bounds every matching above by this number. No restriction is imposed on the nonzero edge weights.

Theorem 1.2 (Every weighted odd cycle).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Graph/Walks/WeightedPathCycleRank.rank_odd_cycle (✓ std3). ∎

Source. Repository-derived.

Commentary.

For odd m>=3 and exact cycle support, rank(A)=m-1. Connectedness and degree two imply that every simple cycle spans all vertices and therefore has the same odd length m. The same no-even-cycle theorem applies. Consecutive pairing still constructs a maximum matching, with (m-1)/2 edges.

Theorem 1.3 (Every weighted even cycle).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Graph/Walks/WeightedPathCycleRank.rank_even_cycle (✓ std3). ∎

Source. Repository-derived.

Commentary.

For an actual graph isomorphism from evenCycleGraph(n) to the support, take a(i)=A(L(i),R(i)) and b(i)=A(L(i),R(sigma(i))). Exact support makes these nonzero and makes all same-class entries zero. Symmetry identifies the other off-diagonal block with the transpose. Reindexing the actual matrix and applying cyclic_bipartite_rank gives rank 2n+2 when product(a)=product(b), and 2(n+2) otherwise. Thus at length L=2(n+2), the two possibilities are L-2 and L.

Theorem 1.4 (The Actual Binary Adjacency Matrix).

Proof. Machine-checked in Lean as D5/S3/Combinatorics/Graph/Walks/WeightedPathCycleRank.rank_even_adjacency (✓ std3). ∎

Source. Repository-derived.

Commentary.

For every finite vertex type and every actual graph isomorphism from evenCycleGraph(n) to G, G.adjMatrix(ZMod(2)) has rank 2n+2. Each of its entries on the two actual alternating edge families is one. This directly applies rank_even_cycle, and the stabilizer proof consumes it after proving that the actual same-component mask restriction equals this actual adjacency matrix.

References