Repository navigation
refactor: rename Pi.map to Function.piMap - #39233
wrenna-robson wants to merge 17 commits into
Conversation
PR summary ccd186c86fImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
Pi.map rename to Function.map
|
This pull request has conflicts, please merge |
|
I do not know how to meaningfully progress this because nobody is participating in the linked Zulip thread. |
I don't understand this. What do you mean? Changing |
Yes - I mean if I am honest I would happily leave it as it is but this was suggested to me. Equally instead of Function.map we could choose |
|
This pull request has conflicts, please merge |
# Conflicts: # Mathlib/Algebra/Notation/Pi/Defs.lean # Mathlib/Algebra/Regular/Pi.lean # Mathlib/Logic/Function/Defs.lean
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This pull request has conflicts, please merge |
# Conflicts: # Mathlib/Algebra/Group/Pi/Lemmas.lean # Mathlib/Data/Finset/Powerset.lean # Mathlib/Topology/Constructions.lean
Keeps it consistent with the existing `*.piMap` names (`LinearMap.piMap`, `MonoidHom.piMap`, `Injective.piMap`, ...). Lemmas follow: `piMap_apply`, `piMap_def`, `piMap_const`, `piMap_update`, `piMap_injective`, `piMap_id`, `piMap_id'`, `piMap_comp_piMap`, `piMap_iterate`.
Pi.map rename to Function.mapPi.map to Function.piMap
|
This pull request has conflicts, please merge |
This PR renames
Pi.maptoFunction.piMapand makes the changes necessary to support this. In particular this means that Mathlib.Logic.Function.Defs now only contains the Function namespace.The name
Function.piMap(rather thanFunction.map) keeps it consistent with the existing*.piMapnames: the bundled versionsMulHom.piMap,MonoidHom.piMap,LinearMap.piMap,ContinuousLinearMap.piMap, and the predicate lemmasFunction.Injective.piMap,Continuous.piMap,IsFixedPt.piMapetc.Renames (all with deprecated aliases):
Pi.map→Function.piMapPi.map_apply→Function.piMap_applyPi.map_id→Function.piMap_idPi.map_id'→Function.piMap_id'Pi.map_comp_map→Function.piMap_comp_piMapPi.map_injective→Function.piMap_injectivePi.map_update→Function.piMap_updatePi.map_iterate→Function.piMap_iterateNew:
Function.piMap_def,Function.piMap_const.Zulip thread: #PR reviews > #39233 - rename Pi.map to Function.map @ 💬
General discussion regarding the Pi namespace: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/The.20Pi.20namespace/near/594782721