You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there. So here's a neat little thing that possibly demonstrates Dict being one half of an adjunction between the Heyting algebra of constraints and the CCC of types and functions we know and love:
dataa:-bwhereProof:: (a⇒b) =>a:-binfixr0:-instanceCategory (:-)
whereid=ProofProof.Proof=Proof-- A functor Constraint -> TypetypeDict::Constraint->TypedataDictcwhereDict::c=>Dictc-- A functor Type -> ConstrainttypeOnly::Type->ConstraintclassOnlyxwhereonly::xinstancec=>Only (Dictc)
where
only =DicttypeMc=Only (Dictc)
typeCx=Dict (Onlyx)
-- The unit of the adjunctionunit::c:-Mc
unit =Proof-- The counit of the adjunctioncounit::Cx->x
counit Dict= only
I don't have a lot of time to explore this further but I figured I'd dump the beginning of the idea here and someone can tear it apart if it's wrong/build on it if it makes sense.
The text was updated successfully, but these errors were encountered:
Hello there. So here's a neat little thing that possibly demonstrates
Dict
being one half of an adjunction between the Heyting algebra of constraints and the CCC of types and functions we know and love:I don't have a lot of time to explore this further but I figured I'd dump the beginning of the idea here and someone can tear it apart if it's wrong/build on it if it makes sense.
The text was updated successfully, but these errors were encountered: