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.Normed.Lp.WithLp

81 declarations. Mathlib docs · Source

The WithLp type synonym

WithLp p V is a copy of V with exactly the same vector space structure, but with the Lp norm instead of any existing norm on V; recall that by default ι → R and R × R are equipped with a norm defined as the supremum of the norms of their components.

This file defines the vector space structure for all types V; the norm structure is built for different specializations of V in downstream files.

Note that this should not be used for infinite products, as in these cases the "right" Lp spaces is not the same as the direct product of the spaces. See the docstring in Mathlib/Analysis/PiLp for more details.

Main definitions

  • WithLp p V: a copy of V to be equipped with an Lp norm.
  • WithLp.toLp: the canonical inclusion from V to WithLp p V.
  • WithLp.ofLp: the canonical inclusion from WithLp p V to V.
  • WithLp.linearEquiv p K V: the canonical K-module isomorphism between WithLp p V and V.

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 (ProdLp, PiLp, etc), and allows all the structure-copying code to be shared.

TODO: is it safe to copy across the topology and uniform space structure too for all reasonable choices of V?

WithLp p V inherits various module-adjacent structures from V.

def WithLp.ctorIdx E1 #

{p : ENNReal} → {V : Type u_1} → WithLp p V → ℕ

theorem WithLp.toLp.inj E1 #

∀ {p : ENNReal} {V : Type u_1} {ofLp ofLp_1 : V}, WithLp.toLp p ofLp = WithLp.toLp p ofLp_1 → ofLp = ofLp_1

theorem WithLp.toLp.injEq E0 #

∀ (p : ENNReal) {V : Type u_1} (ofLp ofLp_1 : V), (WithLp.toLp p ofLp = WithLp.toLp p ofLp_1) = (ofLp = ofLp_1)

structure WithLp E3 #

ENNReal → Type u_1 → Type u_1

A type synonym for the given V, associated with the Lp norm. Note that by default this just forgets the norm structure on V; it is up to downstream users to implement the Lp norm (for instance, on Prod and finite Pi types).

ctor WithLp.toLp E3 #

(p : ENNReal) → {V : Type u_1} → V → WithLp p V

Converts an element of V to an element of WithLp p V.

abbrev WithLp.ofLp E3 #

{p : ENNReal} → {V : Type u_1} → WithLp p V → V

Converts an element of WithLp p V to an element of V.

def WithLp.delabToLp E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prevents toLp p x being printed as { ofLp := x } by delabStructureInstance.

def WithLp.equiv E1 #

(p : ENNReal) → (V : Type u_4) → WithLp p V ≃ V

WithLp.ofLp and WithLp.toLp as an equivalence.

theorem WithLp.equiv_apply E0 #

∀ (p : ENNReal) (V : Type u_4) (self : WithLp p V), (WithLp.equiv p V) self = self.ofLp

theorem WithLp.equiv_symm_apply_ofLp E0 #

∀ (p : ENNReal) (V : Type u_4) (ofLp : V), ((WithLp.equiv p V).symm ofLp).ofLp = ofLp

theorem WithLp.equiv_symm_apply E0 #

∀ (p : ENNReal) (V : Type u_4), ⇑(WithLp.equiv p V).symm = WithLp.toLp p

instance WithLp.instNontrivial E0 #

∀ (p : ENNReal) (V : Type u_4) [Nontrivial V], Nontrivial (WithLp p V)

instance WithLp.instUnique E0 #

(p : ENNReal) → (V : Type u_4) → [Unique V] → Unique (WithLp p V)

instance WithLp.instDecidableEq E0 #

(p : ENNReal) → (V : Type u_4) → [DecidableEq V] → DecidableEq (WithLp p V)

instance WithLp.instAddCommGroup E0 #

(p : ENNReal) → (V : Type u_4) → [AddCommGroup V] → AddCommGroup (WithLp p V)

instance WithLp.instSMul E0 #

(p : ENNReal) → (K : Type u_1) → (V : Type u_4) → [SMul K V] → SMul K (WithLp p V)

instance WithLp.instVAdd E0 #

(p : ENNReal) → (K : Type u_1) → (V : Type u_4) → [VAdd K V] → VAdd K (WithLp p V)

