|
|
last edited 8 years ago by test1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ||
Editor: gdr
Time: 2008/05/28 22:06:22 GMT-7 |
||
Note: domains belong to Category |
added:
From gdr Wed May 28 22:06:22 -0700 2008
From: gdr
Date: Wed, 28 May 2008 22:06:22 -0700
Subject: domains belong to Category
Message-ID: <20080528220622-0700@axiom-wiki.newsynthesis.org>
OpenAxiom trunk as of 2008-05-29 says this:
(1) -> Category has Category
(1) ->
(1) true
Type: Boolean
(2) -> Domain has Category
(2) ->
(2) true
Type: Boolean
(3) -> Category has Type
(3) ->
(3) true
Type: Boolean
The file algebra/domain.spad.pamphlet
contains this definition:
)abbrev domain CATEGORY Category ++ Author: Gabriel Dos Reis ++ Date Create: February 16, 2008. ++ Date Last Updated: February 16, 2008. ++ Basic Operations: coerce ...
but OpenAxiom? does not always treat Category
this way:
axiom)show Category Category is a domain constructor Abbreviation for Category is CATEGORY This constructor is not exposed in this frame. Issue )edit /usr/local/lib/open-axiom/x86_64-unknown- linux/1.2.0-2008-05-25/src/algebra/CATEGORY.spad to see algebra source code for CATEGORY ------------------------------- Operations -------------------------------- coerce : % -> OutputForm
axiomCategory
![]() | (1) |
axiomx:Category Category is a category, not a domain, and declarations require domains.
axiomCategory has Category
![]() | (2) |
axiomDomain has Category
![]() | (3) |
axiomCategory has Type
![]() | (4) |
Category is conceptually a category -- even when it has a domain implementation
Could you please explain what that means? :-)
At the conceptual level, OpenAixom? thinks of Category as a category. The category of categories. However, it has a domain implementation, e.g. as reported by )show. That is just an implementation detail. OpenAxiom? trunk as of 2008-05-29 says this:(1) -> Category has Category (1) -> (1) true Type: Boolean (2) -> Domain has Category (2) -> (2) true Type: Boolean (3) -> Category has Type (3) -> (3) true Type: Boolean