Skip to content

Commit

Permalink
Merge branch 'main' into drop-ispolynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkeizer committed Dec 4, 2024
2 parents 3a9cd03 + 2585928 commit be8918c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Qpf/PFunctor/Multivariate/Constructions/Arrow.lean
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ namespace Arrow



def box (f : Arrow' α Γ) : (QpfArrow' α Γ)
:= ⟨(), fun | 0 => f⟩
def box (f : Arrow'.{u} α Γ) : (QpfArrow' α Γ)
:= ⟨⟨⟩, fun | 0 => f⟩

def unbox : QpfArrow' α Γ → Arrow' α Γ
| ⟨_, f⟩ => f 0
Expand All @@ -60,7 +60,7 @@ namespace Arrow
instance : MvFunctor (Arrow' x) where
map f a := unbox <| (ArrowPFunctor x).map f <| box a

instance : MvQPF (Arrow' x) where
instance instMvQPF : MvQPF (Arrow' x) where
P := ArrowPFunctor x
abs := @unbox x
repr := @box x
Expand Down
11 changes: 6 additions & 5 deletions Qpf/PFunctor/Multivariate/Constructions/Prod.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace Prod

open PFin2 (fz fs)

def P : MvPFunctor 2
:= .mk Unit fun _ _ => PFin2 1
def P : MvPFunctor.{u} 2 :=
.mk PUnit fun _ _ => PFin2 1


abbrev QpfProd' := P.Obj
Expand All @@ -23,10 +23,11 @@ abbrev QpfProd := TypeFun.curried QpfProd'
def Prod' : TypeFun 2 :=
@TypeFun.ofCurried 2 Prod


/-- Constructor for `QpfProd'` -/
def mk (a : Γ 1) (b : Γ 0) : QpfProd' Γ
:=
(),
def mk (a : Γ 1) (b : Γ 0) : QpfProd'.{u} Γ :=
⟨⟩,
fun
| 1, _ => a
| 0, _ => b
Expand Down

0 comments on commit be8918c

Please sign in to comment.