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 / V06. Rings, fields and ordered algebra

Mathlib.Algebra.WithConv

67 declarations. Mathlib docs · Source

Type synonym for linear map convolutive ring and intrinsic star

This files provides the type synonym WithConv which we will use in later files to put the convolutive product on linear maps instance and the intrinsic star instance. This is to ensure that we only have one multiplication, one unit, and one star.

This is given for any type A so that we can have WithConv (A →ₗ[R] B), WithConv (A →L[R] B), WithConv (Matrix m n R), etc.

theorem WithConv.toConv.inj E1 #

∀ {A : Sort u_1} {ofConv ofConv_1 : A}, WithConv.toConv ofConv = WithConv.toConv ofConv_1 → ofConv = ofConv_1

theorem WithConv.toConv.injEq E0 #

∀ {A : Sort u_1} (ofConv ofConv_1 : A), (WithConv.toConv ofConv = WithConv.toConv ofConv_1) = (ofConv = ofConv_1)

def WithConv.ctorIdx E1 #

{A : Sort u_1} → WithConv A → ℕ

structure WithConv E1 #

Sort u_1 → Sort (max 1 u_1)

A type synonym for the convolutive product of linear maps and intrinsic star.

The instances for the convolutive product and intrinsic star are only available with this type.

Use WithConv.linearEquiv to coerce into this type.

ctor WithConv.toConv E0 #

{A : Sort u_1} → A → WithConv A

Converts an element of A to WithConv A.

abbrev WithConv.ofConv E1 #

{A : Sort u_1} → WithConv A → A

Converts an element of WithConv A back to A.

def WithConv.delabToConv E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prevents toConv x being printed as { ofConv := x } by delabStructureInstance.

theorem WithConv.ofConv_toConv E1 #

∀ {A : Type u_2} (x : A), (WithConv.toConv x).ofConv = x

theorem WithConv.toConv_ofConv E0 #

∀ {A : Type u_2} (x : WithConv A), WithConv.toConv x.ofConv = x

theorem WithConv.ofConv_surjective E1 #

∀ {A : Type u_2}, Function.Surjective WithConv.ofConv

theorem WithConv.toConv_surjective E1 #

∀ {A : Type u_2}, Function.Surjective WithConv.toConv

theorem WithConv.ofConv_injective E1 #

∀ {A : Type u_2}, Function.Injective WithConv.ofConv

theorem WithConv.toConv_injective E1 #

∀ {A : Type u_2}, Function.Injective WithConv.toConv

theorem WithConv.ofConv_bijective E1 #

∀ {A : Type u_2}, Function.Bijective WithConv.ofConv

theorem WithConv.toConv_bijective E1 #

∀ {A : Type u_2}, Function.Bijective WithConv.toConv

instance WithConv.instCoeFunForall E0 #

{A : Type u_2} → {B : Type u_3} → {C : Type u_4} → [CoeFun A fun x ↦ B → C] → CoeFun (WithConv A) fun x ↦ B → C

theorem WithConv.ext E1 #

∀ {A : Type u_2} {x y : WithConv A}, x.ofConv = y.ofConv → x = y

theorem WithConv.ext_iff E0 #

∀ {A : Type u_2} {x y : WithConv A}, x = y ↔ x.ofConv = y.ofConv

def WithConv.equiv E1 #

(A : Type u_2) → WithConv A ≃ A

WithConv.ofConv and WithConv.toConv as an equivalence.

theorem WithConv.equiv_apply E0 #

∀ {A : Type u_2} (x : WithConv A), (WithConv.equiv A) x = x.ofConv

theorem WithConv.symm_equiv_apply E0 #

∀ {A : Type u_2} (x : A), (WithConv.equiv A).symm x = WithConv.toConv x

instance WithConv.instNontrivial E0 #

∀ {A : Type u_2} [Nontrivial A], Nontrivial (WithConv A)

instance WithConv.instUnique E0 #

{A : Type u_2} → [Unique A] → Unique (WithConv A)

instance WithConv.instDecidableEq E0 #

{A : Type u_2} → [DecidableEq A] → DecidableEq (WithConv A)

instance WithConv.instAddMonoid E0 #

{A : Type u_2} → [AddMonoid A] → AddMonoid (WithConv A)

instance WithConv.instAddCommMonoid E0 #

