The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V16. Normed spaces and functional analysis

Mathlib.Analysis.CStarAlgebra.Module.Synonym

69 declarations. Mathlib docs · Source

Type synonym for types with a CStarModule structure

It is often the case that we want to construct a CStarModule instance on a type that is already endowed with a norm, but this norm is not the one associated to its CStarModule structure. For this reason, we create a type synonym WithCStarModule which is endowed with the requisite CStarModule instance. We also introduce the scoped notation C⋆ᵐᵒᵈ for this type synonym.

The common use cases are, when A is a C⋆-algebra:

  • E × F where E and F are CStarModules over A
  • Π i, E i where E i is a CStarModule over A and i : ι with ι a Fintype

In this way, the set up is very similar to the WithLp type synonym, although there is no way to reuse WithLp because the norms do not coincide in general.

The WithCStarModule synonym is of vital importance, especially because the CStarModule class marks A as an outParam. Indeed, we want to infer A from the type of E, but, as with modules, a type E can be a CStarModule over different C⋆-algebras. For example, note that if A is a C⋆-algebra, then so is A × A, and therefore we may consider both A and A × A as CStarModules over themselves, respectively. However, we may also consider A × A as a CStarModule over A. However, by utilizing the type synonym, these actually correspond to different types, namely:

  • A as a CStarModule over A corresponds to A
  • A × A as a CStarModule over A × A corresponds to A × A
  • A × A as a CStarModule over A corresponds to C⋆ᵐᵒᵈ (A × A)

Main definitions

  • WithCStarModule A E: a copy of E to be equipped with a CStarModule A structure.
  • WithCStarModule.equiv A E: the canonical equivalence between WithCStarModule A E and E.
  • WithCStarModule.linearEquiv ℂ A E: the canonical ℂ-module isomorphism between WithCStarModule A E and E.

Implementation notes

The pattern here is the same one as is used by Lex for order structures; it avoids having a separate synonym for each type, and allows all the structure-copying code to be shared.

C⋆ᵐᵒᵈ(A, E) inherits various module-adjacent structures from E.

WithCStarModule.equiv preserves the module structure.

C⋆ᵐᵒᵈ(A, E) inherits the uniformity and bornology from E.

Prod

Register simplification lemmas for the applications of WithCStarModule (E × F) elements, as the usual lemmas for Prod will not trigger.

Note that the unapplied versions of these lemmas are deliberately omitted, as they break the use of the type synonym.

Pi

Register simplification lemmas for the applications of WithCStarModule (Π i, E i) elements, as the usual lemmas for Pi will not trigger.

We also provide a CoeFun instance for WithCStarModule (Π i, E i).

Note that the unapplied versions of these lemmas are deliberately omitted, as they break the use of the type synonym.

def WithCStarModule E1 #

Type u_1 → Type u_2 → Type u_2

A type synonym for endowing a given type with a CStarModule structure. This has the scoped notation C⋆ᵐᵒᵈ.

def WithCStarModule.«termC⋆ᵐᵒᵈ(_,_)» E1 #

Lean.ParserDescr

A type synonym for endowing a given type with a CStarModule structure. This has the scoped notation C⋆ᵐᵒᵈ.

def WithCStarModule.equiv E1 #

(A : Type u_3) → (E : Type u_4) → WithCStarModule A E ≃ E

The canonical equivalence between C⋆ᵐᵒᵈ(A, E) and E. This should always be used to convert back and forth between the representations.

instance WithCStarModule.instNontrivial E0 #

∀ (A : Type u_3) (E : Type u_4) [Nontrivial E], Nontrivial (WithCStarModule A E)

instance WithCStarModule.instInhabited E0 #

(A : Type u_3) → (E : Type u_4) → [Inhabited E] → Inhabited (WithCStarModule A E)

instance WithCStarModule.instNonempty E0 #

∀ (A : Type u_3) (E : Type u_4) [Nonempty E], Nonempty (WithCStarModule A E)

instance WithCStarModule.instUnique E0 #

(A : Type u_3) → (E : Type u_4) → [Unique E] → Unique (WithCStarModule A E)

instance WithCStarModule.instZero E0 #

(A : Type u_3) → (E : Type u_4) → [Zero E] → Zero (WithCStarModule A E)

instance WithCStarModule.instAdd E0 #

(A : Type u_3) → (E : Type u_4) → [Add E] → Add (WithCStarModule A E)

instance WithCStarModule.instSub E0 #

(A : Type u_3) → (E : Type u_4) → [Sub E] → Sub (WithCStarModule A E)

