-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix: use reducible transparency when producing no_confusion_type
and injectivity lemmas
#812
base: master
Are you sure you want to change the base?
Conversation
…` and injectivity lemmas
I've build mathlib3 against this locally, no problems to report. |
Scott, does it prevent the crash? |
I tried to test this in leanprover-community/mathlib3#19192 but I can't work out how to make a release to build against. |
But Eric, I don't think that helps: as I said I've already compiled mathlib3 What I want is a mathlib3 commit that would fail against current lean3 master, that I can run against this. |
@semorrison, the point is that would give us a cache that we can try all the mwes from the thread in. |
Either way, I think the fact that mathlib succeeds with this change (combined with agreeing with the intended effect, whether or not it helps performance) is sufficient justification to merge it |
Doesn't an analogue of this have to land in Lean 4 first? What happens if this PR is merged and Leo doesn't like it for Lean 4? |
We can use the option to disable the generation of these lemmas in Lean 4. |
You mean reducible transparency, right? |
no_confusion_type
and injectivity lemmasno_confusion_type
and injectivity lemmas
Yes, I can never remember if "X transparency" includes X or not... |
The relevant test case is
The diff due to this PR is
which is an improvement since
m
andm'
are not intended to be equal types.It's not immediately clear to me whether this will stop the particular defeq check that is causing trouble in this motivating Zulip thread.