Skip to content

Commit f0f0e45

Browse files
committed
first throw at terms
1 parent a872f5d commit f0f0e45

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

language.tex

+7-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ \subsubsection{Normal Programs and Integrity Constraints}\label{subsec:gringo:no
3636
\index{Terms!\code{\#sup}}
3737
\index{Terms!\code{\#inf}}
3838

39+
\comment{T2R: Upgrade tuple definition}
3940
\begin{figure}
4041
\vspace*{-19mm}
4142
\railnontermfont{\rmfamily\itshape}%
@@ -97,10 +98,15 @@ \subsubsection{Normal Programs and Integrity Constraints}\label{subsec:gringo:no
9798
constant \const{peter}, another function \code{\const{time}(12)}
9899
with an integer argument, and variable~\var{X}.
99100
Finally, there are \emph{tuples}, which are similar to \emph{functions} but without a name.
100-
\REWc{Note that there are no one-elementary tuples; a term of form \code{($t$)} is equivalent to \code{$t$}.}{T2R: Update!}
101101
Examples for tuples are:
102102
the empty tuple \code{()} and
103103
the tuple \code{(\const{at},\const{peter},\const{time}(12),X)} with four elements.
104+
Tuples may optionally end in a comma ``\code{,}''
105+
for distinguishing one-elementary tuples.
106+
That is, \code{($t$,)} is a one-elementary tuple,
107+
while a term of form \code{($t$)} is equivalent to \code{$t$}.
108+
Thus, \code{(42,)} is a one-elementary tuple, whereas \code{(42)} is not.
109+
The above quadruple is equivalent to \code{(\const{at},\const{peter},\const{time}(12),X,)}.
104110

105111
Rules of the following forms are admitted in a
106112
\emph{normal logic program} (with integrity constraints):

multi.tex

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ \section{Multi-Shot Solving}\label{sec:multi}
88
\begin{itemize}
99
\item \cite{gekakasc14b}
1010
\item \texttt{/examples/scripting/} in \gringo/\clingo\ distribution
11+
\item API reference \url{http://potassco.sourceforge.net/gringo.html}
1112
\end{itemize}
1213

1314
%%% Local Variables:

0 commit comments

Comments
 (0)