instance WithCStarModule.instNeg E0 #

(A : Type u_3) → (E : Type u_4) → [Neg E] → Neg (WithCStarModule A E)

instance WithCStarModule.instSMul E0 #

(R : Type u_1) → (A : Type u_3) → (E : Type u_4) → [SMul R E] → SMul R (WithCStarModule A E)

instance WithCStarModule.instAddMonoid E0 #

(A : Type u_3) → (E : Type u_4) → [AddMonoid E] → AddMonoid (WithCStarModule A E)

instance WithCStarModule.instSubNegMonoid E0 #

(A : Type u_3) → (E : Type u_4) → [SubNegMonoid E] → SubNegMonoid (WithCStarModule A E)

instance WithCStarModule.instSubNegZeroMonoid E0 #

(A : Type u_3) → (E : Type u_4) → [SubNegZeroMonoid E] → SubNegZeroMonoid (WithCStarModule A E)

instance WithCStarModule.instAddCommGroup E0 #

(A : Type u_3) → (E : Type u_4) → [AddCommGroup E] → AddCommGroup (WithCStarModule A E)

instance WithCStarModule.instModule E0 #

(R : Type u_1) →
  (A : Type u_3) →
    (E : Type u_4) → [inst : Semiring R] → [inst_1 : AddCommGroup E] → [Module R E] → Module R (WithCStarModule A E)

instance WithCStarModule.instIsScalarTower E0 #

∀ (R : Type u_1) (R' : Type u_2) (A : Type u_3) (E : Type u_4) [inst : SMul R R'] [inst_1 : SMul R E]
  [inst_2 : SMul R' E] [IsScalarTower R R' E], IsScalarTower R R' (WithCStarModule A E)

instance WithCStarModule.instSMulCommClass E0 #

