-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - refactor(topology/vector_bundle/basic): deduplicate trivialization
#17359
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sgouezel
reviewed
Nov 7, 2022
bors d+ |
✌️ hrmacbeth can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Nov 8, 2022
…17359) Currently, in mathlib, there is a structure `topological_vector_bundle.trivialization` which extends another structure `topological_fibre_bundle.trivialization` by a linearity hypothesis. We change this to a single structure `trivialization` (no namespace), together with a mixin class `trivialization.is_linear`. This is the first step in the planned [vector bundle refactor](https://leanprover.zulipchat.com/#narrow/stream/116395-maths/topic/Smooth.20vector.20bundles): it will allow all the data of a vector bundle to be held at the level of fibre bundles, so that there can be a non-"dangerous instance" `charted_space` instance associated to a vector bundle. The analogous change is made for `pretrivialization`. The most awkward aspect of this refactor is that one would want the linearity of trivializations associated to a vector bundle to be "automatic", which effectively means that one wants a `trivialization.is_linear` instance to be found by typeclass inference for trivializations in the `trivialization_atlas` of a vector bundle. For this to work, the property of belonging to the trivialization atlas also needs to be made into a Prop typeclass. We call this typeclass `mem_trivialization_atlas`. Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
bors bot
pushed a commit
that referenced
this pull request
Nov 9, 2022
…17359) Currently, in mathlib, there is a structure `topological_vector_bundle.trivialization` which extends another structure `topological_fibre_bundle.trivialization` by a linearity hypothesis. We change this to a single structure `trivialization` (no namespace), together with a mixin class `trivialization.is_linear`. This is the first step in the planned [vector bundle refactor](https://leanprover.zulipchat.com/#narrow/stream/116395-maths/topic/Smooth.20vector.20bundles): it will allow all the data of a vector bundle to be held at the level of fibre bundles, so that there can be a non-"dangerous instance" `charted_space` instance associated to a vector bundle. The analogous change is made for `pretrivialization`. The most awkward aspect of this refactor is that one would want the linearity of trivializations associated to a vector bundle to be "automatic", which effectively means that one wants a `trivialization.is_linear` instance to be found by typeclass inference for trivializations in the `trivialization_atlas` of a vector bundle. For this to work, the property of belonging to the trivialization atlas also needs to be made into a Prop typeclass. We call this typeclass `mem_trivialization_atlas`. Co-authored-by: Floris van Doorn <fpvdoorn@gmail.com>
Pull request successfully merged into master. Build succeeded: |
trivialization
trivialization
bors bot
pushed a commit
that referenced
this pull request
Nov 10, 2022
) Split the file `topology.fiber_bundle` into two, `topology.fiber_bundle.trivialization` and `topology.fiber_bundle.basic`, the former treating (pre)trivializations and the latter treating fiber bundles and constructions for them (the core construction, the prebundle construction, etc). Also move lemmas from `topology.vector_bundle.basic` which turned out not to invove the linear structure (cf [this discussion](#17359 (comment))) into `topology.fiber_bundle.trivialization`.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
delegated
The PR author may merge after reviewing final suggestions.
ready-to-merge
All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
t-differential-geometry
Manifolds, etc.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, in mathlib, there is a structure
topological_vector_bundle.trivialization
which extends another structuretopological_fibre_bundle.trivialization
by a linearity hypothesis. We change this to a single structuretrivialization
(no namespace), together with a mixin classtrivialization.is_linear
. This is the first step in the planned vector bundle refactor: it will allow all the data of a vector bundle to be held at the level of fibre bundles, so that there can be a non-"dangerous instance"charted_space
instance associated to a vector bundle.The analogous change is made for
pretrivialization
.The most awkward aspect of this refactor is that one would want the linearity of trivializations associated to a vector bundle to be "automatic", which effectively means that one wants a
trivialization.is_linear
instance to be found by typeclass inference for trivializations in thetrivialization_atlas
of a vector bundle. For this to work, the property of belonging to the trivialization atlas also needs to be made into a Prop typeclass. We call this typeclassmem_trivialization_atlas
.Co-authored-by: Floris van Doorn fpvdoorn@gmail.com