Commit 2025-08-29 21:26 f55227af
View on Github →chore(Data): make arguments consistent for single_eq_of_ne
(#29006)
- Swap the direction of the hypothesis in
Finsupp.single_eq_of_ne
andDfinsupp.single_eq_of_ne
to matchPi.single_eq_of_ne
and*.apply_eq_of_ne
- Move existing
Finsupp.single_eq_of_ne
toFinsupp.single_eq_of_ne'
to aidsimp
, in line withPi.single_eq_of_ne'
- Swap the hypothesis direction in
DirectSum.of_eq_of_ne
andPolynomial.coeff_monomial_of_ne
to match the above This change means that, in order to prove that(fun₀ | i => x) j = 0
, you supplyj ≠ i
rather thani ≠ j
by default. See Zulip discussion: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Inconsistent.20hypothesis.20convention.20in.20.60Finsupp.60 The cutoff for which declarations I edited and which I didn't is somewhat arbitrary. For now, I only changed declarations which obviously had the meaning of evaluating a delta functionf i
at an indexj
.