The areas / V33. Data structures and computation
Mathlib.Data.QPF.Multivariate.Constructions.Comp
12 declarations. Mathlib docs · Source
def MvQPF.Comp E1 #
{n m : ℕ} → (TypeVec.{u} n → Type u_1) → (Fin2 n → TypeVec.{u} m → Type u) → TypeVec.{u} m → Type u_1
Composition of an n-ary functor with n m-ary
functors gives us one m-ary functor
instance MvQPF.Comp.instInhabited E0 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} →
{α : TypeVec.{u} m} → [I : Inhabited (F fun i ↦ G i α)] → Inhabited (MvQPF.Comp F G α)
def MvQPF.Comp.mk E1 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} → {α : TypeVec.{u} m} → (F fun i ↦ G i α) → MvQPF.Comp F G α
Constructor for functor composition
def MvQPF.Comp.get E1 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} → {α : TypeVec.{u} m} → MvQPF.Comp F G α → F fun i ↦ G i α
Destructor for functor composition
theorem MvQPF.Comp.mk_get E0 #
∀ {n m : ℕ} {F : TypeVec.{u} n → Type u_1} {G : Fin2 n → TypeVec.{u} m → Type u} {α : TypeVec.{u} m}
(x : MvQPF.Comp F G α), MvQPF.Comp.mk x.get = x
theorem MvQPF.Comp.get_mk E0 #
∀ {n m : ℕ} {F : TypeVec.{u} n → Type u_1} {G : Fin2 n → TypeVec.{u} m → Type u} {α : TypeVec.{u} m}
(x : F fun i ↦ G i α), (MvQPF.Comp.mk x).get = x
def MvQPF.Comp.map' E1 #
{n m : ℕ} →
{G : Fin2 n → TypeVec.{u} m → Type u} →
{α β : TypeVec.{u} m} → α.Arrow β → [(i : Fin2 n) → MvFunctor (G i)] → TypeVec.Arrow (fun i ↦ G i α) fun i ↦ G i β
map operation defined on a vector of functors
def MvQPF.Comp.map E1 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} →
{α β : TypeVec.{u} m} →
α.Arrow β → [MvFunctor F] → [(i : Fin2 n) → MvFunctor (G i)] → MvQPF.Comp F G α → MvQPF.Comp F G β
The composition of functors is itself functorial
instance MvQPF.Comp.instMvFunctor E0 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} →
[MvFunctor F] → [(i : Fin2 n) → MvFunctor (G i)] → MvFunctor (MvQPF.Comp F G)
theorem MvQPF.Comp.map_mk E0 #
∀ {n m : ℕ} {F : TypeVec.{u} n → Type u_1} {G : Fin2 n → TypeVec.{u} m → Type u} {α β : TypeVec.{u} m} (f : α.Arrow β)
[inst : MvFunctor F] [inst_1 : (i : Fin2 n) → MvFunctor (G i)] (x : F fun i ↦ G i α),
MvFunctor.map f (MvQPF.Comp.mk x) = MvQPF.Comp.mk (MvFunctor.map (fun i x ↦ MvFunctor.map f x) x)
theorem MvQPF.Comp.get_map E1 #
∀ {n m : ℕ} {F : TypeVec.{u} n → Type u_1} {G : Fin2 n → TypeVec.{u} m → Type u} {α β : TypeVec.{u} m} (f : α.Arrow β)
[inst : MvFunctor F] [inst_1 : (i : Fin2 n) → MvFunctor (G i)] (x : MvQPF.Comp F G α),
(MvFunctor.map f x).get = MvFunctor.map (fun i x ↦ MvFunctor.map f x) x.get
instance MvQPF.Comp.inst E0 #
{n m : ℕ} →
{F : TypeVec.{u} n → Type u_1} →
{G : Fin2 n → TypeVec.{u} m → Type u} → [MvQPF F] → [(i : Fin2 n) → MvQPF (G i)] → MvQPF (MvQPF.Comp F G)