∀ (R : Type u_1) (R' : Type u_2) (A : Type u_3) (E : Type u_4) [inst : SMul R E] [inst_1 : SMul R' E]
  [SMulCommClass R R' E], SMulCommClass R R' (WithCStarModule A E)

theorem WithCStarModule.equiv_zero E0 #

∀ {A : Type u_3} {E : Type u_4} [inst : AddCommGroup E], (WithCStarModule.equiv A E) 0 = 0

theorem WithCStarModule.equiv_symm_zero E0 #

∀ {A : Type u_3} {E : Type u_4} [inst : AddCommGroup E], (WithCStarModule.equiv A E).symm 0 = 0

theorem WithCStarModule.equiv_add E0 #

∀ {A : Type u_3} {E : Type u_4} (x y : WithCStarModule A E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E) (x + y) = (WithCStarModule.equiv A E) x + (WithCStarModule.equiv A E) y

theorem WithCStarModule.equiv_symm_add E0 #

∀ {A : Type u_3} {E : Type u_4} (x' y' : E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E).symm (x' + y') = (WithCStarModule.equiv A E).symm x' + (WithCStarModule.equiv A E).symm y'

theorem WithCStarModule.equiv_sub E0 #

∀ {A : Type u_3} {E : Type u_4} (x y : WithCStarModule A E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E) (x - y) = (WithCStarModule.equiv A E) x - (WithCStarModule.equiv A E) y

theorem WithCStarModule.equiv_symm_sub E0 #

∀ {A : Type u_3} {E : Type u_4} (x' y' : E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E).symm (x' - y') = (WithCStarModule.equiv A E).symm x' - (WithCStarModule.equiv A E).symm y'

theorem WithCStarModule.equiv_neg E0 #

∀ {A : Type u_3} {E : Type u_4} (x : WithCStarModule A E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E) (-x) = -(WithCStarModule.equiv A E) x

theorem WithCStarModule.equiv_symm_neg E0 #

∀ {A : Type u_3} {E : Type u_4} (x' : E) [inst : AddCommGroup E],
  (WithCStarModule.equiv A E).symm (-x') = -(WithCStarModule.equiv A E).symm x'

theorem WithCStarModule.equiv_smul E0 #

∀ {R : Type u_1} {A : Type u_3} {E : Type u_4} [inst : SMul R E] (c : R) (x : WithCStarModule A E),
  (WithCStarModule.equiv A E) (c • x) = c • (WithCStarModule.equiv A E) x

theorem WithCStarModule.equiv_symm_smul E0 #

∀ {R : Type u_1} {A : Type u_3} {E : Type u_4} [inst : SMul R E] (c : R) (x' : E),
  (WithCStarModule.equiv A E).symm (c • x') = c • (WithCStarModule.equiv A E).symm x'

def WithCStarModule.addEquiv E1 #

(A : Type u_3) → (E : Type u_4) → [inst : AddCommGroup E] → WithCStarModule A E ≃+ E

WithCStarModule.equiv as an additive equivalence.

def WithCStarModule.linearEquiv E1 #

(R : Type u_1) →
  (A : Type u_3) →
    (E : Type u_4) →
      [inst : Semiring R] → [inst_1 : AddCommGroup E] → [inst_2 : Module R E] → WithCStarModule A E ≃ₗ[R] E

WithCStarModule.equiv as a linear equivalence.

theorem WithCStarModule.linearEquiv_apply E0 #

∀ (R : Type u_1) (A : Type u_3) (E : Type u_4) [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E],
  ⇑(WithCStarModule.linearEquiv R A E) = ⇑(WithCStarModule.equiv A E)

theorem WithCStarModule.linearEquiv_symm_apply E0 #

∀ (R : Type u_1) (A : Type u_3) (E : Type u_4) [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E],
  ⇑(WithCStarModule.linearEquiv R A E).symm = ⇑(WithCStarModule.equiv A E).symm

theorem WithCStarModule.map_top_submodule E0 #

∀ (A : Type u_3) (E : Type u_4) {R : Type u_5} [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E],
  Submodule.map ↑(WithCStarModule.linearEquiv R A E).symm ⊤ = ⊤

instance WithCStarModule.instModuleFinite E0 #

∀ (R : Type u_1) (A : Type u_3) (E : Type u_4) [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  [Module.Finite R E], Module.Finite R (WithCStarModule A E)

instance WithCStarModule.instUniformSpace E0 #

{A : Type u_3} → {E : Type u_4} → [u : UniformSpace E] → UniformSpace (WithCStarModule A E)

instance WithCStarModule.instBornology E0 #

{A : Type u_3} → {E : Type u_4} → [Bornology E] → Bornology (WithCStarModule A E)

def WithCStarModule.uniformEquiv E1 #

{A : Type u_3} → {E : Type u_4} → [inst : UniformSpace E] → WithCStarModule A E ≃ᵤ E

WithCStarModule.equiv as a uniform equivalence between C⋆ᵐᵒᵈ(A, E) and E.

def WithCStarModule.equivL E1 #

(R : Type u_1) →
  {A : Type u_3} →
    {E : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommGroup E] → [inst_2 : UniformSpace E] → [inst_3 : Module R E] → WithCStarModule A E ≃L[R] E

WithCStarModule.equiv as a continuous linear equivalence between C⋆ᵐᵒᵈ E and E.

theorem WithCStarModule.equivL_symm_apply E0 #

∀ (R : Type u_1) {A : Type u_3} {E : Type u_4} [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : UniformSpace E]
  [inst_3 : Module R E] (a : E), (WithCStarModule.equivL R).symm a = (WithCStarModule.equiv A E).symm a

theorem WithCStarModule.equivL_apply E0 #

∀ (R : Type u_1) {A : Type u_3} {E : Type u_4} [inst : Semiring R] [inst_1 : AddCommGroup E] [inst_2 : UniformSpace E]
  [inst_3 : Module R E] (a : WithCStarModule A E), (WithCStarModule.equivL R) a = (WithCStarModule.equiv A E) a

instance WithCStarModule.instCompleteSpace E0 #

∀ {A : Type u_3} {E : Type u_4} [inst : UniformSpace E] [CompleteSpace E], CompleteSpace (WithCStarModule A E)

instance WithCStarModule.instContinuousAdd E0 #

∀ {A : Type u_3} {E : Type u_4} [inst : AddCommGroup E] [inst_1 : UniformSpace E] [ContinuousAdd E],
  ContinuousAdd (WithCStarModule A E)

instance WithCStarModule.instIsUniformAddGroup E0 #

∀ {A : Type u_3} {E : Type u_4} [inst : AddCommGroup E] [inst_1 : UniformSpace E] [IsUniformAddGroup E],
  IsUniformAddGroup (WithCStarModule A E)

instance WithCStarModule.instContinuousSMul E0 #

∀ (R : Type u_1) {A : Type u_3} {E : Type u_4} [inst : Semiring R] [inst_1 : TopologicalSpace R]
  [inst_2 : AddCommGroup E] [inst_3 : UniformSpace E] [inst_4 : Module R E] [ContinuousSMul R E],
  ContinuousSMul R (WithCStarModule A E)

theorem WithCStarModule.zero_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} [inst : AddCommGroup E] [inst_1 : AddCommGroup F], 0.1 = 0

theorem WithCStarModule.zero_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} [inst : AddCommGroup E] [inst_1 : AddCommGroup F], 0.2 = 0

theorem WithCStarModule.add_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x y : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (x + y).1 = x.1 + y.1

theorem WithCStarModule.add_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x y : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (x + y).2 = x.2 + y.2

theorem WithCStarModule.sub_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x y : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (x - y).1 = x.1 - y.1

theorem WithCStarModule.sub_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x y : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (x - y).2 = x.2 - y.2

theorem WithCStarModule.neg_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (-x).1 = -x.1

theorem WithCStarModule.neg_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : WithCStarModule A (E × F)) [inst : AddCommGroup E]
  [inst_1 : AddCommGroup F], (-x).2 = -x.2

theorem WithCStarModule.smul_fst E0 #

∀ {R : Type u_1} {A : Type u_2} {E : Type u_3} {F : Type u_4} [inst : SMul R E] [inst_1 : SMul R F]
  (x : WithCStarModule A (E × F)) (c : R), (c • x).1 = c • x.1

theorem WithCStarModule.smul_snd E0 #

∀ {R : Type u_1} {A : Type u_2} {E : Type u_3} {F : Type u_4} [inst : SMul R E] [inst_1 : SMul R F]
  (x : WithCStarModule A (E × F)) (c : R), (c • x).2 = c • x.2

theorem WithCStarModule.equiv_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : WithCStarModule A (E × F)),
  ((WithCStarModule.equiv A (E × F)) x).1 = x.1

theorem WithCStarModule.equiv_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : WithCStarModule A (E × F)),
  ((WithCStarModule.equiv A (E × F)) x).2 = x.2

theorem WithCStarModule.equiv_symm_fst E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : E × F), ((WithCStarModule.equiv A (E × F)).symm x).1 = x.1