instance WithLp.instAddAction E0 #

(p : ENNReal) → (K : Type u_1) → (V : Type u_4) → [inst : AddMonoid K] → [AddAction K V] → AddAction K (WithLp p V)

instance WithLp.instMulAction E0 #

(p : ENNReal) → (K : Type u_1) → (V : Type u_4) → [inst : Monoid K] → [MulAction K V] → MulAction K (WithLp p V)

theorem WithLp.ofLp_toLp E1 #

∀ (p : ENNReal) {V : Type u_4} (x : V), (WithLp.toLp p x).ofLp = x

theorem WithLp.toLp_ofLp E0 #

∀ (p : ENNReal) {V : Type u_4} (x : WithLp p V), WithLp.toLp p x.ofLp = x

theorem WithLp.ext_iff E0 #

∀ (p : ENNReal) {V : Type u_4} {x y : WithLp p V}, x = y ↔ x.ofLp = y.ofLp

theorem WithLp.ofLp_surjective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Surjective WithLp.ofLp

theorem WithLp.toLp_surjective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Surjective (WithLp.toLp p)

theorem WithLp.ofLp_injective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Injective WithLp.ofLp

theorem WithLp.toLp_injective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Injective (WithLp.toLp p)

theorem WithLp.ofLp_bijective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Bijective WithLp.ofLp

theorem WithLp.toLp_bijective E1 #

∀ (p : ENNReal) {V : Type u_4}, Function.Bijective (WithLp.toLp p)

def WithLp.map E1 #

(p : ENNReal) → {V : Type u_4} → {V' : Type u_5} → (V → V') → WithLp p V → WithLp p V'

Lift a function to WithLp.

theorem WithLp.map_id E0 #

∀ (p : ENNReal) {V : Type u_4}, WithLp.map p id = id

theorem WithLp.map_comp E0 #

∀ (p : ENNReal) {V : Type u_4} {V' : Type u_5} {V'' : Type u_6} (f : V' → V'') (g : V → V'),
  WithLp.map p (f ∘ g) = WithLp.map p f ∘ WithLp.map p g

def WithLp.congr E1 #

(p : ENNReal) → {V : Type u_4} → {V' : Type u_5} → V ≃ V' → WithLp p V ≃ WithLp p V'

Lift an equivalence to WithLp.

theorem WithLp.coe_congr E0 #

∀ (p : ENNReal) {V : Type u_4} {V' : Type u_5} (f : V ≃ V'), ⇑(WithLp.congr p f) = WithLp.map p ⇑f

theorem WithLp.congr_refl E0 #

∀ (p : ENNReal) {V : Type u_4}, WithLp.congr p (Equiv.refl V) = Equiv.refl (WithLp p V)

theorem WithLp.congr_symm E0 #

∀ (p : ENNReal) {V : Type u_4} {V' : Type u_5} (f : V ≃ V'), (WithLp.congr p f).symm = WithLp.congr p f.symm

theorem WithLp.congr_trans E1 #

∀ (p : ENNReal) {V : Type u_4} {V' : Type u_5} {V'' : Type u_6} (f : V ≃ V') (g : V' ≃ V''),
  WithLp.congr p (f.trans g) = (WithLp.congr p f).trans (WithLp.congr p g)

theorem WithLp.toLp_zero E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V], WithLp.toLp p 0 = 0

theorem WithLp.ofLp_zero E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V], WithLp.ofLp 0 = 0

theorem WithLp.toLp_add E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x y : V),
  WithLp.toLp p (x + y) = WithLp.toLp p x + WithLp.toLp p y

theorem WithLp.ofLp_add E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x y : WithLp p V), (x + y).ofLp = x.ofLp + y.ofLp

theorem WithLp.toLp_sub E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x y : V),
  WithLp.toLp p (x - y) = WithLp.toLp p x - WithLp.toLp p y

theorem WithLp.ofLp_sub E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x y : WithLp p V), (x - y).ofLp = x.ofLp - y.ofLp

theorem WithLp.toLp_neg E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x : V), WithLp.toLp p (-x) = -WithLp.toLp p x

theorem WithLp.ofLp_neg E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] (x : WithLp p V), (-x).ofLp = -x.ofLp

theorem WithLp.toLp_eq_zero E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] {x : V}, WithLp.toLp p x = 0 ↔ x = 0

theorem WithLp.ofLp_eq_zero E0 #

∀ (p : ENNReal) {V : Type u_4} [inst : AddCommGroup V] {x : WithLp p V}, x.ofLp = 0 ↔ x = 0

theorem WithLp.toLp_smul E0 #

∀ (p : ENNReal) {K : Type u_1} {V : Type u_4} [inst : SMul K V] (c : K) (x : V),
  WithLp.toLp p (c • x) = c • WithLp.toLp p x

theorem WithLp.ofLp_smul E0 #

∀ (p : ENNReal) {K : Type u_1} {V : Type u_4} [inst : SMul K V] (c : K) (x : WithLp p V), (c • x).ofLp = c • x.ofLp

instance WithLp.instIsScalarTower E0 #

∀ (p : ENNReal) {K : Type u_1} (K' : Type u_2) {V : Type u_4} [inst : SMul K K'] [inst_1 : SMul K V]
  [inst_2 : SMul K' V] [IsScalarTower K K' V], IsScalarTower K K' (WithLp p V)

instance WithLp.instVAddAssocClass E0 #

∀ (p : ENNReal) {K : Type u_1} (K' : Type u_2) {V : Type u_4} [inst : VAdd K K'] [inst_1 : VAdd K V]
  [inst_2 : VAdd K' V] [VAddAssocClass K K' V], VAddAssocClass K K' (WithLp p V)

instance WithLp.instSMulCommClass E0 #

∀ (p : ENNReal) {K : Type u_1} (K' : Type u_2) {V : Type u_4} [inst : SMul K V] [inst_1 : SMul K' V]
  [SMulCommClass K K' V], SMulCommClass K K' (WithLp p V)

instance WithLp.instVAddCommClass E0 #

∀ (p : ENNReal) {K : Type u_1} (K' : Type u_2) {V : Type u_4} [inst : VAdd K V] [inst_1 : VAdd K' V]
  [VAddCommClass K K' V], VAddCommClass K K' (WithLp p V)

def WithLp.addEquiv E1 #

(p : ENNReal) → (V : Type u_4) → [inst : AddCommGroup V] → WithLp p V ≃+ V

WithLp.equiv as a group isomorphism.

theorem WithLp.addEquiv_apply E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (self : WithLp p V), (WithLp.addEquiv p V) self = self.ofLp

theorem WithLp.addEquiv_symm_apply E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (ofLp : V), (WithLp.addEquiv p V).symm ofLp = WithLp.toLp p ofLp

theorem WithLp.coe_addEquiv E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V], ⇑(WithLp.addEquiv p V) = WithLp.ofLp

theorem WithLp.coe_symm_addEquiv E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V], ⇑(WithLp.addEquiv p V).symm = WithLp.toLp p

theorem WithLp.ofLp_sum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] {ι : Type u_7} (s : Finset ι) (f : ι → WithLp p V),
  (∑ i ∈ s, f i).ofLp = ∑ i ∈ s, (f i).ofLp

theorem WithLp.toLp_sum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] {ι : Type u_7} (s : Finset ι) (f : ι → V),
  WithLp.toLp p (∑ i ∈ s, f i) = ∑ i ∈ s, WithLp.toLp p (f i)

theorem WithLp.ofLp_listSum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (l : List (WithLp p V)),
  l.sum.ofLp = (List.map WithLp.ofLp l).sum

theorem WithLp.toLp_listSum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (l : List V),
  WithLp.toLp p l.sum = (List.map (WithLp.toLp p) l).sum

theorem WithLp.ofLp_multisetSum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (s : Multiset (WithLp p V)),
  s.sum.ofLp = (Multiset.map WithLp.ofLp s).sum

theorem WithLp.toLp_multisetSum E0 #

∀ (p : ENNReal) (V : Type u_4) [inst : AddCommGroup V] (s : Multiset V),
  WithLp.toLp p s.sum = (Multiset.map (WithLp.toLp p) s).sum