{A : Type u_2} → [AddCommMonoid A] → AddCommMonoid (WithConv A)

instance WithConv.instAddGroup E0 #

{A : Type u_2} → [AddGroup A] → AddGroup (WithConv A)

instance WithConv.instAddCommGroup E0 #

{A : Type u_2} → [AddCommGroup A] → AddCommGroup (WithConv A)

instance WithConv.instMulAction E0 #

{R : Type u_1} → {A : Type u_2} → [inst : Monoid R] → [MulAction R A] → MulAction R (WithConv A)

instance WithConv.instAddAction E0 #

{R : Type u_1} → {A : Type u_2} → [inst : AddMonoid R] → [AddAction R A] → AddAction R (WithConv A)

def WithConv.congr E1 #

{A : Type u_2} → {B : Type u_3} → A ≃ B → WithConv A ≃ WithConv B

Lift an equivalence between A and B to WithConv A and WithConv B.

theorem WithConv.congr_apply E0 #

∀ {A : Type u_2} {B : Type u_3} (f : A ≃ B) (x : WithConv A), (WithConv.congr f) x = WithConv.toConv (f x.ofConv)

theorem WithConv.symm_congr E0 #

∀ {A : Type u_2} {B : Type u_3} (f : A ≃ B), (WithConv.congr f).symm = WithConv.congr f.symm

theorem WithConv.symm_congr_apply E0 #

∀ {A : Type u_2} {B : Type u_3} (f : A ≃ B) (x : WithConv B),
  (WithConv.congr f).symm x = WithConv.toConv (f.symm x.ofConv)

theorem WithConv.toConv_sub E0 #

∀ {A : Type u_2} [inst : AddGroup A] (x y : A), WithConv.toConv (x - y) = WithConv.toConv x - WithConv.toConv y

theorem WithConv.ofConv_sub E0 #

∀ {A : Type u_2} [inst : AddGroup A] (x y : WithConv A), (x - y).ofConv = x.ofConv - y.ofConv

theorem WithConv.ofConv_neg E0 #

∀ {A : Type u_2} [inst : AddGroup A] (x : WithConv A), (-x).ofConv = -x.ofConv

theorem WithConv.toConv_neg E0 #

∀ {A : Type u_2} [inst : AddGroup A] (x : A), WithConv.toConv (-x) = -WithConv.toConv x

theorem WithConv.ofConv_smul E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Monoid R] [inst_1 : MulAction R A] (c : R) (x : WithConv A),
  (c • x).ofConv = c • x.ofConv

theorem WithConv.toConv_smul E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : Monoid R] [inst_1 : MulAction R A] (c : R) (x : A),
  WithConv.toConv (c • x) = c • WithConv.toConv x

theorem WithConv.ofConv_zero E0 #

∀ {A : Type u_2} [inst : AddMonoid A], WithConv.ofConv 0 = 0

theorem WithConv.toConv_zero E0 #

∀ {A : Type u_2} [inst : AddMonoid A], WithConv.toConv 0 = 0

theorem WithConv.ofConv_add E0 #

∀ {A : Type u_2} [inst : AddMonoid A] (x y : WithConv A), (x + y).ofConv = x.ofConv + y.ofConv

theorem WithConv.toConv_add E0 #

∀ {A : Type u_2} [inst : AddMonoid A] (x y : A), WithConv.toConv (x + y) = WithConv.toConv x + WithConv.toConv y

theorem WithConv.ofConv_eq_zero E0 #

∀ {A : Type u_2} [inst : AddMonoid A] {x : WithConv A}, x.ofConv = 0 ↔ x = 0

theorem WithConv.toConv_eq_zero E0 #

∀ {A : Type u_2} [inst : AddMonoid A] {x : A}, WithConv.toConv x = 0 ↔ x = 0

def WithConv.addEquiv E1 #

(A : Type u_2) → [inst : AddMonoid A] → WithConv A ≃+ A

The additive equivalence between WithConv A and A.

theorem WithConv.addEquiv_symm_apply_ofConv E0 #

∀ (A : Type u_2) [inst : AddMonoid A] (ofConv : A), ((WithConv.addEquiv A).symm ofConv).ofConv = ofConv

theorem WithConv.addEquiv_apply E0 #

∀ (A : Type u_2) [inst : AddMonoid A] (self : WithConv A), (WithConv.addEquiv A) self = self.ofConv

