This repository was archived by the owner on Jul 24, 2024. It is now read-only.
[Merged by Bors] - refactor(analysis/complex/basic, data/complex/is_R_or_C): downgrade imports#18217
Closed
[Merged by Bors] - refactor(analysis/complex/basic, data/complex/is_R_or_C): downgrade imports#18217
Conversation
bors bot
pushed a commit
that referenced
this pull request
Jan 19, 2023
Half of this file is completely elementary, able to be proved directly from the definitions in `normed/group/hom/basic` after a few instances are added there. The other half consists of technical lemmas from LTE, never used elsewhere in mathlib, and requires more imports. Since this file is imported by many files (including `data/complex/is_R_or_C`, see #18217 for a discussion of what that file imports), I propose splitting off the LTE half.
Collaborator
|
The linter is still not happy. |
Collaborator
|
bors d+ |
|
✌️ hrmacbeth can now approve this pull request. To approve and merge a pull request, simply reply with |
Member
Author
|
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Jan 24, 2023
…mports (#18217) The files `data/complex/is_R_or_C` and `analysis/complex/basic` are imported widely across the analysis library: for example - `data/complex/is_R_or_C` into inner product spaces - `analysis/complex/basic` into the construction of `rpow` and thence into Lp spaces and the Bochner integral So it is useful (for the port and for compilation time) to make them as elementary as possible. Currently they both import `analysis/normed_space/operator_norm` and `analysis/normed_space/finite_dimension`, rather heavy imports, but use quite little from these files: they provide lemmas about the operator norms of `re`/`im`/`conj`/`of_real`, and get cheaply some facts about the topology of `ℂ`/`is_R_or_C` via real-finite-dimensionality. This PR splits both files. - `analysis/complex/basic` is split in place, with substantially downgraded imports, and with a few heavier lemmas moved to `analysis/complex/operator_norm`. (And a few lemmas moved earlier to `data/complex/module`.). I wrote direct proofs for the completeness and properness of `ℂ` so that these facts can remain available by importing this file, even though with heavier imports these facts can be deduced from the real-finite-dimensionality of `ℂ`. - `data/complex/is_R_or_C` is split into `data/is_R_or_C/basic` (lightweight file containing most of the former file) and `data/is_R_or_C/lemmas` (a few heavier lemmas). Also rename `equiv_real_prod_add_hom_lm` to `equiv_real_prod_lm` (an apparent typo), and `equiv_real_prodₗ` to `equiv_real_prod_clm` (also an apparent error since in our naming convention `ₗ` usually refers to linearity, not continuous-linearity).
|
Pull request successfully merged into master. Build succeeded: |
grunweg
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
May 26, 2024
…st year; I presume the real code goes back to leanprover-community/mathlib3#1716 in 2019.
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The files
data/complex/is_R_or_Candanalysis/complex/basicare imported widely across the analysis library: for exampledata/complex/is_R_or_Cinto inner product spacesanalysis/complex/basicinto the construction ofrpowand thence into Lp spaces and the Bochner integralSo it is useful (for the port and for compilation time) to make them as elementary as possible.
Currently they both import
analysis/normed_space/operator_normandanalysis/normed_space/finite_dimension, rather heavy imports, but use quite little from these files: they provide lemmas about the operator norms ofre/im/conj/of_real, and get cheaply some facts about the topology ofℂ/is_R_or_Cvia real-finite-dimensionality.This PR splits both files.
analysis/complex/basicis split in place, with substantially downgraded imports, and with a few heavier lemmas moved toanalysis/complex/operator_norm. (And a few lemmas moved earlier todata/complex/module.). I wrote direct proofs for the completeness and properness ofℂso that these facts can remain available by importing this file, even though with heavier imports these facts can be deduced from the real-finite-dimensionality ofℂ.data/complex/is_R_or_Cis split intodata/is_R_or_C/basic(lightweight file containing most of the former file) anddata/is_R_or_C/lemmas(a few heavier lemmas).Also rename
equiv_real_prod_add_hom_lmtoequiv_real_prod_lm(an apparent typo), andequiv_real_prodₗtoequiv_real_prod_clm(also an apparent error since in our naming conventionₗusually refers to linearity, not continuous-linearity).