instance WithLp.instDistribMulAction E0 #

(p : ENNReal) →
  (K : Type u_1) →
    (V : Type u_4) →
      [inst : Monoid K] → [inst_1 : AddCommGroup V] → [DistribMulAction K V] → DistribMulAction K (WithLp p V)

instance WithLp.instModule E0 #

(p : ENNReal) →
  (K : Type u_1) →
    (V : Type u_4) → [inst : Semiring K] → [inst_1 : AddCommGroup V] → [Module K V] → Module K (WithLp p V)

def WithLp.linearEquiv E1 #

(p : ENNReal) →
  (K : Type u_1) →
    (V : Type u_4) → [inst : Semiring K] → [inst_1 : AddCommGroup V] → [inst_2 : Module K V] → WithLp p V ≃ₗ[K] V

WithLp.equiv as a linear equivalence.

theorem WithLp.linearEquiv_apply E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  (a : WithLp p V), (WithLp.linearEquiv p K V) a = (WithLp.addEquiv p V).toFun a

theorem WithLp.linearEquiv_symm_apply E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  (a : V), (WithLp.linearEquiv p K V).symm a = (WithLp.addEquiv p V).invFun a

theorem WithLp.coe_linearEquiv E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  ⇑(WithLp.linearEquiv p K V) = WithLp.ofLp

theorem WithLp.coe_symm_linearEquiv E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  ⇑(WithLp.linearEquiv p K V).symm = WithLp.toLp p

theorem WithLp.toAddEquiv_linearEquiv E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  (WithLp.linearEquiv p K V).toAddEquiv = WithLp.addEquiv p V

instance WithLp.instModuleFinite E0 #

