Skip to content

refactor: make graphiso's placement and sparse isautom lemmas public - #11049

Open
kim-em wants to merge 4 commits into
mainfrom
graphiso-public-lemmas
Open

kim-em wants to merge 4 commits into
mainfrom
graphiso-public-lemmas

Conversation

@kim-em

@kim-em kim-em commented Nov 30, 2026

Copy link
Copy Markdown
Owner

This PR makes HexGraphIso's counting-sort placement lemmas and the sparse isautom_rows characterisation public so downstream proofs can use them instead of copying them. Statements and proofs are unchanged; only private is removed, and the definitions involved gain @[expose] (matching the other definitions in these files) so importers can unfold them.

Now public in HexGraphIso/Nauty/Search/Refine.lean (namespace Hex.GraphIso.Nauty): the definitions baseOff, placed, dest, destOff, grpAt and the theorems placed_zero, placed_succ, baseOff_eq_size, baseOff_eq_countP, flatMap_grpAt_length, ntcPlace_eq_fold, foldl_set!_mem, destOff_lt, destOff_inj, destOff_surj, ntcPlace_eq_writeSegment.

Now public in HexGraphIso/Nauty/Sparse/Autom.lean (namespace Hex.GraphIso.Nauty.Sparse): the definitions Image, RowOk and the theorem isautom_rows.

The other helpers stay private because they are used only inside these proofs.

🤖 Prepared with Claude Code

Kim Morrison and others added 4 commits November 30, 2026 05:45
Expose the counting-sort placement definitions and lemmas in
`HexGraphIso/Nauty/Search/Refine.lean` and the `isautom_rows`
characterisation in `HexGraphIso/Nauty/Sparse/Autom.lean`, so
downstream proofs can use them instead of copying them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant