Skip to content

Commit bedd64c

Browse files
committed
restructring MvPoly
1 parent 0d52576 commit bedd64c

6 files changed

Lines changed: 23 additions & 15 deletions

File tree

Poly.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ import Poly.ForMathlib.CategoryTheory.LocallyCartesianClosed.Presheaf
77
-- import Poly.Type.Univariate
88
-- import Poly.Exponentiable
99
import Poly.UvPoly.Basic
10+
import Poly.MvPoly.Basic
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import Mathlib.CategoryTheory.Extensive
2424

2525
noncomputable section
2626

27+
namespace CategoryTheory
28+
2729
open CategoryTheory Category Limits Functor Adjunction ExponentiableMorphism
2830

2931
variable {C : Type*} [Category C] [HasPullbacks C] [HasTerminal C] [HasFiniteWidePullbacks C]
@@ -67,7 +69,7 @@ instance [HasInitial C] (X : C) : ExponentiableMorphism (initial.to X) := sorry
6769

6870
/-- The constant polynomial in many variables: for this we need the initial object. -/
6971
def const {I O : C} [HasInitial C] (A : C) [HasBinaryProduct O A] : MvPoly I O :=
70-
⟨⊥_ C, prod O A, initial.to I , initial.to _, inferInstance, prod.fst⟩
72+
⟨⊥_ C, Limits.prod O A, initial.to I , initial.to _, inferInstance, prod.fst⟩
7173

7274
/-- The monomial polynomial in many variables. -/
7375
def monomial {I O E : C} (i : E ⟶ I) (p : E ⟶ O) [ExponentiableMorphism p]: MvPoly I O :=
@@ -79,10 +81,7 @@ def sum {I O : C} [HasBinaryCoproducts C] (P Q : MvPoly I O) : MvPoly I O where
7981
B := P.B ⨿ Q.B
8082
i := coprod.desc P.i Q.i
8183
p := coprod.map P.p Q.p
82-
exp := by { sorry
83-
-- functor := sorry -- prove that the sum of exponentiables is exponentiable.
84-
-- adj := sorry
85-
}
84+
exp := sorry
8685
o := coprod.desc P.o Q.o
8786

8887
/-- The product of two polynomials in many variables. -/
@@ -246,6 +245,6 @@ def functorIsoFunctor' [HasBinaryProducts C] (P : UvPoly E B) : P.functor ≅ P.
246245

247246
end UvPoly
248247

249-
248+
end CategroyTheory
250249

251250
end

blueprint/src/chapter/mvpoly.tex

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@
1010
\end{definition}
1111

1212

13-
% \begin{definition}[multivariable polynomial functors]
14-
% \label{defPolynomialFunctor}
15-
% \label{defExtension}
16-
% \index{polynomial!functor@{---} functor}
17-
% \index{polynomial!extension of a {---}}
18-
% The \textbf{extension} of a polynomial $F : \declpoly IBAJsft$ in a locally cartesian closed category $\mathcal{E}$ is the functor $\upP_F = \upSigma_t \upPi_f \upDelta_s : \mathcal{E} \slice{I} \to \mathcal{E} \slice{J}$. Internally, we can define $\upP_F$ by
19-
% $$\upP_F \seqbn{X_i}{i \in I} = \seqbn{\sum_{a \in A_j} \prod_{b \in B_a} X_{s(b)}}{j \in J}$$
20-
% A \textbf{polynomial functor} is a functor that is naturally isomorphic to the extension of a polynomial.
21-
% \end{definition}
13+
\begin{definition}[extension of polynomial functors]
14+
\label{defn:extension}
15+
\lean{CategoryTheory.MvPoly.functor} \leanok
16+
The \textbf{extension} of a polynomial $\polyspan IBAJipo$ is the functor
17+
$\upP = o_! \, f_* \, i^* \colon \catC / I \to \catC/ O$. Internally, we can define $\upP$ by
18+
$$\upP \seqbn{X_i}{i \in I} = \seqbn{\sum_{a \in A_j} \prod_{b \in B_a} X_{s(b)}}{j \in J}$$
19+
A \textbf{polynomial functor} is a functor that is naturally isomorphic to the extension of a polynomial.
20+
\end{definition}

blueprint/src/macros/common.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
\newcommand{\Two}{\bullet+\bullet}
8080

8181
%%% Polynomials
82+
\newcommand{\polyspan}[7]{#1 \xleftarrow{#5} #2 \xrightarrow{#6} #3 \xrightarrow{#7} #4}
8283
\newcommand{\PolyComp}{\lhd}
84+
\newcommand{\upP}{\mathrm{P}}
8385
\newcommand{\Poly}[1]{P_{#1}}
8486
\newcommand{\Star}[1]{{#1}^{\star}}
8587

@@ -141,6 +143,13 @@
141143
\newcommand{\Si}{\Sigma}
142144
\newcommand{\Om}{\Omega}
143145

146+
% % Families
147+
\newcommand{\setbn}[2]{\left\{\left. #1 \ \middle\rvert\ #2 \right.\right\}}
148+
\newcommand{\seqbn}[2]{\left(\left. #1 \ \middle\rvert\ #2 \right.\right)}
149+
\newcommand{\sqseqbn}[2]{\left[\left. #1 \ \middle\rvert\ #2 \right.\right]}
150+
\newcommand{\append}{\mathbin{^\frown}}
151+
152+
144153
% % Misc
145154
% \newenvironment{bprooftree}
146155
% {\leavevmode\hbox\bgroup}

blueprint/src/print.pdf

-31.7 KB
Binary file not shown.

blueprint/src/web.paux

-1.51 KB
Binary file not shown.

0 commit comments

Comments
 (0)