Commit 2022-11-12 22:46 f0f3d964
View on Github →feat(linear_algebra/{basic, affine_space/restrict}): better support for restriction of affine and linear maps (#16397)
- Generalizes
linear_map.restrictto allow independent but simultaneous restriction of domain and codomain in a backwards compatible way (except for one type inference failure inalgebra.lie.of_associativethat had to be fixed manually). - Adds
linear_map.restrict'as an alternative tolinear_map.restrictthat takes a proof that the image of the new domain must be contained in the new codomain. - Introduces
affine_map.restrictfor restriction of affine maps in a new file calledlinear_algebra/affine_space/restrict.leanand lemmata about injectivity, surjectivity and the coercion of a restricted map. Design choice: A new filerestrict.leanwas created becauseaffine_subspace.leanis already very long andaffine_map.leandoes not know about affine maps.