doc-src/Nitpick/nitpick.tex
changeset 37259 a66851c4c5f8
parent 37169 f69efa106feb
child 37264 8b931fb51cc6
equal deleted inserted replaced
37258:40bebf3d6cc0 37259:a66851c4c5f8
  1895 
  1895 
  1896 The descriptions below refer to the following syntactic quantities:
  1896 The descriptions below refer to the following syntactic quantities:
  1897 
  1897 
  1898 \begin{enum}
  1898 \begin{enum}
  1899 \item[$\bullet$] \qtybf{string}: A string.
  1899 \item[$\bullet$] \qtybf{string}: A string.
       
  1900 \item[$\bullet$] \qtybf{string\_list\/}: A space-separated list of strings
       
  1901 (e.g., ``\textit{ichi ni san}'').
  1900 \item[$\bullet$] \qtybf{bool\/}: \textit{true} or \textit{false}.
  1902 \item[$\bullet$] \qtybf{bool\/}: \textit{true} or \textit{false}.
  1901 \item[$\bullet$] \qtybf{bool\_or\_smart\/}: \textit{true}, \textit{false}, or \textit{smart}.
  1903 \item[$\bullet$] \qtybf{bool\_or\_smart\/}: \textit{true}, \textit{false}, or \textit{smart}.
  1902 \item[$\bullet$] \qtybf{int\/}: An integer. Negative integers are prefixed with a hyphen.
  1904 \item[$\bullet$] \qtybf{int\/}: An integer. Negative integers are prefixed with a hyphen.
  1903 \item[$\bullet$] \qtybf{int\_or\_smart\/}: An integer or \textit{smart}.
  1905 \item[$\bullet$] \qtybf{int\_or\_smart\/}: An integer or \textit{smart}.
  1904 \item[$\bullet$] \qtybf{int\_range}: An integer (e.g., 3) or a range
  1906 \item[$\bullet$] \qtybf{int\_range}: An integer (e.g., 3) or a range
  2254 \opnodefault{eval}{term\_list}
  2256 \opnodefault{eval}{term\_list}
  2255 Specifies the list of terms whose values should be displayed along with
  2257 Specifies the list of terms whose values should be displayed along with
  2256 counterexamples. This option suffers from an ``observer effect'': Nitpick might
  2258 counterexamples. This option suffers from an ``observer effect'': Nitpick might
  2257 find different counterexamples for different values of this option.
  2259 find different counterexamples for different values of this option.
  2258 
  2260 
       
  2261 \oparg{atoms}{type}{string\_list}
       
  2262 Specifies the names to use to refer to the atoms of the given type. By default,
       
  2263 Nitpick generates names of the form $a_1, \ldots, a_n$, where $a$ is the first
       
  2264 letter of the type's name.
       
  2265 
       
  2266 \opnodefault{atoms}{string\_list}
       
  2267 Specifies the default names to use to refer to atoms of any type. For example,
       
  2268 to call the three atoms of type ${'}a$ \textit{ichi}, \textit{ni}, and
       
  2269 \textit{san} instead of $a_1$, $a_2$, $a_3$, specify the option
       
  2270 ``\textit{atoms}~${'}a$ = \textit{ichi~ni~san}''. The default names can be
       
  2271 overridden on a per-type basis using the \textit{atoms}~\qty{type} option
       
  2272 described above.
       
  2273 
  2259 \oparg{format}{term}{int\_seq}
  2274 \oparg{format}{term}{int\_seq}
  2260 Specifies how to uncurry the value displayed for a variable or constant.
  2275 Specifies how to uncurry the value displayed for a variable or constant.
  2261 Uncurrying sometimes increases the readability of the output for high-arity
  2276 Uncurrying sometimes increases the readability of the output for high-arity
  2262 functions. For example, given the variable $y \mathbin{\Colon} {'a}\Rightarrow
  2277 functions. For example, given the variable $y \mathbin{\Colon} {'a}\Rightarrow
  2263 {'b}\Rightarrow {'c}\Rightarrow {'d}\Rightarrow {'e}\Rightarrow {'f}\Rightarrow
  2278 {'b}\Rightarrow {'c}\Rightarrow {'d}\Rightarrow {'e}\Rightarrow {'f}\Rightarrow