Login
You're viewing the discuss.systems public feed.

Replies

  • Dec 8, 2025, 10:27 AM

    I literally searched for 30+ minutes to find a good definition.

    💬 0🔄 0⭐ 0
  • Dec 8, 2025, 12:10 PM

    @apostolis It's two different mechanisms to check for the same property, and the syntax-based mechanism is more conservative (more false non-strictly-positives) than the modality-based one.

    I think the best semantic definition of a strictly positive operation on types [type families] is a polynomial functor (a.k.a. [indexed] container functor) on the category of [indexed] types.

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Dec 8, 2025, 6:48 PM

    @anuytstt

    For a specific indexed coinductive type, what would be the easiest way to define its functor and terminal object with regards to its coalgebra?

    For a non-indexed, it is pretty easy, but not for the indexed case.

    For example, how would you define the functor for this :

    "
    record Stream (n : ℕ) : 𝓤₀ ̇ where
    coinductive
    field
    k : ℕ
    cond : succ n ≤ k
    next : Stream k

    "

    💬 1🔄 0⭐ 0
  • Dec 8, 2025, 10:29 PM

    @apostolis
    So you get a functor F : Type^Nat -> Type^Nat with
    F X n = Σ (k : Nat) . (succ n ≤ k) x (X k).

    I suspect we're talking past each other?

    💬 1🔄 0⭐ 0
  • Dec 8, 2025, 11:19 PM

    @anuytstt Perfect, that is what I was expecting but I couldn't find it somewhere.

    In the paper , it is defined differently.

    Image attached toot
    💬 1🔄 0⭐ 0
  • Dec 9, 2025, 11:38 AM

    @apostolis IFunc is the type of functors from Set^I to Set, which are not endofunctors, and therefore do not qualify to have any fixpoints.

    Could you link to this paper?

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Dec 9, 2025, 12:50 PM

    @anuytstt

    I think that the main point here is that although programming categorically is easy, there is not enough documentation how to do it, it is an antipattern, and the papers that use categories are not suitable for the working programmer / mathematician.

    💬 0🔄 0⭐ 0
  • Dec 9, 2025, 6:33 PM

    @apostolis Oh no, I should stop recommending this paper to people…
    Perhaps this presentation was sensible when the paper was written, but at least in today's perspective, this seems very undidactical.

    💬 0🔄 0⭐ 0