Documentation

Linglib.Core.Categorical.PartitionCat

Category of QUD Partitions #

Category of QUD (Question Under Discussion) partitions over a fixed type M, with refinement witnesses as morphisms.

This is a thin category (at most one morphism between any two objects): refinement is a preorder on partitions, and all refinement proofs between the same QUDs are equal by proof irrelevance.

QUD.refines_refl and QUD.refines_trans from Partition.lean provide the categorical identity and composition.

structure Core.Categorical.BundledQUD (M : Type u_1) :
Type u_1

Bundled QUD: an object in the partition category for a fixed meaning type.

  • qud : QUD M

    The underlying QUD partition.

Instances For
    def Core.Categorical.QUDHom {M : Type u_1} (q q' : BundledQUD M) :

    Hom type for the QUD category: a refinement witness lifted to Type.

    QUD.refines is Prop-valued; PLift promotes it to Type 0 so it can serve as a CategoryTheory.Category hom type. The category is thin (at most one morphism between any two objects).

    Equations
    Instances For

      QUDHom is proof-irrelevant: at most one morphism between any two objects.

      Equations
      • One or more equations did not get rendered due to their size.

      The trivial partition is terminal: every QUD refines it.

      Equations
      Instances For
        def Core.Categorical.QUDHom.composeLeft {M : Type u_1} (q₁ q₂ : BundledQUD M) :
        QUDHom { qud := q₁.qud * q₂.qud } q₁

        Compose of two QUDs refines the left factor.

        Equations
        Instances For