|
This domain provides a function-like type that can be queried
for domain and co-domain.
aldor #include "axiom.as"
T ==> SetCategory;
Signature(source:T, target:T): with {
domain:%->T;
codomain:%->T;
coerce:(source->target) -> %;
coerce:%->(source->target);
coerce:%->OutputForm;
} == (source->target) add {
Rep == (source->target);
domain(p:%):T == source;
codomain(p:%):T == target;
coerce(r:(source->target)):% == per(r);
coerce(p:%):(source->target) == p pretend (source->target);
coerce(p:%):OutputForm == p pretend OutputForm;
};
aldor Compiling FriCAS source code from file
/var/zope2/var/LatexWiki/sig.as using AXIOM-XL compiler and
options
-O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra
Use the system command )set compiler args to change these
options.
"/var/zope2/var/LatexWiki/sig.as", line 13:
domain(p:%):T == source;
.........^
[L13 C10] #1 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).
"/var/zope2/var/LatexWiki/sig.as", line 14:
codomain(p:%):T == target;
...........^
[L14 C12] #2 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).
Compiling Lisp source code from file ./sig.lsp
Issuing )library command for sig
Reading /var/zope2/var/LatexWiki/sig.asy
Signature is now explicitly exposed in frame initial
Signature will be automatically loaded when needed from
/var/zope2/var/LatexWiki/sig
aldor #include "axiom.as"
T ==> SetCategory;
Signature2(source1:T, source2:T, target:T): with {
domain:%->T;
codomain:%->T;
coerce:((source1,source2)->target) -> %;
coerce:%->((source1,source2)->target);
coerce:%->OutputForm;
} == ((source1,source2)->target) add {
Rep == ((source1,source2)->target);
domain(p:%):T == Product(source1,source2);
codomain(p:%):T == target;
coerce(r:(source1,source2)->target):% == per(r);
coerce(p:%):((source1,source2)->target) == p pretend ((source1,source2)->target);
coerce(p:%):OutputForm == p pretend OutputForm;
}
aldor Compiling FriCAS source code from file
/var/zope2/var/LatexWiki/sig2.as using AXIOM-XL compiler and
options
-O -Fasy -Fao -Flsp -laxiom -Mno-ALDOR_W_WillObsolete -DAxiom -Y $AXIOM/algebra -I $AXIOM/algebra
Use the system command )set compiler args to change these
options.
"/var/zope2/var/LatexWiki/sig2.as", line 13:
domain(p:%):T == Product(source1,source2);
.........^
[L13 C10] #1 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).
"/var/zope2/var/LatexWiki/sig2.as", line 14:
codomain(p:%):T == target;
...........^
[L14 C12] #2 (Warning) Function returns a domain that might not be constant (which may cause problems if it is used in a dependent type).
Compiling Lisp source code from file ./sig2.lsp
Issuing )library command for sig2
Reading /var/zope2/var/LatexWiki/sig2.asy
Signature2 is now explicitly exposed in frame initial
Signature2 will be automatically loaded when needed from
/var/zope2/var/LatexWiki/sig2
axiom f:Signature(Float, Integer)
axiom f:=(x:Float):Integer +-> floor(x)
\begin{equation}
\label{eq1}# < \hbox{\axiomType{FUNCTION}\ } | 1 ; anonymousFunction ; 0 ; initial ; internal | > ()\end{equation*}
Type: Signature(Float,Integer)
axiom domain f
\begin{equation}
\label{eq2}\hbox{\axiomType{Float}\ }\end{equation}
axiom codomain f
\begin{equation}
\label{eq3}\hbox{\axiomType{Integer}\ }\end{equation}
axiom (f::(Float->Integer))
\begin{equation}
\label{eq4}\mbox{theMap (...)}\end{equation}
axiom (f::(Float->Integer)) 2.2
\begin{equation}
\label{eq5}2\end{equation}
axiom f2:Signature2(Float,Float, Float)
axiom f2:=(x:Float,y:Float):Float +-> x+y
\begin{equation}
\label{eq6}# < \hbox{\axiomType{FUNCTION}\ } | 2 ; anonymousFunction ; 1 ; initial ; internal | > ()\end{equation*}
Type: Signature2(Float,Float,Float)
axiom domain f2
\begin{equation}
\label{eq7}\hbox{\axiomType{Product}\ } (\hbox{\axiomType{Float}\ } , \hbox{\axiomType{Float}\ })\end{equation}
axiom codomain f2
\begin{equation}
\label{eq8}\hbox{\axiomType{Float}\ }\end{equation}
axiom f2::((Float,Float)->Float)
\begin{equation}
\label{eq9}\mbox{theMap (...)}\end{equation}
Type: ((Float,Float) -> Float)
axiom (f2::((Float,Float)->Float))(1.2,2.1)
\begin{equation}
\label{eq10}3.3\end{equation}
Try this is Axiom SandBoxMorphism
Some or all expressions may not have rendered properly,
because Latex returned the following error:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
\write18 enabled.
%&-line parsing enabled.
entering extended mode
(./1848371320086037234-16.0px.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov
ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon
ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i
nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp
eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia
n, swedish, ukenglish, pinyin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `? option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty)
(/usr/share/texmf-texlive/tex/latex/amscls/amsthm.sty)
(/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty
Package: `setspace 6.7 <2000/12/01>
) (/usr/share/texmf-texlive/tex/generic/xypic/xy.sty
(/usr/share/texmf-texlive/tex/generic/xypic/xy.tex Bootstrap'ing: catcodes,
docmode, (/usr/share/texmf-texlive/tex/generic/xypic/xyrecat.tex)
(/usr/share/texmf-texlive/tex/generic/xypic/xyidioms.tex) Xy-pic version 3.7 <1999/02/16>
Copyright (c) 1991-1998 by Kristoffer H. Rose <krisrose@ens-lyon.fr>
Xy-pic is free software: see the User's Guide for details.
Loading kernel: messages; fonts; allocations: state, direction,
utility macros; pictures: \xy, positions, objects, decorations;
kernel objects: directionals, circles, text; options; algorithms: directions,
edges, connections; Xy-pic loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xyall.tex
Xy-pic option: All features v.3.3
(/usr/share/texmf-texlive/tex/generic/xypic/xycurve.tex
Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xyframe.tex
Xy-pic option: Frame and Bracket extension v.3.7 loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xycmtip.tex
Xy-pic option: Computer Modern tip extension v.3.3
(/usr/share/texmf-texlive/tex/generic/xypic/xytips.tex
Xy-pic option: More Tips extension v.3.3 loaded) loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xyline.tex
Xy-pic option: Line styles extension v.3.6 loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xyrotate.tex
Xy-pic option: Rotate and Scale extension v.3.3 loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xycolor.tex
Xy-pic option: Colour extension v.3.3 loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xymatrix.tex
Xy-pic option: Matrix feature v.3.4 loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xyarrow.tex
Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
(/usr/share/texmf-texlive/tex/generic/xypic/xygraph.tex
Xy-pic option: Graph feature v.3.7 loaded) loaded))
(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty
(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)
(/etc/texmf/tex/latex/config/graphics.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)))
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def))
(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty)
(/usr/share/texmf/tex/latex/graphviz/graphviz.sty
(/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty))
(/usr/share/texmf/tex/latex/sagetex.sty
Writing sage input file 1848371320086037234-16.0px.sage
(./1848371320086037234-16.0px.sout))
(/usr/share/texmf-texlive/tex/latex/gnuplottex/gnuplottex.sty
(/usr/share/texmf-texlive/tex/latex/base/latexsym.sty)
(/usr/share/texmf-texlive/tex/latex/moreverb/moreverb.sty)
(/usr/share/texmf-texlive/tex/latex/base/ifthen.sty))
(./1848371320086037234-16.0px.aux)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd)
(/usr/share/texmf-texlive/tex/latex/base/ulasy.fd)
You can't use `macro parameter character #' in display math mode.
l.63 \label{eq1}#
< \hbox{\axiomType{FUNCTION}\ } | * 1 ; anonymousFunction ...
[1] [2] [3] [4] [5]
You can't use `macro parameter character #' in display math mode.
l.78 \label{eq6}#
< \hbox{\axiomType{FUNCTION}\ } | * 2 ; anonymousFunction ...
[6] [7] [8] [9] [10] (./1848371320086037234-16.0px.aux) )
(see the transcript file for additional information)
Output written on 1848371320086037234-16.0px.dvi (10 pages, 2300 bytes).
Transcript written on 1848371320086037234-16.0px.log.
|