AlgebraicJulia / AlgebraicJulia/ACSets.jl

Morphisms between atttribute types in acset schema

Đang mở
#6 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Julia
Star
36
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The category of attributes in the schema is assumed to be discrete, but it would helpful to allow the specification of morphisms.

For example, the schema for a free diagram is currently as defined:

```julia
@present TheoryFreeDiagram <: TheoryGraph begin
Ob::AttrType
Hom::AttrType
ob::Attr(V,Ob)
hom::Attr(E,Hom)
end
```

Since a free diagram is supposed to be a functor out of a freely generated category, it would be better to have:

```julia
@present TheoryFreeDiagram <: TheoryGraph begin
Ob::AttrType
Hom::AttrType
dom::AttrHom(Hom,Ob)
codom::AttrHom(Hom,Ob)

ob::Attr(V,Ob)
hom::Attr(E,Hom)

compose(src, ob) == compose(hom, dom)
compose(tgt, ob) == compose(hom, codom)
end
```

The intended interpretation is that whatever Julia types instantiate `Ob` and `Hom` should have methods `dom(::Hom)::Ob` and `codom(::Hom)::Ob` and then the instance data should satisfy the two equations.

At least to start with, this feature would be for documentation/specification purposes and would not provide any new functionality. Thoughts on this, @olynch?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.