Commit 2025-11-05 17:51 e5cab449
View on Github →chore: turn WithLp into a structure (#27270)
Turn WithLp into a one field structure, as was suggested many times on Zulip and discussed here: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/defeq.20abuse.20in.20.60WithLp.60/near/526234806.
Here is what this PR does:
- The instances on
WithLp p αwhich were defeq to those onα(algebraic instances, topology, uniformity, bornology) are now pulled back fromαalongWithLp.equiv p α. A few declarations are added to ease the process, such as versions ofWithLp.equivas a homeomorphism or a uniform isomorphism. - The
MeasurableSpacestructure was pushed forward fromα. We now make it pulled back because it is much more convenient to prove that this preserves theBorelSpaceinstance. - It introduces some definitions to equip
α × βwith the Lp distance, and similarly forΠ i, α i. This is then used to define relevant instances on type synonyms, such as for matrix norms. - The PR fixes all the defeq abuses (which break obviously).