🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.specification.z
Article #3

Generic Predicates??

#3
From: Todd Fine
Date: Mon, 02 Nov 1992 15:47
22 lines
946 bytes
Is it possible to write generic predicates in Zed?

For example, consider the definition of concatenation in the
mathematical tool-kit.  First, \cat is defined as a generic
infix.  Then, laws such as:

  \# (s \cat t) = \#s + \#t

are stated.  How do I state the above law in a Zed specification?  If
I try:

\begin{zed}
  \# (s \cat t) = \#s + \#t
\end{zed}

then, fuzz complains about s and t not being declared.  But, if I
declare s and t, then they will have a specific type associated with
them and the law will be about concatenation of that specific type of
sequence rather than generic concatenation??

Todd Fine
fine@sctc.com
Technical Details
Message-ID: <1992Nov2.154701.21097@sctc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!spool.mu.edu!umn.edu!sctc.com!fine

Show Full Headers
Complete Article Headers
Newsgroups: comp.specification.z
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!sdd.hp.com!spool.mu.edu!umn.edu!sctc.com!fine
From: fine@sctc.com (Todd Fine)
Subject: Generic Predicates??
Message-ID: <1992Nov2.154701.21097@sctc.com>
Organization: SCTC
Date: Mon, 2 Nov 1992 15:47:01 GMT
Lines: 22