Skip to content

feat(lean_examples): use grind for some of the proofs#1802

Merged
abentkamp merged 2 commits intomainfrom
lean-grind
Dec 16, 2025
Merged

feat(lean_examples): use grind for some of the proofs#1802
abentkamp merged 2 commits intomainfrom
lean-grind

Conversation

@abentkamp
Copy link
Copy Markdown
Contributor

I have experimented with grind on the lean_chacha example. I haven't replaced all of the proofs, only some of them. For the grind annotations that really belong into the Lean repo, I have created a MissingLean folder that I hope to (partially) upstream into the Lean repo some time.

What I hope to get from grind:

It's not clear to me if grind really gives us that, but I am hopeful.

Cons:

  • quite slow (maybe we can speed things up by simping or subst_eqs before invoking grind?)
  • library must be annotated with @[grind]

@abentkamp abentkamp added this to the Lean proof library v1.0 milestone Dec 4, 2025
@abentkamp abentkamp requested a review from a team as a code owner December 4, 2025 16:28
@abentkamp abentkamp added proof-lib Issues related the backend-specific definitions (in the proof-lib folder) lean Related to the Lean backend or library labels Dec 4, 2025
Copy link
Copy Markdown
Contributor

@maximebuyse maximebuyse left a comment

Choose a reason for hiding this comment

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

I don't completely get the implications of this, but we can try this and reverting shouldn't be hard if we change our minds.

@abentkamp abentkamp enabled auto-merge December 16, 2025 14:39
@abentkamp abentkamp added this pull request to the merge queue Dec 16, 2025
Merged via the queue into main with commit 0117392 Dec 16, 2025
17 of 18 checks passed
@abentkamp abentkamp deleted the lean-grind branch December 16, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lean Related to the Lean backend or library proof-lib Issues related the backend-specific definitions (in the proof-lib folder)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants