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 / V08. Multilinear algebra and forms

Mathlib.Algebra.GradedFunLike

15 declarations. Mathlib docs ยท Source

Class of grading-preserving functions and isomorphisms

We define GradedFunLike F ๐’œ โ„ฌ where ๐’œ and โ„ฌ represent some sort of grading. This class assumes FunLike A B where A and B are the underlying types.

We also define GradedEquivLike E ๐’œ โ„ฌ, which is similar to EquivLike, where here e : E is required to satisfy x โˆˆ ๐’œ i โ†” e x โˆˆ โ„ฌ i.

class GradedFunLike E1 #

(F : Type u_1) โ†’
  {A : outParam (Type u_2)} โ†’
    {B : outParam (Type u_3)} โ†’
      {ฯƒ : outParam (Type u_4)} โ†’
        {ฯ„ : outParam (Type u_5)} โ†’
          {ฮน : outParam (Type u_6)} โ†’
            [SetLike ฯƒ A] โ†’ [SetLike ฯ„ B] โ†’ outParam (ฮน โ†’ ฯƒ) โ†’ outParam (ฮน โ†’ ฯ„) โ†’ [FunLike F A B] โ†’ Prop

The class GradedFunLike F ๐’œ โ„ฌ expresses that terms of type F have an injective coercion to grading-preserving functions from A to B, where ๐’œ is a grading on A and โ„ฌ is a grading on B. This typeclass has [FunLike F A B] as one of the assumptions. This typeclass is used in the characterisation of certain types of graded homomorphisms, such as GradedRingHom and GradedAlgHom. For example, what would be called "GradedRingHomClass F ๐’œ โ„ฌ" would be expressed as [FunLike F A B] [GradedFunLike F ๐’œ โ„ฌ] [RingHomClass F A B].

ctor GradedFunLike.mk E0 #

โˆ€ {F : Type u_1} {A : outParam (Type u_2)} {B : outParam (Type u_3)} {ฯƒ : outParam (Type u_4)} {ฯ„ : outParam (Type u_5)}
  {ฮน : outParam (Type u_6)} [inst : SetLike ฯƒ A] [inst_1 : SetLike ฯ„ B] {๐’œ : outParam (ฮน โ†’ ฯƒ)} {โ„ฌ : outParam (ฮน โ†’ ฯ„)}
  [inst_2 : FunLike F A B], (โˆ€ (f : F) {i : ฮน} {x : A}, x โˆˆ ๐’œ i โ†’ f x โˆˆ โ„ฌ i) โ†’ GradedFunLike F ๐’œ โ„ฌ

theorem GradedFunLike.map_mem E0 #

โˆ€ {F : Type u_1} {A : outParam (Type u_2)} {B : outParam (Type u_3)} {ฯƒ : outParam (Type u_4)} {ฯ„ : outParam (Type u_5)}
  {ฮน : outParam (Type u_6)} {inst : SetLike ฯƒ A} {inst_1 : SetLike ฯ„ B} {๐’œ : outParam (ฮน โ†’ ฯƒ)} {โ„ฌ : outParam (ฮน โ†’ ฯ„)}
  {inst_2 : FunLike F A B} [self : GradedFunLike F ๐’œ โ„ฌ] (f : F) {i : ฮน} {x : A}, x โˆˆ ๐’œ i โ†’ f x โˆˆ โ„ฌ i

theorem Graded.map_mem E0 #

โˆ€ {F : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : FunLike F A B] [GradedFunLike F ๐’œ โ„ฌ] (f : F) {i : ฮน} {x : A},
  x โˆˆ ๐’œ i โ†’ f x โˆˆ โ„ฌ i

def Graded.subtypeMap E1 #

{F : Type u_1} โ†’
  {A : Type u_2} โ†’
    {B : Type u_3} โ†’
      {ฯƒ : Type u_4} โ†’
        {ฯ„ : Type u_5} โ†’
          {ฮน : Type u_6} โ†’
            [inst : SetLike ฯƒ A] โ†’
              [inst_1 : SetLike ฯ„ B] โ†’
                {๐’œ : ฮน โ†’ ฯƒ} โ†’
                  {โ„ฌ : ฮน โ†’ ฯ„} โ†’ [inst_2 : FunLike F A B] โ†’ [GradedFunLike F ๐’œ โ„ฌ] โ†’ F โ†’ (i : ฮน) โ†’ โ†ฅ(๐’œ i) โ†’ โ†ฅ(โ„ฌ i)

A graded map descends to a map on each component.

class GradedEquivLike E1 #

(E : Type u_1) โ†’
  {A : outParam (Type u_2)} โ†’
    {B : outParam (Type u_3)} โ†’
      {ฯƒ : outParam (Type u_4)} โ†’
        {ฯ„ : outParam (Type u_5)} โ†’
          {ฮน : outParam (Type u_6)} โ†’
            [SetLike ฯƒ A] โ†’ [SetLike ฯ„ B] โ†’ outParam (ฮน โ†’ ฯƒ) โ†’ outParam (ฮน โ†’ ฯ„) โ†’ [EquivLike E A B] โ†’ Prop

