AlgebraicJulia / AlgebraicJulia/Catlab.jl

FreePreorder should not use ObExpr and HomExpr

Ouverte
#979 0 commentaires 0 réactions 1 personne assignée Réclamée par @kris-brown Voir sur GitHub
bug
Langage dominant
Julia
Étoiles
724
Forks
73
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

As Nate Osgood as shown over Zulip, making the symbolic model use a `HomExpr` comes with the assumption that the theory has `dom` and `codom` available (this gets used in the `show` method for the hom generators). This assumption is not valid for `ThPreorder` which has `lhs` and `rhs` as its accessors, so there is an error when trying to show them.

A possible solution is to just make the symbolic model use GATExprs.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.