∀ (p : ENNReal) (K : Type u_1) (V : Type u_4) [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [Module.Finite K V], Module.Finite K (WithLp p V)

def LinearMap.withLpMap E1 #

(p : ENNReal) →
  {K : Type u_1} →
    {K' : Type u_2} →
      {V : Type u_4} →
        {V' : Type u_5} →
          [inst : Semiring K] →
            [inst_1 : Semiring K'] →
              {σ : K →+* K'} →
                [inst_2 : AddCommGroup V] →
                  [inst_3 : Module K V] →
                    [inst_4 : AddCommGroup V'] → [inst_5 : Module K' V'] → (V →ₛₗ[σ] V') → WithLp p V →ₛₗ[σ] WithLp p V'

Lift a (semi)linear map to WithLp.

theorem LinearMap.coe_withLpMap E0 #

∀ (p : ENNReal) {K : Type u_1} {K' : Type u_2} {V : Type u_4} {V' : Type u_5} [inst : Semiring K] [inst_1 : Semiring K']
  {σ : K →+* K'} [inst_2 : AddCommGroup V] [inst_3 : Module K V] [inst_4 : AddCommGroup V'] [inst_5 : Module K' V']
  (f : V →ₛₗ[σ] V'), ⇑(LinearMap.withLpMap p f) = WithLp.map p ⇑f

theorem LinearMap.withLpMap_id E0 #

∀ (p : ENNReal) {K : Type u_1} {V : Type u_4} [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  LinearMap.withLpMap p LinearMap.id = LinearMap.id

theorem LinearMap.withLpMap_comp E0 #

∀ (p : ENNReal) {K : Type u_1} {K' : Type u_2} {K'' : Type u_3} {V : Type u_4} {V' : Type u_5} {V'' : Type u_6}
  [inst : Semiring K] [inst_1 : Semiring K'] [inst_2 : Semiring K''] {σ : K →+* K'} {τ : K' →+* K''} {ρ : K →+* K''}
  [inst_3 : RingHomCompTriple σ τ ρ] [inst_4 : AddCommGroup V] [inst_5 : Module K V] [inst_6 : AddCommGroup V']
  [inst_7 : Module K' V'] [inst_8 : AddCommGroup V''] [inst_9 : Module K'' V''] (f : V' →ₛₗ[τ] V'') (g : V →ₛₗ[σ] V'),
  LinearMap.withLpMap p (f ∘ₛₗ g) = LinearMap.withLpMap p f ∘ₛₗ LinearMap.withLpMap p g

def LinearEquiv.withLpCongr E1 #

(p : ENNReal) →
  {K : Type u_1} →
    {K' : Type u_2} →
      {V : Type u_4} →
        {V' : Type u_5} →
          [inst : Semiring K] →
            [inst_1 : Semiring K'] →
              {σ : K →+* K'} →
                {σ' : K' →+* K} →
                  [inst_2 : RingHomInvPair σ σ'] →
                    [inst_3 : RingHomInvPair σ' σ] →
                      [inst_4 : AddCommGroup V] →
                        [inst_5 : Module K V] →
                          [inst_6 : AddCommGroup V'] →
                            [inst_7 : Module K' V'] → (V ≃ₛₗ[σ] V') → WithLp p V ≃ₛₗ[σ] WithLp p V'

Lift a (semi)linear equivalence to WithLp.

theorem LinearEquiv.coe_withLpCongr E0 #

∀ (p : ENNReal) {K : Type u_1} {K' : Type u_2} {V : Type u_4} {V' : Type u_5} [inst : Semiring K] [inst_1 : Semiring K']
  {σ : K →+* K'} {σ' : K' →+* K} [inst_2 : RingHomInvPair σ σ'] [inst_3 : RingHomInvPair σ' σ] [inst_4 : AddCommGroup V]
  [inst_5 : Module K V] [inst_6 : AddCommGroup V'] [inst_7 : Module K' V'] (f : V ≃ₛₗ[σ] V'),
  ⇑(LinearEquiv.withLpCongr p f) = WithLp.map p ⇑f

theorem LinearEquiv.withLpCongr_symm E0 #

∀ (p : ENNReal) {K : Type u_1} {K' : Type u_2} {V : Type u_4} {V' : Type u_5} [inst : Semiring K] [inst_1 : Semiring K']
  {σ : K →+* K'} {σ' : K' →+* K} [inst_2 : RingHomInvPair σ σ'] [inst_3 : RingHomInvPair σ' σ] [inst_4 : AddCommGroup V]
  [inst_5 : Module K V] [inst_6 : AddCommGroup V'] [inst_7 : Module K' V'] (f : V ≃ₛₗ[σ] V'),
  (LinearEquiv.withLpCongr p f).symm = LinearEquiv.withLpCongr p f.symm

theorem LinearEquiv.withLpCongr_refl E0 #

∀ (p : ENNReal) {K : Type u_1} {V : Type u_4} [inst : Semiring K] [inst_1 : AddCommGroup V] [inst_2 : Module K V],
  LinearEquiv.withLpCongr p (LinearEquiv.refl K V) = LinearEquiv.refl K (WithLp p V)

theorem LinearEquiv.withLpCongr_trans E1 #

∀ (p : ENNReal) {K : Type u_1} {K' : Type u_2} {K'' : Type u_3} {V : Type u_4} {V' : Type u_5} {V'' : Type u_6}
  [inst : Semiring K] [inst_1 : Semiring K'] [inst_2 : Semiring K''] {σ : K →+* K'} {σ' : K' →+* K}
  [inst_3 : RingHomInvPair σ σ'] [inst_4 : RingHomInvPair σ' σ] {τ : K' →+* K''} {τ' : K'' →+* K'}
  [inst_5 : RingHomInvPair τ τ'] [inst_6 : RingHomInvPair τ' τ] {ρ : K →+* K''} {ρ' : K'' →+* K}
  [inst_7 : RingHomInvPair ρ ρ'] [inst_8 : RingHomInvPair ρ' ρ] [inst_9 : RingHomCompTriple σ τ ρ]
  [inst_10 : RingHomCompTriple τ' σ' ρ'] [inst_11 : AddCommGroup V] [inst_12 : Module K V] [inst_13 : AddCommGroup V']
  [inst_14 : Module K' V'] [inst_15 : AddCommGroup V''] [inst_16 : Module K'' V''] (f : V ≃ₛₗ[σ] V')
  (g : V' ≃ₛₗ[τ] V''),
  LinearEquiv.withLpCongr p (f.trans g) = (LinearEquiv.withLpCongr p f).trans (LinearEquiv.withLpCongr p g)