theorem WithCStarModule.equiv_symm_snd E0 #

∀ {A : Type u_2} {E : Type u_3} {F : Type u_4} (x : E × F), ((WithCStarModule.equiv A (E × F)).symm x).2 = x.2

instance WithCStarModule.instCoeFunForall E0 #

{A : Type u_1} → {ι : Type u_2} → (E : ι → Type u_3) → CoeFun (WithCStarModule A ((i : ι) → E i)) fun x ↦ (i : ι) → E i

The following should not be a FunLike instance because then the coercion ⇑ would get unfolded to FunLike.coe instead of WithCStarModule.equiv.

theorem WithCStarModule.ext E1 #

∀ {A : Type u_1} {ι : Type u_2} {E : ι → Type u_3} {x y : WithCStarModule A ((i : ι) → E i)},
  (∀ (i : ι), x i = y i) → x = y

theorem WithCStarModule.ext_iff E0 #

∀ {A : Type u_1} {ι : Type u_2} {E : ι → Type u_3} {x y : WithCStarModule A ((i : ι) → E i)},
  x = y ↔ ∀ (i : ι), x i = y i

theorem WithCStarModule.zero_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (i : ι) [inst : (i : ι) → AddCommGroup (E i)], 0 i = 0

theorem WithCStarModule.add_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (x y : WithCStarModule A ((i : ι) → E i)) (i : ι)
  [inst : (i : ι) → AddCommGroup (E i)], (x + y) i = x i + y i

theorem WithCStarModule.sub_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (x y : WithCStarModule A ((i : ι) → E i)) (i : ι)
  [inst : (i : ι) → AddCommGroup (E i)], (x - y) i = x i - y i

theorem WithCStarModule.neg_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (x : WithCStarModule A ((i : ι) → E i)) (i : ι)
  [inst : (i : ι) → AddCommGroup (E i)], (-x) i = -x i

theorem WithCStarModule.smul_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} [inst : (i : ι) → SMul R (E i)] (c : R)
  (x : WithCStarModule A ((i : ι) → E i)) (i : ι), (c • x) i = c • x i

theorem WithCStarModule.equiv_pi_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (x : WithCStarModule A ((i : ι) → E i)) (i : ι),
  (WithCStarModule.equiv A ((i : ι) → E i)) x i = x i

theorem WithCStarModule.equiv_symm_pi_apply E0 #

∀ {A : Type u_2} {ι : Type u_3} {E : ι → Type u_4} (x : (i : ι) → E i) (i : ι),
  (WithCStarModule.equiv A ((i : ι) → E i)).symm x i = x i