You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
I'm working on a formalization of Poly for my master's thesis with agda-categories and cubical agda and decided to write a little isomorphism from polynomials to functors and lenses to natural transformations, which are both pretty trivial but then I thought... is a chart also a NT? it is a map between functors after all... But it seems like it's not. So what kind of thing are charts? :thinking:
F-resp : {p : Polynomial} {A B : Set} {f g : A → B} {x : p ⦅ A ⦆ } → f ≡ g → applyFn p f x ≡ applyFn p g x --
F-resp {x = posApp , dirApp} pr = λ i → posApp , (pr i) ∘ dirApp
conv : {A B : Set} {f g : A → B} → ({x : A} → f x ≡p g x) → f ≡ g
conv p = funExt λ x → ptoc $ p
asEndo : (p : Polynomial) → Functor (Sets zero) (Sets zero)
asEndo p = record
{ F₀ = λ x → p ⦅ x ⦆
; F₁ = λ f → applyFn p f
; identity = Eq.refl
; homomorphism = Eq.refl
; F-resp-≈ = λ {_} {_} {f} {g} proof → ctop (F-resp {f = f} {g = g} (conv proof))
}
asNatTransArr : {p q : Polynomial} → Lens p q → NaturalTransformation (asEndo p) (asEndo q)
asNatTransArr (f ⇆ f♯) = record {
η = λ { X (posP , dirP) → f posP , dirP ∘ f♯ posP } ;
commute = λ f₁ → Eq.refl ;
sym-commute = λ f₁ → Eq.refl
}
asNatTransChart : {p q : Polynomial} → Chart p q → NaturalTransformation (asEndo p) (asEndo q)
asNatTransChart (f ⇉ f♭) = record {
η = λ { X (posP , dirP) → {! !}} ;
commute = {! !} ;
sym-commute = {! !}
}
This is a very good question, and I'd like to know the answer too... I'd bet nobody knows
What is (the definition of) a chart between polynomial functors?
I think the "chart" terminology exists exclusively in the categorical systems theory book by David Jaz Myers (which itself is pretty hard to find, it's only on Github)
It means a morphism in the fibrewise opposite of categories of lenses, ie. "like a lens except the backwards pass also goes forwards"
There's the isomorphism of categories , so the question is, what happens if you remove the op from the right hand side
Since objects can still be seen as polynomial functors, the answer is that it's some kind of morphism between polynomial functors that's different to natural transformations
I've only seen DJM talk about charts too, but the CSS book doesn't go into what kind of categorical thing it is. The definition is this:
record Chart (p q : Polynomial) : Set where
constructor _⇉_
field
mapPos : position p → position q
mapDir : (i : position p) → direction p i → direction q (mapPos i)
∘c : {p q r : Polynomial} → Chart q r → Chart p q → Chart p r
∘c (f ⇉ f♭) (g ⇉ g♭) = (f ∘ g) ⇉ λ i x → f♭ (g i) (g♭ i x)
idChart : {p : Polynomial} → Chart p p
idChart = id ⇉ λ _ → id
defs for Poly and Lens for completeness:
record Polynomial : Set₁ where
constructor mkpoly
field
position : Set
direction : position → Set
open Polynomial public
record Lens (from to : Polynomial) : Set where
constructor _⇆_
open Polynomial
field
mapPosition : position from → position to
mapDirection : (fromPos : position from) → direction to (mapPosition fromPos) → direction from fromPos
open Lens public
Jules Hedges said:
There's the isomorphism of categories , so the question is, what happens if you remove the op from the right hand side
Jules, what do the symbols on the right mean? I recognize the integral as an indexed category except the X:C would be on top. and then C / X is slice?
Yes, this is the Grothendieck construction of the indexed category given by the opposite of slice categories
Is this answer wrong, too trivial, or otherwise unwanted?
A polynomial functor is an object of the arrow category of Set; a chart is a morphism of that category.
I'm just looking at the Agda definition and substituting the names Polynomial
-> family, position
-> base, direction
-> fiber, etc.
I don't know much about arrow categories, but don't the morphisms correspond to natural transformations? they'd be lenses in that case. i'm reasonably confident charts are not natural transformations.
I'm ignoring everything associated with the phrase "polynomial functor" and instead building the map of sets where is position
and is the sigma type of direction
, together with its projection to the first component .
Then in Chart
I see if we have two of these , then we ask for a map together with, for each and element of , an element of ; those assemble into a map lying over , i.e., a commutative square. (Or indeed a natural transformation of diagrams from the category to Set.)
I assume this is somehow missing the point of the original question, because it doesn't have any direct relationship to the actual polynomial functor associated to the data Polynomial
.