-
Take a Minimal Graph? [Prop721]
-
GraphVertexFunction/GraphEdgeFunction [Isom]
-
Update commented-out lemma\theorems in Minor.lean [priMinor]
-
Sorry-free Menger [Menger]
-
[Prop721] : Prove Prop 7.2.1 from the Diestel book
-
[priMinor] : Expand IspMinor/IsrMinor/IsiMinor
-
[CMinor] : Expand Clique Minor
-
-
[Isom] : Expand Hom/Emb/Isom
-
[Menger] : Prove Menger's theorem
-
[PathEnsemble] Make PathEnsemble.lean usable
-
[IsEdgeSetSep] Develop IsEdgeSetSep
-
- Distance function as a metric
You are tasked to prove a lemma related to contraction of a graph.
The precise lemma is this:
If G is a simple graph and xy is an edge in G, then G/xy, (the graph obtained by contracting the edge xy in G and removing the parallel edges and loops) has the number of edge equal to the number of edges in G minus the common neighbors of x and y.
For this, you would need to create several lemmas before hand. Here is a possible break down of the proof:
- Let
fbe a function on the vertices ofG, then for each vertexvinG.vxMap fhas theincFunequal to the sum ofincFunof all vertices that are mapped tovunderffor each edge inG. As the sum ofincFundefines thedegreeof a vertex, this means that thedegreeofvinG.vxMap fis equal to the sum of thedegreevalues of all vertices that are mapped tovunderf. - Let
ebe an edge inGincident toxandy. (xandymay be the same vertex in the case whereeis a loop) Then,xhasdegreevalue inG \ eequal to thedegreevalue ofxinGminusG.incFun e x. As a corollary, ifeis not a loop,(G \ e).degree x = G.degree x - 1and otherwiseG.degree x -2. Similarly, fory. This should be fairly easy asdegreeis defined as the sum ofincFunvalues of all edges incident to the vertex. - Let
xyis an edge inG. Then the supervertex (which is verticesxandymerged together) inG/xyhas theG.incFunfunction value equal to the sum of theG.incFunvalues ofxandyminus 2. This is because the edge contraction is defined asvxMapthenedgeDelete. By the previous point, theincFunvalue of the supervertex is the sum of theincFunvalues ofxandy. ButedgeDeleteremoves thexyedge we are contracting on. This causes the-2. - Contraction of a single edge on simple graph does not create a loop. For the proof,