Repository navigation
Conversation
…s in TopCat and friends Avoid free universe variables, as discussed on Zulip: https://leanprover.zulipchat.com/#narrow/channel/144837-PR-reviews/topic/.2338223.20The.20Category.20of.20C.5En.20Manifolds/near/587824522
|
!bench |
|
Benchmark results for 403fee8 against a83a1c3 are in. No significant results found. @grunweg
Medium changes (2✅)
Small changes (6🟥)
|
PR summary 1144844f8eImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
TopCat and friends
|
!bench |
|
Benchmark results for 355575a against a83a1c3 are in. There are significant results. @grunweg
Large changes (1✅)
Medium changes (1✅)
Small changes (1✅)
|
|
!bench |
|
Benchmark results for 355575a against a83a1c3 are in. (These commits have already been benchmarked in a previous command.) There are significant results. @grunweg
Large changes (1✅)
Medium changes (1✅)
Small changes (1✅)
|
|
@adomani Is there a way to make the Lean declaration diff more helpful? For instance, by flagging all the declarations where the pretty-printed form with universes changes (which in turn implies the others are fine)? |
|
This pull request has conflicts, please merge |
…icitly (#41483) This is beneficial for the same reasons as #40964. This particular change matters for #41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
felixpernegger
left a comment
There was a problem hiding this comment.
Going over this and testing a few select occurences. This looks good. However it s hard to check by hand if this doesnt accidentally de-generalise a declaration. I.e. if we replace {X Y: ModuleCat R} {X Y: ModuleCat.{v} R} it is not immediately clear (to me) that X and Y really must have the same universe.
In all cases I checked (maybe 5?) this was indeed required, as there are fields with X.Hom Y etc..
So, from a reviewing point, is there some easier/more automatic way to check nothing gets de-generalised except hand picking each one and/or guessing?
|
I think the strategy I sketched to you over lunch should work:
I can try to set up such a file myself. If you'd like to help by making such a file, that's also welcome. (I won't have time for this until Wednesday.) |
|
This pull request has conflicts, please merge |
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
…icitly (leanprover-community#41483) This is beneficial for the same reasons as leanprover-community#40964. This particular change matters for leanprover-community#41462; extracted from that PR. Co-authored-by: felixpernegger <[email protected]>
|
This pull request has conflicts, please merge |
|
Here's the output of the prototype declaration diff scripts, as requested by @adomani in a Zulip DM. It's not part of the script yet, but I did check that no universes ended up de-generalized (specialized?); all the changes are just reorders. "(in the head's names)" might be a bit mysterious: this is just indicating that the names of the universes changed between the base of the PR and the head, and both universe orderings are printed using the names in the head. (Suggestions for better wording here or elsewhere would be greatly appreciated!) Declarations diff (Lean)
Shape: universe reorders. 45 declarations with their universes reordered.
universe parameters reordered under the same name (45)
|
Avoid free universe variables, as discussed on Zulip: https://leanprover.zulipchat.com/#narrow/channel/144837-PR-reviews/topic/.2338223.20The.20Category.20of.20C.5En.20Manifolds/near/587824522
Perhaps, we should have a linter for this, such as by
pp_universesattribute (TODO fix name) to take a list of universes, and only pretty-print those