Skip to content

VertexSeq, SimpleWalk/Path/Cycle, girth related stuff - #13

Open
yzll0 wants to merge 3 commits into
sorrachai:experimental/foundationsfrom
yzll0:codex/graphlib-structures-refactor
Open

VertexSeq, SimpleWalk/Path/Cycle, girth related stuff#13
yzll0 wants to merge 3 commits into
sorrachai:experimental/foundationsfrom
yzll0:codex/graphlib-structures-refactor

Conversation

@yzll0

@yzll0 yzll0 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Add GraphLib/Graph/Adjacency.lean; split GraphLib/Theory/Structures/VertexSeq.lean into many subfiles.
SimpleWalk.lean, SimplePath.lean, SimpleCycle.lean, InSimpleGraph.lean, InSimpleDiGraph.lean

@BasilRohner BasilRohner self-assigned this Jun 30, 2026
/-! ## reroot -/

/-- Re-root a simple cycle at any vertex on it. -/
def reroot [DecidableEq α] (c : SimpleCycle α) (u : α) (hu : u ∈ vertices c) :

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The definition looks super complicated. Is there a way to simplify or split the subclaims outside?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because the proof that rerooting a cycle yields a cycle is long. I'll separate it as a lemma.

@yzll0 yzll0 changed the title Refactor vertex sequence structures VertexSeq, SimpleWalk/Path/Cycle, girth related stufyy Jul 13, 2026
@yzll0 yzll0 changed the title VertexSeq, SimpleWalk/Path/Cycle, girth related stufyy VertexSeq, SimpleWalk/Path/Cycle, girth related stuff Jul 13, 2026
@yzll0
yzll0 force-pushed the codex/graphlib-structures-refactor branch from 251cbbe to c58b09f Compare July 13, 2026 15:40
@sorrachai

Copy link
Copy Markdown
Owner

Looks good to me overall. Any other concerns?

@sorrachai

Copy link
Copy Markdown
Owner

@BasilRohner I would like to merge this one soon. Do you have more comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants