aboutsummaryrefslogtreecommitdiff
path: root/src/algebra
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra')
-rw-r--r--src/algebra/any.spad.pamphlet10
-rw-r--r--src/algebra/boolean.spad.pamphlet4
2 files changed, 8 insertions, 6 deletions
diff --git a/src/algebra/any.spad.pamphlet b/src/algebra/any.spad.pamphlet
index 42a50805..e0e93817 100644
--- a/src/algebra/any.spad.pamphlet
+++ b/src/algebra/any.spad.pamphlet
@@ -337,11 +337,12 @@ Scope(): Public == Private where
Private ==> add
import Contour
+ Rep == List Contour
empty() ==
- '(())
+ per NIL$Lisp
contours s ==
- s pretend List(Contour)
+ rep s
findBinding(n,s) ==
for c in contours s repeat
@@ -394,11 +395,12 @@ Environment(): Public == Private where
++ the current category environment in the interpreter.
Private ==> add
+ Rep == List Scope
empty() ==
- '((()))
+ per NIL$Lisp
scopes e ==
- e pretend List(Scope)
+ rep e
getProperty(n,p,e) ==
v := get(n,p,e)$Lisp
diff --git a/src/algebra/boolean.spad.pamphlet b/src/algebra/boolean.spad.pamphlet
index b9761dcc..5ebd188d 100644
--- a/src/algebra/boolean.spad.pamphlet
+++ b/src/algebra/boolean.spad.pamphlet
@@ -253,7 +253,7 @@ PropositionalFormula(T: PropositionalLogic): PropositionalLogic with
notFormula(p: %): OutputForm ==
not? p =>
- elt(outputForm '_not, [notFormula((rep p).'unForm)])$OutputForm
+ elt(outputForm '_not, [notFormula((rep p).unForm)])$OutputForm
primaryFormula p
andFormula(p: %): OutputForm ==
@@ -488,7 +488,7 @@ Boolean(): Join(OrderedSet, Finite, Logic, PropositionalLogic, ConvertibleTo Inp
test a == a
nt b == (b => false; true)
- true == 'T
+ true == 'T pretend %
false == NIL$Lisp
sample() == true
not b == (b => false; true)