1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/doc-src/ZF/logics.sty Wed Aug 20 11:00:37 2003 +0200
1.3 @@ -0,0 +1,1 @@
1.4 +% logics.sty : Logics Manuals Page Layout
1.5 %
1.6 \typeout{Document Style logics. Released 18 August 2003}
1.7
1.8 \hyphenation{Isa-belle man-u-script man-u-scripts ap-pen-dix mut-u-al-ly}
1.9 \hyphenation{data-type data-types co-data-type co-data-types }
1.10
1.11 %usage: \iflabelundefined{LABEL}{if not defined}{if defined}
1.12 \newcommand{\iflabelundefined}[1]{\@ifundefined{r@#1}}
1.13
1.14
1.15 %%%INDEXING use isa-index to process the index
1.16
1.17 \newcommand\seealso[2]{\emph{see also} #1}
1.18 \usepackage{makeidx}
1.19
1.20 %index, putting page numbers of definitions in boldface
1.21 \def\bold#1{\textbf{#1}}
1.22 \newcommand\fnote[1]{#1n}
1.23 \newcommand\indexbold[1]{\index{#1|bold}}
1.24
1.25 % The alternative to \protect\isa in the indexing macros is
1.26 % \noexpand\noexpand \noexpand\isa
1.27 % need TWO levels of \noexpand to delay the expansion of \isa:
1.28 % the \noexpand\noexpand will leave one \noexpand, to be given to the
1.29 % (still unexpanded) \isa token. See TeX by Topic, page 122.
1.30
1.31 %%%% for indexing constants, symbols, theorems, ...
1.32 \newcommand\cdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (constant)}}
1.33 \newcommand\sdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (symbol)}}
1.34
1.35 \newcommand\tdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (theorem)}}
1.36 \newcommand\tdxbold[1]{\isa{#1}\index{#1@\protect\isa{#1} (theorem)|bold}}
1.37
1.38 \newcommand\cldx[1]{\isa{#1}\index{#1@\protect\isa{#1} (class)}}
1.39 \newcommand\tydx[1]{\isa{#1}\index{#1@\protect\isa{#1} (type)}}
1.40 \newcommand\thydx[1]{\isa{#1}\index{#1@\protect\isa{#1} (theory)}}
1.41
1.42 \newcommand\attrdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (attribute)}}
1.43 \newcommand\cmmdx[1]{\index{#1@\protect\isacommand{#1} (command)}}
1.44 \newcommand\commdx[1]{\isacommand{#1}\index{#1@\protect\isacommand{#1} (command)}}
1.45 \newcommand\methdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (method)}}
1.46 \newcommand\tooldx[1]{\isa{#1}\index{#1@\protect\isa{#1} (tool)}}
1.47 \newcommand\settdx[1]{\isa{#1}\index{#1@\protect\isa{#1} (setting)}}
1.48
1.49 %set argument in \bf font and index in ROMAN font (for definitions in text!)
1.50 \newcommand\bfindex[1]{{\bf#1}\index{#1|bold}\@}
1.51
1.52 \newcommand\rmindex[1]{{#1}\index{#1}\@}
1.53 \newcommand\ttindex[1]{\texttt{#1}\index{#1@\texttt{#1}}\@}
1.54 \newcommand\ttindexbold[1]{\texttt{#1}\index{#1@\texttt{#1}|bold}\@}
1.55
1.56 \newcommand{\indexboldpos}[2]{#1\@}
1.57 \newcommand{\ttindexboldpos}[2]{\isa{#1}\@}
1.58
1.59 %\newtheorem{theorem}{Theorem}[section]
1.60 \newtheorem{Exercise}{Exercise}[section]
1.61 \newenvironment{exercise}{\begin{Exercise}\rm}{\end{Exercise}}
1.62 \newcommand{\ttlbr}{\texttt{[|}}
1.63 \newcommand{\ttrbr}{\texttt{|]}}
1.64 \newcommand{\ttor}{\texttt{|}}
1.65 \newcommand{\ttall}{\texttt{!}}
1.66 \newcommand{\ttuniquex}{\texttt{?!}}
1.67 \newcommand{\ttEXU}{\texttt{EX!}}
1.68 \newcommand{\ttAnd}{\texttt{!!}}
1.69
1.70 \newcommand{\isasymignore}{}
1.71 \newcommand{\isasymimp}{\isasymlongrightarrow}
1.72 \newcommand{\isasymImp}{\isasymLongrightarrow}
1.73 \newcommand{\isasymFun}{\isasymRightarrow}
1.74 \newcommand{\isasymuniqex}{\isamath{\exists!\,}}
1.75 \renewcommand{\S}{Sect.\ts}
1.76
1.77 \renewenvironment{isamarkuptxt}{\begin{isamarkuptext}}{\end{isamarkuptext}}
1.78
1.79 \newif\ifremarks
1.80 \newcommand{\REMARK}[1]{\ifremarks\marginpar{\raggedright\footnotesize#1}\fi}
1.81
1.82 %names of Isabelle rules
1.83 \newcommand{\rulename}[1]{\hfill(#1)}
1.84 \newcommand{\rulenamedx}[1]{\hfill(#1\index{#1@\protect\isa{#1} (theorem)|bold})}
1.85
1.86 %%%% meta-logical connectives
1.87
1.88 \let\Forall=\bigwedge
1.89 \let\Imp=\Longrightarrow
1.90 \let\To=\Rightarrow
1.91 \newcommand{\Var}[1]{{?\!#1}}
1.92
1.93 %%% underscores as ordinary characters, not for subscripting
1.94 %% use @ or \sb for subscripting; use \at for @
1.95 %% only works in \tt font
1.96 %% must not make _ an active char; would make \ttindex fail!
1.97 \gdef\underscoreoff{\catcode`\@=8\catcode`\_=\other}
1.98 \gdef\underscoreon{\catcode`\_=8\makeatother}
1.99 \chardef\other=12
1.100 \chardef\at=`\@
1.101
1.102 % alternative underscore
1.103 \def\_{\leavevmode\kern.06em\vbox{\hrule height.2ex width.3em}\hskip0.1em}
1.104
1.105
1.106 %%%% ``WARNING'' environment
1.107 \def\dbend{\vtop to 0pt{\vss\hbox{\Huge\bf!}\vss}}
1.108 \newenvironment{warn}{\medskip\medbreak\begingroup \clubpenalty=10000
1.109 \small %%WAS\baselineskip=0.9\baselineskip
1.110 \noindent \hangindent\parindent \hangafter=-2
1.111 \hbox to0pt{\hskip-\hangindent\dbend\hfill}\ignorespaces}%
1.112 {\par\endgroup\medbreak}
1.113
1.114
1.115 %%%% Standard logical symbols
1.116 \let\turn=\vdash
1.117 \let\conj=\wedge
1.118 \let\disj=\vee
1.119 \let\imp=\rightarrow
1.120 \let\bimp=\leftrightarrow
1.121 \newcommand\all[1]{\forall#1.} %quantification
1.122 \newcommand\ex[1]{\exists#1.}
1.123 \newcommand{\pair}[1]{\langle#1\rangle}
1.124
1.125 \newcommand{\lparr}{\mathopen{(\!|}}
1.126 \newcommand{\rparr}{\mathclose{|\!)}}
1.127 \newcommand{\fs}{\mathpunct{,\,}}
1.128 \newcommand{\ty}{\mathrel{::}}
1.129 \newcommand{\asn}{\mathrel{:=}}
1.130 \newcommand{\more}{\ldots}
1.131 \newcommand{\record}[1]{\lparr #1 \rparr}
1.132 \newcommand{\dtt}{\mathord.}
1.133
1.134 \newcommand\lbrakk{\mathopen{[\![}}
1.135 \newcommand\rbrakk{\mathclose{]\!]}}
1.136 \newcommand\List[1]{\lbrakk#1\rbrakk} %was \obj
1.137 \newcommand\vpile[1]{\begin{array}{c}#1\end{array}}
1.138 \newenvironment{matharray}[1]{\[\begin{array}{#1}}{\end{array}\]}
1.139 \newcommand{\Text}[1]{\mbox{#1}}
1.140
1.141 \DeclareMathSymbol{\dshsym}{\mathalpha}{letters}{"2D}
1.142 \newcommand{\dsh}{\mathit{\dshsym}}
1.143
1.144 \let\int=\cap
1.145 \let\un=\cup
1.146 \let\inter=\bigcap
1.147 \let\union=\bigcup
1.148
1.149 \def\ML{{\sc ml}}
1.150 \def\AST{{\sc ast}}
1.151
1.152 %macros to change the treatment of symbols
1.153 \def\relsemicolon{\mathcode`\;="303B} %treat ; like a relation
1.154 \def\binperiod{\mathcode`\.="213A} %treat . like a binary operator
1.155 \def\binvert{\mathcode`\|="226A} %treat | like a binary operator
1.156
1.157 %redefinition of \sloppy and \fussy to use \emergencystretch
1.158 \def\sloppy{\tolerance2000 \hfuzz.5pt \vfuzz.5pt \emergencystretch=15pt}
1.159 \def\fussy{\tolerance200 \hfuzz.1pt \vfuzz.1pt \emergencystretch=0pt}
1.160
1.161 %non-bf version of description
1.162 \def\descrlabel#1{\hspace\labelsep #1}
1.163 \def\descr{\list{}{\labelwidth\z@ \itemindent-\leftmargin\let\makelabel\descrlabel}}
1.164 \let\enddescr\endlist
1.165
1.166 % The mathcodes for the letters A, ..., Z, a, ..., z are changed to
1.167 % generate text italic rather than math italic by default. This makes
1.168 % multi-letter identifiers look better. The mathcode for character c
1.169 % is set to |"7000| (variable family) + |"400| (text italic) + |c|.
1.170 %
1.171 \DeclareSymbolFont{italics}{\encodingdefault}{\rmdefault}{m}{it}%
1.172 \def\@setmcodes#1#2#3{{\count0=#1 \count1=#3
1.173 \loop \global\mathcode\count0=\count1 \ifnum \count0<#2
1.174 \advance\count0 by1 \advance\count1 by1 \repeat}}
1.175 \@setmcodes{`A}{`Z}{"7\hexnumber@\symitalics41}
1.176 \@setmcodes{`a}{`z}{"7\hexnumber@\symitalics61}
1.177
1.178 %%% \dquotes permits usage of "..." for \hbox{...}
1.179 %%% also taken from under.sty
1.180 {\catcode`\"=\active
1.181 \gdef\dquotes{\catcode`\"=\active \let"=\@mathText}%
1.182 \gdef\@mathText#1"{\hbox{\mathTextFont #1\/}}}
1.183 \def\mathTextFont{\frenchspacing\tt}
1.184 \def\dquotesoff{\catcode`\"=\other}
1.185 \ No newline at end of file