-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Merged by Bors] - feat(Analysis/InnerProductSpace/MulOpposite): defines the inner product on opposite spaces #25951
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
Closed
Closed
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
37771f7
added Basis.mulOpposite
themathqueen 7f67f27
doc string
themathqueen 888d355
instance name
themathqueen d90739b
inner product space of mulOpposite
themathqueen 4337078
fix style
themathqueen 167887e
fix
themathqueen fe2a535
Merge branch 'basis_mulop' into inner_op
themathqueen fde0983
fix style
themathqueen 6b190ef
Merge branch 'master' into inner_op
themathqueen de00f24
finrank and rank
themathqueen d2c2e0c
add simp
themathqueen e12fb8b
fix
themathqueen 8069788
Update Mathlib/LinearAlgebra/Basis/MulOpposite.lean
themathqueen 6e52161
suggested changes
themathqueen 3718f5b
Update MulOpposite.lean
themathqueen 16fa6d0
Merge remote-tracking branch 'origin/basis_mulop' into inner_op
themathqueen e0fa225
Merge branch 'master' into inner_op
themathqueen c3f7d49
fix
themathqueen 65bf318
fix
themathqueen b29bd59
put in namespace
themathqueen af102a5
Update MulOpposite.lean
themathqueen 8065ecf
Update MulOpposite.lean
themathqueen f960ace
Merge branch 'master' into inner_op
themathqueen 8ed0fef
fix
themathqueen c3c589a
Merge branch 'master' into inner_op
themathqueen 57989ac
opLinearIsometryEquiv
themathqueen 4c848c6
docs
themathqueen cb080ca
Update MulOpposite.lean
themathqueen 9e3d6fa
Apply suggestions from code review
themathqueen d847dba
Update MulOpposite.lean
themathqueen 55cae1c
Update MulOpposite.lean
themathqueen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| /- | ||
| Copyright (c) 2025 Monica Omar. All rights reserved. | ||
| Released under Apache 2.0 license as described in the file LICENSE. | ||
| Authors: Monica Omar | ||
| -/ | ||
| import Mathlib.LinearAlgebra.Basis.MulOpposite | ||
| import Mathlib.Analysis.InnerProductSpace.Adjoint | ||
|
|
||
| /-! | ||
| # Inner product space on `Hᵐᵒᵖ` | ||
|
|
||
| This file defines the inner product space structure on `Hᵐᵒᵖ` where we define | ||
| the inner product naturally. We also define `OrthonormalBasis.mulOpposite`. | ||
| -/ | ||
|
|
||
| variable {𝕜 H : Type*} | ||
|
|
||
| namespace MulOpposite | ||
|
|
||
| open MulOpposite | ||
|
|
||
| /-- The inner product of `Hᵐᵒᵖ` is given by `⟪x, y⟫ ↦ ⟪x.unop, y.unop⟫`. -/ | ||
| instance [Inner 𝕜 H] : Inner 𝕜 Hᵐᵒᵖ where inner x y := inner 𝕜 x.unop y.unop | ||
|
|
||
| @[simp] theorem inner_unop [Inner 𝕜 H] (x y : Hᵐᵒᵖ) : inner 𝕜 x.unop y.unop = inner 𝕜 x y := rfl | ||
|
|
||
| @[simp] theorem inner_op [Inner 𝕜 H] (x y : H) : inner 𝕜 (op x) (op y) = inner 𝕜 x y := rfl | ||
|
|
||
| variable [RCLike 𝕜] [NormedAddCommGroup H] [InnerProductSpace 𝕜 H] | ||
|
|
||
| instance : InnerProductSpace 𝕜 Hᵐᵒᵖ where | ||
| norm_sq_eq_re_inner x := (inner_self_eq_norm_sq x.unop).symm | ||
| conj_inner_symm x y := InnerProductSpace.conj_inner_symm x.unop y.unop | ||
| add_left x y z := InnerProductSpace.add_left x.unop y.unop z.unop | ||
| smul_left x y r := InnerProductSpace.smul_left x.unop y.unop r | ||
|
|
||
| theorem _root_.Module.Basis.mulOpposite_is_orthonormal_iff {ι : Type*} (b : Module.Basis ι 𝕜 H) : | ||
| Orthonormal 𝕜 b.mulOpposite ↔ Orthonormal 𝕜 b := Iff.rfl | ||
|
|
||
| /-- The mulOpposite of an orthonormal basis. -/ | ||
| noncomputable def _root_.OrthonormalBasis.mulOpposite {ι : Type*} | ||
| [Fintype ι] (b : OrthonormalBasis ι 𝕜 H) : | ||
| OrthonormalBasis ι 𝕜 Hᵐᵒᵖ := Module.Basis.toOrthonormalBasis b.toBasis.mulOpposite b.orthonormal | ||
|
|
||
| /-- The adjoint of `MulOpposite.opContinuousLinearEquiv` is its inverse. -/ | ||
| theorem opContinuousLinearEquiv_adjoint [CompleteSpace H] : | ||
| ContinuousLinearMap.adjoint (opContinuousLinearEquiv 𝕜 (M:=H)).toContinuousLinearMap | ||
| = (opContinuousLinearEquiv 𝕜 (M:=H)).symm.toContinuousLinearMap := by | ||
| ext x | ||
| apply ext_inner_left 𝕜 | ||
| intro y | ||
| simp only [ContinuousLinearMap.adjoint_inner_right, ContinuousLinearEquiv.coe_coe, | ||
| opContinuousLinearEquiv_apply, ← inner_unop, unop_op, opContinuousLinearEquiv_symm_apply] | ||
|
|
||
| theorem opContinuousLinearEquiv_isometry | ||
| {R M : Type*} [Semiring R] [SeminormedAddCommGroup M] [Module R M] : | ||
| Isometry (opContinuousLinearEquiv R (M:=M)) := fun _ _ => rfl | ||
|
|
||
| theorem opLinearEquiv_adjoint [FiniteDimensional 𝕜 H] : | ||
| LinearMap.adjoint (opLinearEquiv 𝕜 (M:=H)).toLinearMap | ||
| = (opLinearEquiv 𝕜 (M:=H)).symm.toLinearMap := | ||
| have := FiniteDimensional.complete 𝕜 H | ||
| calc _ = (ContinuousLinearMap.adjoint | ||
| (opContinuousLinearEquiv 𝕜 (M:=H)).toContinuousLinearMap).toLinearMap := rfl | ||
| _ = _ := by rw [opContinuousLinearEquiv_adjoint]; rfl | ||
|
|
||
| end MulOpposite | ||
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.
Uh oh!
There was an error while loading. Please reload this page.