Skip to content

chore(FiberBundle/Trivialisation): tag with grind#37535

Open
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:fiberbundle-grind
Open

chore(FiberBundle/Trivialisation): tag with grind#37535
grunweg wants to merge 1 commit intoleanprover-community:masterfrom
grunweg:fiberbundle-grind

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Apr 2, 2026

I am unsure if all of these are good grind lemmas; close examination is welcome. I left XXX comments with my questions; there are about 3 different questions repeating a few times.


Open in Gitpod

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Apr 2, 2026

@chenson2018 We talked about this a bit in person: would you like to take a look from a "grind tagging" perspective? (I'm also happy to read your draft write-up instead, and try to understand and apply it here.)
@chrisflav You may also be interested in this PR. Assume I don't know many of the grind subtleties yet - but am happy to learn.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

PR summary 96c77b07ff

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Apr 2, 2026
I am unsure if all of these are good grind lemmas; close examination is welcome.
I left XXX comments with my questions; there are about 3 different questions
repeating a few times.
@grunweg grunweg force-pushed the fiberbundle-grind branch from 7a2d2da to 3ad4893 Compare April 2, 2026 12:01
Copy link
Copy Markdown
Contributor

@chenson2018 chenson2018 left a comment

Choose a reason for hiding this comment

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

I picked out the first XXX comment and tried to write out my thought process for picking out a pattern. Hopefully this is helpful and transferable to your other comments.

theorem mk_proj_snd (ex : x ∈ e.source) : (proj x, (e x).2) = e x :=
Prod.ext (e.coe_fst ex).symm rfl

-- XXX: grind → errors (but `grind =` doesn't); is this a sensible grind lemma?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be helpful to see some possible grind_pattern written out:

-- grind =
grind_pattern mk_proj_snd' => (proj x, (e x).2)

-- grind =_
grind_pattern mk_proj_snd' => e x

-- grind =>
grind_pattern mk_proj_snd' => proj x ∈ e.baseSet, (proj x, (e x).2)

-- grind! =>
grind_pattern mk_proj_snd' => e.baseSet, e x

-- patterns beyond what grind? suggests
grind_pattern mk_proj_snd' => proj x ∈ e.baseSet, e x

These are mostly corresponding to what writing grind? in the attribute reports. The choice here is essentially how eagerly this triggers, so a bit of mathematical context required to know when it's useful. Based on your mentioning grind →, maybe grind => might capture your intent?

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

Labels

t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants