coq-community / topology

General topology in Coq [maintainers=@amiloradovsky,@Columbus240,@stop-cran]
Other
46 stars 10 forks source link

Restructure cardinals, finiteness and homeomorphisms #45

Closed Columbus240 closed 1 month ago

Columbus240 commented 1 year ago

This branch does:

Left to do:

This big restructuring of the library comes from some Yak shaving.

  1. I wanted to characterize some spaces up to homeomorphism, so I wanted to have appropriate definitions of homeomorphism, homeomorphic and topological_property.
  2. I started by redefining homeomorphisms, noting that a property inverse_map would be useful in proofs about it.
  3. But then it makes sense to redefine invertible in terms of inverse_map, instead of doing its own thing with Inductive.
  4. This leads to many changes in proofs about FiniteT.
  5. By noting that bij_finite uses something like eq_cardinal, by redefining eq_cardinal to use invertible as well, we can extract the lemmas of eq_cardinal _ _ from FiniteTypes and state them separately.