Commit 2023-01-30 21:46 bcfa7268
View on Github →refactor(topology/{order,*}): review API (#18312)
Main changes
- Switch from
@[class] structure topological_space
toclass
. - Introduce notation
is_open[t]
/is_closed[t]
/𝓤[u]
and use it instead oft.is_open
/@is_closed _ t
/u.uniformity
- Don't introduce a temporary order on
topological_space
, usegalois_coinsertion
to the order-dual ofset (set α)
instead. - Drop
discrete_topology_bot
. It seems that this instance doesn't work well in Lean 4 (in fact, I failed to define it without using@DiscreteTopology.mk
).
Other changes
Topological spaces
- Add
is_open_mk
. - Rename
generate_from_mono
togenerate_from_anti
, move it to thetopological_space
namespace. - Add
embedding_inclusion
,embedding_ulift_down
, andulift.discrete_topology
. - Move
discrete_topology.of_subset
fromtopology.separation
totopology.constructions
. - Move
embedding.discrete_topology
fromtopology.separation
totopology.maps
. - Use explicit arguments in an argument of
nhds_mk_of_nhds
. - Move some definitions and lemmas like
mk_of_closure
,gi_generate_from
(renamed togci_generate_from
),left_inverse_generate_from
to thetopological_space
namespace. These lemmas are very specific and use generic names. - Add
topological_space
anddiscrete_topology
instances forfin n
. - Drop
is_open_induced_iff'
, use non-primed version instead. - Prove
set_of_is_open_sup
byrfl
. - Drop
nhds_bot
, usenhds_discrete
instead. - Drop
induced_bot
anddiscrete_topology_induced
Uniform spaces
- Drop
infi_uniformity'
andinf_uniformity'
. - Use
@uniformity α (uniform_space.comap _ _)
instead of(h : ‹uniform_space α› = uniform_space.comap f ‹uniform_space β›)
inuniformity_comap
.
Locally constant functions and discrete quotients
- Use quotient space topology for the coercion of a
discrete_quotient
toType*
, then prove[discrete_topology]
. This way we avoid surprising diamonds in the future (especially if Lean 4 will unfold the coercion). - Merge
locally_constant.lift
andlocally_constant.locally_constant_lift
into 1 def, renamefactors
tolift_comp_proj
. - Protect
locally_constant.is_locally_constant
. - Drop
locally_constant.iff_continuous_bot
Categories
- Add an instance for
discrete_topology (discrete.obj X)
. - Rename
Fintype.discrete_topology
toFintype.bot_topology
, add lemmaFintype.discrete_topology
sating that this is a[discrete_topology]
.
Topological rings
- Fix&golf a proof that failed because of API changes.