Commit 2026-06-03 23:05 97f12126
View on Github →feat(LinearAlgebra/AffineSpace/AffineSubspace): using AffineSubspace.direction to reinterpret AffineSubspace as Submodule (#38731)
- add
AffineSubspace.vsub_self_of_zero_memthat statess -ᵥ s = sif0 ∈ s - add
AffineSubspace.direction_eq_self_iff_zero_memthat states that0 ∈ siff the directions coerce back to the affine subspace. - add corresponding
CanLiftinstance. - modify doc-string of
AffineSubspace.directionto state that this can be used for reinterpretation of an affine subspace as a submodule. - add
Coeinstance based onSubmodule.toAffineSubspaceand adds corresponding @[coe] attribute. The PR also performs a slight cleanup of the file: statements aboutSetLikeorSubmodule.toAffineSubspacehave been moved closer to their respective definitions. Because the PR was temporarily broken, I also added - the lemma
carrier_eq_coe (s : AffineSubspace k P) : s.carrier = s