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 / V33. Data structures and computation

Mathlib.Data.QPF.Multivariate.Constructions.Quot

6 declarations. Mathlib docs · Source

def MvQPF.quotientQPF E1 #

{n : ℕ} →
  {F : TypeVec.{u} n → Type u} →
    [q : MvQPF F] →
      {G : TypeVec.{u} n → Type u} →
        [inst : MvFunctor G] →
          {FG_abs : {α : TypeVec.{u} n} → F α → G α} →
            {FG_repr : {α : TypeVec.{u} n} → G α → F α} →
              (∀ {α : TypeVec.{u} n} (x : G α), FG_abs (FG_repr x) = x) →
                (∀ {α β : TypeVec.{u} n} (f : α.Arrow β) (x : F α),
                    FG_abs (MvFunctor.map f x) = MvFunctor.map f (FG_abs x)) →
                  MvQPF G

If F is a QPF then G is a QPF as well. Can be used to construct MvQPF instances by transporting them across surjective functions

def MvQPF.Quot1 E1 #

{n : ℕ} → {F : TypeVec.{u} n → Type u} → (⦃α : TypeVec.{u} n⦄ → F α → F α → Prop) → TypeVec.{u} n → Type u

Functorial quotient type

instance MvQPF.Quot1.inhabited E0 #

{n : ℕ} →
  {F : TypeVec.{u} n → Type u} →
    (R : ⦃α : TypeVec.{u} n⦄ → F α → F α → Prop) → {α : TypeVec.{u} n} → [Inhabited (F α)] → Inhabited (MvQPF.Quot1 R α)

def MvQPF.Quot1.map E1 #

{n : ℕ} →
  {F : TypeVec.{u} n → Type u} →
    (R : ⦃α : TypeVec.{u} n⦄ → F α → F α → Prop) →
      [inst : MvFunctor F] →
        (∀ ⦃α β : TypeVec.{u} n⦄ (a b : F α) (f : α.Arrow β), R a b → R (MvFunctor.map f a) (MvFunctor.map f b)) →
          ⦃α β : TypeVec.{u} n⦄ → α.Arrow β → MvQPF.Quot1 R α → MvQPF.Quot1 R β

map of the Quot1 functor

def MvQPF.Quot1.mvFunctor E1 #

{n : ℕ} →
  {F : TypeVec.{u} n → Type u} →
    (R : ⦃α : TypeVec.{u} n⦄ → F α → F α → Prop) →
      [inst : MvFunctor F] →
        (∀ ⦃α β : TypeVec.{u} n⦄ (a b : F α) (f : α.Arrow β), R a b → R (MvFunctor.map f a) (MvFunctor.map f b)) →
          MvFunctor (MvQPF.Quot1 R)

mvFunctor instance for Quot1 with well-behaved R

def MvQPF.relQuot E1 #

{n : ℕ} →
  {F : TypeVec.{u} n → Type u} →
    (R : ⦃α : TypeVec.{u} n⦄ → F α → F α → Prop) →
      [q : MvQPF F] →
        (∀ ⦃α β : TypeVec.{u} n⦄ (a b : F α) (f : α.Arrow β), R a b → R (MvFunctor.map f a) (MvFunctor.map f b)) →
          MvQPF (MvQPF.Quot1 R)

Quot1 is a QPF