Relations and Selb

Selb is a locally posetal dagger-category formed from selbri. Specifically, it is the bicategory of relations over sumti, whose:

  • objects are classes ("collections", "sets", "masses", etc.) of sumti
  • arrows are selbri
  • transformations are inclusions/subrelations between selbri

Summary

Here is a high-level summary of our analogy between logic and Lojban:

LojbanSet theoryAllegory / dagger-category theory
lo selbri (arity 2)binary relationarrow ("morphism")
lo cmimaelementarrow from zero object
lo selcmiinhabited setobject with incoming/outgoing arrows
lo selbri (arity 1)subset / injectionmonomorphism
gai'oempty relationbottom arrow
cei'isingleton relationtop arrow
duidentity relationidentity arrow
seinversion of relationsdagger

Formal Proofs

Via 1Lab

The 1Lab module Cat.Allegory.Base defines allegories and proves several of their properties. By proving its axioms, we show that Selb is an allegory relative to 1Lab's foundations (cubical type theory within homotopy type theory.) We translate as follows:

Agda syntaxbrismu syntax
Hom, Typebridi (metatheoretical)
ganai
go
&, => (metatheoretical)
se
(non-primitive)
ge

Note that hom-sets and types are both simplified to bridi. Also note that Metamath is uncurried and Agda is curried, so Agda arrows can be either conjunctive or deductive. We do not include the is-prop assumption because Metamath's deductive systems usually give non-thin categories. We aren't especially worried about h-levels, so this is not a serious issue.

1Lab axiomMetamath entry
_≤_bgan
≤-reflid
≤-transsyl
≤-antisymiso
_◆_todo
_†sbs
dualno closed form yet, can be inferred from se-invo and seri seri respectively
dual-∘todo
dual-≤se-dual
_∩_bge
∩-le-lax-ge-le
∩-le-rax-ge-re
∩-univno closed form yet, deductive form of ge-ini
modulartodo

We also reprove the following theorems:

1Lab theoremMetamath theorem
≤-yonedatodo
dual-≤ₗse-dual-l
dual-≤ᵣse-dual-r
_dual-∩todo
dual-idse-du-elim

Interpreting natural deduction

Each logic in natural deduction can be used to give judgements, like "P is true." Wikipedia lists "P is possibly true," "P is always true," "P is true at a given time," "P is justifiably believable," "P is provable," and "P is constructible from the given resources," as other examples in other logics. What does relational logic give us? Relational logic judgements are of the form "P is true at least once;" we can imagine that a bridi is not just true or false, but true for each of the many possible values that are being related, and that there may be multiple worlds that provide a context where a statement is true.