Conversation
| Set.MapsTo f (components (deleteEdge G e)) | ||
| ((components G).disjSum {()}) ∧ | ||
| Set.InjOn f (components (deleteEdge G e)) := by | ||
| classical |
There was a problem hiding this comment.
Why this line is needed?
|
|
||
| /-- The subgraph induced by a finite vertex set. -/ | ||
| @[simp, grind] noncomputable def inducedSubgraph (G : SimpleGraph α) (C : Finset α) : | ||
| SimpleGraph α := by classical |
| /-! ## Induced subgraphs and component-wise counting identities -/ | ||
|
|
||
| /-- The subgraph induced by a finite vertex set. -/ | ||
| @[simp, grind] noncomputable def inducedSubgraph (G : SimpleGraph α) (C : Finset α) : |
There was a problem hiding this comment.
Can we avoid noncomputability? I want it to be computable by default.
|
|
||
| /- `componentOf G v` is the connected component containing `v`. -/ | ||
| /-- The connected component containing `v`. -/ | ||
| @[simp, grind] noncomputable def componentOf (G : SimpleGraph α) (v : Vertex G) : Finset α := by |
There was a problem hiding this comment.
Can we avoid noncomputable?
| Reachable G u v → Reachable H u v) | ||
| (hNum : numComponents G = numComponents H): | ||
| ∀ u v : α, | ||
| u ∈ G.vertexSet → v ∈ G.vertexSet → Reachable H u v → Reachable G u v := by classical |
There was a problem hiding this comment.
| u ∈ G.vertexSet → v ∈ G.vertexSet → Reachable H u v → Reachable G u v := by classical | |
| ∀ u ∈ V(G), ∀ v ∈ V(G), H.Reachable u v → G.Reachable u v := by classical |
Try to use notation more. My general comment is that try to make sure that the statement looks like English.
There was a problem hiding this comment.
This comment applies broadly
|
Does this relate to the previous merge? |
|
I may have a construction that could be relevant to this branch, on a different one I worked on and forgot to complete. On the file ParentTree.Basic I have the following: structure ParentTree (α : Type*) where
vertexSet : Finset α
parent : α -> α
level : α -> ℕ
incidence : ∀ v ∈ vertexSet, parent v ∈ vertexSet
ordering : ∀ v ∈ vertexSet, level v > 0 → level (parent v) < level v
root : ∀ v ∈ vertexSet, level v = 0 ↔ v = parent vLet me know if you want to coordinate so I can maybe merge those changes into this branch in case it fits |
Add core graph-walk infrastructure and tree-related results for undirected simple graphs.
Split core walk definitions into
VertexSeqandWalkAdd helper lemmas for walk edge sets, vertex sequences, and walks in graphs
Add
deleteEdgefor simple graphsAdd component helper lemmas
Add bridge definitions and bridge-related lemmas
Add tree/forest definitions and tree's equivalence theorems