Zulip Chat Archive
Stream: mathlib4
Topic: subset_refl and subset_empty_iff
Peter Nelson (Jul 24 2024 at 15:08):
Is there a reason that neither of these are simp
?
Johan Commelin (Jul 24 2024 at 16:00):
docs#subset_refl and docs#subset_empty_iff
Johan Commelin (Jul 24 2024 at 16:00):
Especially the 2nd one seems like a good simp lemma to me.
Johan Commelin (Jul 24 2024 at 16:01):
@Peter Nelson Please make a PR. And comment !bench
on it. Then we can see if there are any bad consequences.
Peter Nelson (Jul 24 2024 at 16:09):
Richard Copley (Jul 24 2024 at 18:11):
A few proofs with non-terminal simp
were failing. I pushed fixes for those. Now there is a linter error with Finset.Subset.refl
: it is a simp
lemma but simp only [@subset_refl]
can prove it. What's the best thing to do? Increase the priority of Finset.Subset.refl
?
Kevin Buzzard (Jul 24 2024 at 18:13):
Remove the @[simp]
tag from Finset.Subset.refl
?
Richard Copley (Jul 24 2024 at 18:16):
/poll What's the best thing to do?
Increase the priority of Finset.Subset.refl
Remove the @[simp]
tag from Finset.Subset.refl
Damiano Testa (Jul 24 2024 at 18:24):
My rule of thumb is that you should prioritise not changing priorities: if an alternative fix is available, it is almost certainly better.
Richard Copley (Jul 24 2024 at 18:36):
Thanks, here goes
Richard Copley (Jul 24 2024 at 20:07):
All checks passed. Still want a !bench
? I have a feeling there will be no significant differences
Last updated: May 02 2025 at 03:31 UTC