theorem WithConv.toEquiv_addEquiv E0 #

∀ {A : Type u_2} [inst : AddMonoid A], ↑(WithConv.addEquiv A) = WithConv.equiv A

instance WithConv.instDistribMulAction E0 #

{R : Type u_1} →
  {A : Type u_2} →
    [inst : Monoid R] → [inst_1 : AddCommMonoid A] → [DistribMulAction R A] → DistribMulAction R (WithConv A)

instance WithConv.instModule E0 #

{R : Type u_1} →
  {A : Type u_2} → [inst : Semiring R] → [inst_1 : AddCommMonoid A] → [Module R A] → Module R (WithConv A)

def WithConv.linearEquiv E1 #

(R : Type u_1) →
  (A : Type u_2) → [inst : AddCommMonoid A] → [inst_1 : Semiring R] → [inst_2 : Module R A] → WithConv A ≃ₗ[R] A

The linear equivalence between WithConv A and A.

theorem WithConv.linearEquiv_apply E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A] (a : WithConv A),
  (WithConv.linearEquiv R A) a = a.ofConv

theorem WithConv.symm_linearEquiv_apply E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A] (a : A),
  (WithConv.linearEquiv R A).symm a = WithConv.toConv a

theorem WithConv.toAddEquiv_linearEquiv E0 #

∀ {R : Type u_1} {A : Type u_2} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A],
  (WithConv.linearEquiv R A).toAddEquiv = WithConv.addEquiv A

theorem WithConv.ofConv_sum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] {ι : Type u_5} (s : Finset ι) (f : ι → WithConv A),
  (∑ i ∈ s, f i).ofConv = ∑ i ∈ s, (f i).ofConv

theorem WithConv.toConv_sum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] {ι : Type u_5} (s : Finset ι) (f : ι → A),
  WithConv.toConv (∑ i ∈ s, f i) = ∑ i ∈ s, WithConv.toConv (f i)

theorem WithConv.ofConv_listSum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] (l : List (WithConv A)), l.sum.ofConv = (List.map WithConv.ofConv l).sum

theorem WithConv.toConv_listSum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] (l : List A), WithConv.toConv l.sum = (List.map WithConv.toConv l).sum

theorem WithConv.ofConv_multisetSum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] (s : Multiset (WithConv A)),
  s.sum.ofConv = (Multiset.map WithConv.ofConv s).sum

theorem WithConv.toConv_multisetSum E0 #

∀ {A : Type u_2} [inst : AddCommMonoid A] (s : Multiset A), WithConv.toConv s.sum = (Multiset.map WithConv.toConv s).sum

def WithConv.congrLinearEquiv E1 #

{R : Type u_1} →
  {A : Type u_2} →
    {B : Type u_3} →
      [inst : AddCommMonoid A] →
        [inst_1 : Semiring R] →
          [inst_2 : Module R A] →
            [inst_3 : AddCommMonoid B] → [inst_4 : Module R B] → (A ≃ₗ[R] B) → WithConv A ≃ₗ[R] WithConv B

Lift a linear equivalence between A and B to WithConv A and WithConv B.

theorem WithConv.congrLinearEquiv_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A]
  [inst_3 : AddCommMonoid B] [inst_4 : Module R B] (f : A ≃ₗ[R] B) (x : WithConv A),
  (WithConv.congrLinearEquiv f) x = WithConv.toConv (f x.ofConv)

theorem WithConv.symm_congrLinearEquiv E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A]
  [inst_3 : AddCommMonoid B] [inst_4 : Module R B] (f : A ≃ₗ[R] B),
  (WithConv.congrLinearEquiv f).symm = WithConv.congrLinearEquiv f.symm

theorem WithConv.symm_congrLinearEquiv_apply E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A]
  [inst_3 : AddCommMonoid B] [inst_4 : Module R B] (f : A ≃ₗ[R] B) (x : WithConv B),
  (WithConv.congrLinearEquiv f).symm x = WithConv.toConv (f.symm x.ofConv)

theorem WithConv.toEquiv_congrLinearEquiv E0 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : AddCommMonoid A] [inst_1 : Semiring R] [inst_2 : Module R A]
  [inst_3 : AddCommMonoid B] [inst_4 : Module R B] (f : A ≃ₗ[R] B),
  (WithConv.congrLinearEquiv f).toEquiv = WithConv.congr f.toEquiv