Commit 2021-04-02 09:16 394719f5
View on Github →chore(data/finsupp): lemmas about map_range and map_domain (#6976) This proves some functorial properties:
finsupp.map_range_id
finsupp.map_range_comp
Adds the new definitions to matchfinsupp.map_range.add_monoid_hom
, and uses them to golf some proofs:finsupp.map_range.zero_hom
, which ismap_domain
as azero_hom
finsupp.map_range.add_equiv
, which ismap_range
as anadd_equiv
finsupp.map_range.linear_map
, which ismap_range
as alinear_map
finsupp.map_range.linear_equiv
, which ismap_range
as alinear_equiv
finsupp.map_domain.add_monoid_hom
, which ismap_domain
as anadd_monoid_hom
Shows the functorial properties of these bundled definitions:finsupp.map_range.zero_hom_id
,finsupp.map_range.zero_hom_comp
finsupp.map_range.add_monoid_hom_id
,finsupp.map_range.add_monoid_hom_comp
finsupp.map_range.add_equiv_refl
,finsupp.map_range.add_equiv_trans
finsupp.map_range.linear_map_id
,finsupp.map_range.linear_map_comp
finsupp.map_range.linear_equiv_refl
,finsupp.map_range.linear_equiv_trans
finsupp.map_domain.add_monoid_hom_id
,finsupp.map_domain.add_monoid_hom_comp
And shows thatmap_range
andmap_domain
commute when the range-map preserves addition:finsupp.map_domain_map_range