#32497 chore: make FiniteDimensional.complete π an instance when π is RCLike
In plain words
Makes "a finite-dimensional inner product space over or is complete" an instance, so CompleteSpace E no longer has to be introduced by hand with haveI := FiniteDimensional.complete π E. With the instance available, the PR deletes those local haves from statements and proofs about the adjoint of linear maps between finite-dimensional inner product spaces (LinearMap.adjoint and its API) and from LinearMap.IsPositive.conj_adjoint.
Transcriptions are drafted with an LLM from the diff and are a reading aid, not a verified statement: the Lean code is the reference.
Conversation on GitHub 4
PR summary 9fdb8ee77b
Import changes for modified files
No significant changes to the import graph
<details><summary>Import changes for all files</summary>
|Files|Import difference| |-|-|
</details>
Declarations diff
+ instance _root_.InnerProductSpace.completeSpaceOfFiniteDimensional [FiniteDimensional π E] :
<details>
<summary>You can run this locally as follows</summary>
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>
</details>
The doc-module for script/declarations_diff.sh contains some details about this script.
<details><summary>No changes to technical debt.</summary>
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).
</details>
!bench
Benchmark results for df732760d2f2bf7bd1acb013b972699842c68797 against ee728d5a73a3a557f840ef64fa3abb6a20cd3ac0 are in! @themathqueen <details open> <summary>Minor changes (2)</summary>
- π₯
build/module/Mathlib.Analysis.CStarAlgebra.Matrix//instructions: +5.1G (+2.3%) - π₯
build/module/Mathlib.Analysis.InnerProductSpace.Adjoint//instructions: +6.6G (+2.4%) from estimate, -794.7M (-0.3%) from previous value
</details>
This pull request has conflicts, please merge master and resolve them.
Mathlib/Analysis/InnerProductSpace/Adjoint.lean +3 β24
theorem orthogonal_range (T : E βL[π] F) :variable [FiniteDimensional π E] [FiniteDimensional π F] [FiniteDimensionatheorem im_inner_adjoint_mul_self_eq_zero (T : E ββ[π] E) (x : E) :open LinearMap inMathlib/Analysis/InnerProductSpace/Positive.lean +0 β2
variable [FiniteDimensional π E] [FiniteDimensional π F]