Commit 2025-05-20 14:06 9baf55b0
View on Github →refactor: change CWComplex
from abbrev
to its own class
(#24712)
This PR makes the classical absolute CW complex into its own class. This is done to
- make typeclass inference able to infer facts about
CWComplex
without always passing throughRelCWComplex
es, and - to give
CWComplex
a constructor so constructing instances ofCWComplex
is easier. The reason why the fields ofCWComplex
areprotected
is that we always wantcell
andmap
to refer toRelCWComplex.cell
andRelCWComplex.map
through the instance: that ensures that lemmas aboutRelCWComplex
directly apply toCWComplex
. Since all of these fields talk about theCWComplex
versions ofmap
andcell
they should never be used.