1 package JSci.maths.categories; 2 3 9 public interface Category { 10 13 Morphism identity(Object a); 14 18 Object cardinality(Object a); 19 22 HomSet hom(Object a, Object b); 23 24 27 interface Morphism { 28 31 Object domain(); 32 35 Object codomain(); 36 39 Object map(Object o); 40 43 Morphism compose(Morphism m) throws UndefinedCompositionException; 44 } 45 46 49 interface HomSet {} 50 } 51 52 | Popular Tags |