Skip to content

Update Loom naming#1

Open
MantasBaksys wants to merge 9 commits intomasterfrom
mantas-loom-naming
Open

Update Loom naming#1
MantasBaksys wants to merge 9 commits intomasterfrom
mantas-loom-naming

Conversation

@MantasBaksys
Copy link
Copy Markdown
Collaborator

@MantasBaksys MantasBaksys commented Dec 16, 2025

This PR updates naming conventions for Loom.

Changes in action documented in a test file here. Would be amazing to have 1 other pair of eyes to verify my meta-programming :)

…es, decreasing, and done_with clauses

- Added optional naming syntax for all verification clauses (name: condition)
- Implemented loom_rename tactic to process named goals with semantic suffixes (.entry, .loop, .exit)
- Updated loom_split to extract names from WithName expressions
- Added andListWithNames helper to handle named ensures/requires
- Created NamedInvariants.lean as documentation and example
- All naming is optional and backward compatible

This comment was marked as outdated.

MantasBaksys and others added 8 commits December 22, 2025 17:25
Summary:
Refactored BFS.lean and extended Naming.lean files to name sub-clauses in proofs to use the new loom_named_split naming scheme. Changed all case names from old naming (e.g., .loop, .exit_1) to the new phase-based naming (.entry, .loop_pos, .loop_neg, .exit). The original proofs have been preserved as comments for reference while the proof bodies have been replaced with `sorry` placeholders, allowing for iterative proof completion with the new naming convention.
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.

2 participants