-
Notifications
You must be signed in to change notification settings - Fork 112
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
chore: make RBNode.mem_insert more robust #342
base: main
Are you sure you want to change the base?
Conversation
Can you say more about how the shadowing will change? That sounds a bit scary. (Can you point me to a branch that fails without this change?) Regarding nonterminal simp, I don't avoid it here as heavily as in mathlib, because the simp set is small(er) and stable(r), and proofs tend to involve more domain-specific notions (like the RBSet functions in this case) for which the simp set is known exactly. I think the jury is still out regarding whether this is a good idea or whether we need to be as defensive as mathlib wrt the simp set. |
@digama0, try the Std branch |
It seems the issue is that the |
Ah, great, thank you. I'm happy in that case to either close this or merge, as you see fit! |
Let's leave it open until we find out how leanprover/lean4#2793 (comment) will be resolved. |
The original upstream PR was subsumed by lean4#4596. Does this mean this PR is obsolete? |
This proof has three different hypotheses named
h
, and in a upcoming version of leanprover/lean4#2793 something is going to change in how they shadow each other.This is a fix that works before and after. For now I'll be pointing leanprover-community/mathlib4#8076 at this branch.
@digama0 this proof has some other scary features (e.g. nonterminal simp) which we should fix at some point.