The class GradedEquivLike E ๐’œ โ„ฌ says that E is a type of grading-preserving isomorphisms between ๐’œ and โ„ฌ. It is the combination of GradedFunLike E ๐’œ โ„ฌ and EquivLike E A B.

ctor GradedEquivLike.mk E0 #

โˆ€ {E : Type u_1} {A : outParam (Type u_2)} {B : outParam (Type u_3)} {ฯƒ : outParam (Type u_4)} {ฯ„ : outParam (Type u_5)}
  {ฮน : outParam (Type u_6)} [inst : SetLike ฯƒ A] [inst_1 : SetLike ฯ„ B] {๐’œ : outParam (ฮน โ†’ ฯƒ)} {โ„ฌ : outParam (ฮน โ†’ ฯ„)}
  [inst_2 : EquivLike E A B], (โˆ€ (e : E) {i : ฮน} {x : A}, e x โˆˆ โ„ฌ i โ†” x โˆˆ ๐’œ i) โ†’ GradedEquivLike E ๐’œ โ„ฌ

theorem GradedEquivLike.map_mem_iff E0 #

โˆ€ {E : Type u_1} {A : outParam (Type u_2)} {B : outParam (Type u_3)} {ฯƒ : outParam (Type u_4)} {ฯ„ : outParam (Type u_5)}
  {ฮน : outParam (Type u_6)} {inst : SetLike ฯƒ A} {inst_1 : SetLike ฯ„ B} {๐’œ : outParam (ฮน โ†’ ฯƒ)} {โ„ฌ : outParam (ฮน โ†’ ฯ„)}
  {inst_2 : EquivLike E A B} [self : GradedEquivLike E ๐’œ โ„ฌ] (e : E) {i : ฮน} {x : A}, e x โˆˆ โ„ฌ i โ†” x โˆˆ ๐’œ i

instance GradedEquivLike.toGradedFunLike E0 #

โˆ€ (E : Type u_1) {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] (๐’œ : ฮน โ†’ ฯƒ) (โ„ฌ : ฮน โ†’ ฯ„) [inst_2 : EquivLike E A B] [GradedEquivLike E ๐’œ โ„ฌ], GradedFunLike E ๐’œ โ„ฌ

theorem Graded.map_mem_iff E0 #

โˆ€ {E : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : EquivLike E A B] [GradedEquivLike E ๐’œ โ„ฌ] (e : E) {i : ฮน}
  {x : A}, e x โˆˆ โ„ฌ i โ†” x โˆˆ ๐’œ i

theorem Graded.mem_of_map_mem E0 #

โˆ€ {E : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : EquivLike E A B] [GradedEquivLike E ๐’œ โ„ฌ] (e : E) {i : ฮน}
  {x : A}, e x โˆˆ โ„ฌ i โ†’ x โˆˆ ๐’œ i

Alias of the forward direction of Graded.map_mem_iff.

theorem Graded.map_mem_of_mem E0 #

โˆ€ {E : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : EquivLike E A B] [GradedEquivLike E ๐’œ โ„ฌ] (e : E) {i : ฮน}
  {x : A}, x โˆˆ ๐’œ i โ†’ e x โˆˆ โ„ฌ i

Alias of the reverse direction of Graded.map_mem_iff.

def Graded.equiv E1 #

{E : Type u_1} โ†’
  {A : Type u_2} โ†’
    {B : Type u_3} โ†’
      {ฯƒ : Type u_4} โ†’
        {ฯ„ : Type u_5} โ†’
          {ฮน : Type u_6} โ†’
            [inst : SetLike ฯƒ A] โ†’
              [inst_1 : SetLike ฯ„ B] โ†’
                {๐’œ : ฮน โ†’ ฯƒ} โ†’
                  {โ„ฌ : ฮน โ†’ ฯ„} โ†’ [inst_2 : EquivLike E A B] โ†’ [GradedEquivLike E ๐’œ โ„ฌ] โ†’ E โ†’ (i : ฮน) โ†’ โ†ฅ(๐’œ i) โ‰ƒ โ†ฅ(โ„ฌ i)

A graded isomorphism descends to an isomorphism on each component.

theorem Graded.equiv_apply E0 #

โˆ€ {E : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : EquivLike E A B] [inst_3 : GradedEquivLike E ๐’œ โ„ฌ] (e : E)
  (i : ฮน) (x : โ†ฅ(๐’œ i)), (Graded.equiv e i) x = Graded.subtypeMap e i x

theorem Graded.equiv_symm_apply_coe E0 #

โˆ€ {E : Type u_1} {A : Type u_2} {B : Type u_3} {ฯƒ : Type u_4} {ฯ„ : Type u_5} {ฮน : Type u_6} [inst : SetLike ฯƒ A]
  [inst_1 : SetLike ฯ„ B] {๐’œ : ฮน โ†’ ฯƒ} {โ„ฌ : ฮน โ†’ ฯ„} [inst_2 : EquivLike E A B] [inst_3 : GradedEquivLike E ๐’œ โ„ฌ] (e : E)
  (i : ฮน) (y : โ†ฅ(โ„ฌ i)), โ†‘((Graded.equiv e i).symm y) = EquivLike.inv e โ†‘y