-
Notifications
You must be signed in to change notification settings - Fork 169
Add profiling and defeq guidance in style #764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bryangingechen
merged 10 commits into
leanprover-community:lean4
from
mattrobball:guidance_defeq
Dec 17, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
34bb002
add profiling and defeq guidance
mattrobball 659e9c7
Update style.md
mattrobball 6384706
Update style.md
mattrobball 94a5675
Update style.md
mattrobball 5a523df
Update style.md
mattrobball 6e70dd0
Update style.md
mattrobball e8ddedf
Update style.md
mattrobball cd5738c
Update templates/contribute/style.md
mattrobball bf2831d
Update templates/contribute/style.md
mattrobball 6b48953
Update templates/contribute/style.md
mattrobball File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very broadly formulated. Do we really want to require a benchmark for every PR containing one of these? I think that in practice, most added instances or
simplemmas are for (very) specialized declarations with specific discrimination keys, so no performance regression would be expected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is intentionally broad. The only real limit is benchmarking capacity. I don't see a way to draw it lower that it becomes effectively meaningless or convoluted. Suggestions welcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
"In particular, if the PR touches significant components of the library like adding generic instances, adding generic
simplemmas, changing imports or changing transparency levels of definitions, then authors should benchmark their changes proactively.""generic" is of course vague, and we could maybe say something more precise in terms of discrimination keys, but I am not sure this would help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of things here would become simple with better automation. Checking for weak keys is one. I would keep the import switching because that is a completely inscrutable ball of yarn right now.
If this is meant for contributors that know little, then the default should be simple to understand and execute.