/usr/share/axiom-20170501/src/algebra/ES1.spad is in axiom-source 20170501-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | )abbrev package ES1 ExpressionSpaceFunctions1
++ Author: Manuel Bronstein
++ Date Created: 23 March 1988
++ Date Last Updated: 19 April 1991
++ Description:
++ This package allows a map from any expression space into any object
++ to be lifted to a kernel over the expression set, using a given
++ property of the operator of the kernel.
-- should not be exposed
ExpressionSpaceFunctions1(F, S) : SIG == CODE where
F : ExpressionSpace
S : Type
SIG ==> with
map : (F -> S, String, Kernel F) -> S
++ map(f, p, k) uses the property p of the operator
++ of k, in order to lift f and apply it to k.
CODE ==> add
-- prop contains an evaluation function List S -> S
map(F2S, prop, k) ==
args := [F2S x for x in argument k]$List(S)
(p := property(operator k, prop)) case None =>
((p::None) pretend (List S -> S)) args
error "Operator does not have required property"
|