[Merged by Bors] - refactor(QuadraticForm/Complex): generalize to algebraically closed field#34158
[Merged by Bors] - refactor(QuadraticForm/Complex): generalize to algebraically closed field#34158wwylele wants to merge 7 commits intoleanprover-community:masterfrom
Conversation
PR summary 57d8fb21ebImport changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.LinearAlgebra.QuadraticForm.Complex | 1949 | 2581 | +632 (+32.43%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.LinearAlgebra.QuadraticForm.Complex |
632 |
Mathlib.LinearAlgebra.QuadraticForm.AlgClosed (new file) |
1706 |
Declarations diff
+ equivalent_of_isAlgClosed
+ equivalent_weightedSumSquares_of_isAlgClosed
+ isometryEquivWeightedSumSquaresWeightedSumSquares
+ weightedSumSquaresCongr
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for scripts/declarations_diff.sh contains some details about this script.
Decrease in tech debt: (relative, absolute) = (1.00, 0.00)
| Current number | Change | Type |
|---|---|---|
| 629 | -1 | erw |
Current commit 5cc6bee749
Reference commit 57d8fb21eb
You can run this locally as
./scripts/technical-debt-metrics.sh pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
| /-- The isometry between a weighted sum of squares on an algebraically closed field and the | ||
| sum of squares, i.e. `weightedSumSquares` with weights 1 or 0. -/ | ||
| noncomputable def isometryEquivSumSquares [DecidableEq K] (w' : ι → K) : | ||
| IsometryEquiv (weightedSumSquares K w') |
There was a problem hiding this comment.
I think you should generalize this to "weightedSumSquares w equiv weightedSumSquares w'" if w/w' is a square of a unit.
There was a problem hiding this comment.
Thanks for the suggestion! I have implemented this as isometryEquivWeightedSumSquares₂. Do you know if we already have the bundled version of the LinearEquiv part of this def? I have found LinearEquiv.smulOfUnit and DistribMulAction.toLinearEquiv but I couldn't make them type check
739ec12 to
223d502
Compare
…ield A free generalization since the only place the property of C is used is to get a square root. This can still be further generalized to quadratically closed field, but we don't have that definition yet. Also did small clean up and removed a erw.
223d502 to
9a584f4
Compare
ac43de4 to
d5b2e2c
Compare
|
Unassigning myself as I am travelling without laptop for the next 9 days. |
Co-authored-by: Christian Merten <christian@merten.dev>
Co-authored-by: Christian Merten <christian@merten.dev>
Co-authored-by: Christian Merten <christian@merten.dev>
|
🚀 Pull request has been placed on the maintainer queue by chrisflav. |
|
Thanks! bors merge |
…ield (#34158) A free generalization since the only place the property of C is used is to get a square root. This can still be further generalized to quadratically closed field, but we don't have that definition yet. Also did small clean up and removed a erw.
|
Pull request successfully merged into master. Build succeeded: |
…ield (leanprover-community#34158) A free generalization since the only place the property of C is used is to get a square root. This can still be further generalized to quadratically closed field, but we don't have that definition yet. Also did small clean up and removed a erw.
A free generalization since the only place the property of C is used is to get a square root. This can still be further generalized to quadratically closed field, but we don't have that definition yet.
Also did small clean up and removed a erw.