Skip to content
Closed
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
37771f7
added Basis.mulOpposite
themathqueen Jun 16, 2025
7f67f27
doc string
themathqueen Jun 16, 2025
888d355
instance name
themathqueen Jun 16, 2025
d90739b
inner product space of mulOpposite
themathqueen Jun 16, 2025
4337078
fix style
themathqueen Jun 18, 2025
167887e
fix
themathqueen Jun 18, 2025
fe2a535
Merge branch 'basis_mulop' into inner_op
themathqueen Jun 18, 2025
fde0983
fix style
themathqueen Jun 18, 2025
6b190ef
Merge branch 'master' into inner_op
themathqueen Jun 30, 2025
de00f24
finrank and rank
themathqueen Jul 20, 2025
d2c2e0c
add simp
themathqueen Jul 20, 2025
e12fb8b
fix
themathqueen Jul 21, 2025
8069788
Update Mathlib/LinearAlgebra/Basis/MulOpposite.lean
themathqueen Jul 21, 2025
6e52161
suggested changes
themathqueen Jul 21, 2025
3718f5b
Update MulOpposite.lean
themathqueen Jul 23, 2025
16fa6d0
Merge remote-tracking branch 'origin/basis_mulop' into inner_op
themathqueen Jul 23, 2025
e0fa225
Merge branch 'master' into inner_op
themathqueen Jul 23, 2025
c3f7d49
fix
themathqueen Jul 23, 2025
65bf318
fix
themathqueen Jul 23, 2025
b29bd59
put in namespace
themathqueen Jul 23, 2025
af102a5
Update MulOpposite.lean
themathqueen Jul 25, 2025
8065ecf
Update MulOpposite.lean
themathqueen Aug 10, 2025
f960ace
Merge branch 'master' into inner_op
themathqueen Aug 10, 2025
8ed0fef
fix
themathqueen Aug 10, 2025
c3c589a
Merge branch 'master' into inner_op
themathqueen Aug 19, 2025
57989ac
opLinearIsometryEquiv
themathqueen Aug 19, 2025
4c848c6
docs
themathqueen Aug 19, 2025
cb080ca
Update MulOpposite.lean
themathqueen Aug 19, 2025
9e3d6fa
Apply suggestions from code review
themathqueen Aug 20, 2025
d847dba
Update MulOpposite.lean
themathqueen Aug 20, 2025
55cae1c
Update MulOpposite.lean
themathqueen Aug 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Mathlib.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,7 @@ import Mathlib.Analysis.InnerProductSpace.LaxMilgram
import Mathlib.Analysis.InnerProductSpace.LinearMap
import Mathlib.Analysis.InnerProductSpace.LinearPMap
import Mathlib.Analysis.InnerProductSpace.MeanErgodic
import Mathlib.Analysis.InnerProductSpace.MulOpposite
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Analysis.InnerProductSpace.OfNorm
import Mathlib.Analysis.InnerProductSpace.Orientation
Expand Down
61 changes: 61 additions & 0 deletions Mathlib/Analysis/InnerProductSpace/MulOpposite.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/-
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.PiL2

/-!
# 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

theorem isometry_opLinearEquiv {R M : Type*} [Semiring R] [SeminormedAddCommGroup M] [Module R M] :
Isometry (opLinearEquiv R (M:=M)) := fun _ _ => rfl

variable (𝕜 H) in
/-- The linear isometry equivalence version of the function `op`. -/
@[simps!]
def opLinearIsometryEquiv : H ≃ₗᵢ[𝕜] Hᵐᵒᵖ where
toLinearEquiv := opLinearEquiv 𝕜
norm_map' _ := rfl

theorem toLinearEquiv_opLinearIsometryEquiv :
Comment thread
themathqueen marked this conversation as resolved.
(opLinearIsometryEquiv 𝕜 H).toLinearEquiv = opLinearEquiv 𝕜 := rfl

theorem toContinuousLinearEquiv_opLinearIsometryEquiv :
Comment thread
themathqueen marked this conversation as resolved.
(opLinearIsometryEquiv 𝕜 H).toContinuousLinearEquiv = opContinuousLinearEquiv 𝕜 := rfl

end MulOpposite