typed.clj.spec.subtype.test
Utilities to help debug and test the spec subtyping lattice.
db
(db)
Returns a clojure.core.logic.pldb database populated with facts from (sub/rels).
find-all-sub-rels
(find-all-sub-rels)
Returns all edges in the sub-rel relation.
find-bots
(find-bots)
Find the bottom types in the direct sub-rel hierarchy.
Returns a list of all edges to bottom types.
find-repeats
(find-repeats)
Return a list of types that occur more than once on the rhs
of a direct sub-rel rule.
find-tops
(find-tops)
Find the top types in the direct sub-rel hierarchy.
Returns a list of all edges to top types.
populate-db-from-rels
Given a map of rels from (sub/rels), returns a clojure.core.logic.pldb
database populated with facts from rels.