src/Doc/How_to_Prove_it/document/prelude.tex
author paulson <lp15@cam.ac.uk>
Sun, 26 Feb 2023 21:17:39 +0000
changeset 77388 dec831b200eb
parent 72319 76bb6dd505c0
permissions -rw-r--r--
Simplified some proofs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56820
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     1
\usepackage{makeidx}         % allows index generation
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     2
\usepackage{graphicx}        % standard LaTeX graphics tool
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     3
                             % when including figure files
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     4
\usepackage{multicol}        % used for the two-column index
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     5
\usepackage[bottom]{footmisc}% places footnotes at page bottom
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     6
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     7
\usepackage[T1]{fontenc}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     8
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
     9
\usepackage{isabelle,isabellesym}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    10
%\usepackage{amssymb}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    11
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    12
\renewcommand*\descriptionlabel[1]{\hspace\labelsep \textbf{#1}\hfil}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    13
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    14
% this should be the last package used
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    15
\usepackage{xcolor}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    16
\definecolor{linkcolor}{rgb}{0,0,0.4}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    17
\usepackage[colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    18
            filecolor=linkcolor,pagecolor=linkcolor,
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    19
            urlcolor=linkcolor]{hyperref}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    20
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    21
% urls in roman style, theory text in math-similar italics
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    22
\urlstyle{tt}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    23
\isabellestyle{it}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    24
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    25
\renewcommand{\isadigit}[1]{\ensuremath{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    26
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    27
% font size
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    28
\renewcommand{\isastyle}{\isastyleminor}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    29
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    30
% indexing
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    31
\usepackage{ifthen}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    32
\newcommand{\indexdef}[3]%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    33
{\ifthenelse{\equal{}{#1}}{\index{#3 (#2)|bold}}{\index{#3 (#1\ #2)|bold}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    34
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    35
\renewcommand{\isamarkupsection}[1]{{\rmfamily\subsection{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    36
\renewcommand{\isamarkupsubsection}[1]{{\rmfamily\subsubsection{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    37
% isabelle in-text command font
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    38
\newcommand{\isacom}[1]{\isa{\isacommand{#1}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    39
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    40
\protected\def\isacharunderscore{\raisebox{2pt}{\_\kern-1.7pt}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    41
\protected\def\isacharunderscorekeyword{\raisebox{2pt}{\_}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    42
% isabelle keyword, adapted from isabelle.sty
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    43
\renewcommand{\isakeyword}[1]
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    44
{\emph{\def\isachardot{.}\def\isacharunderscore{\isacharunderscorekeyword}%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    45
\def\isacharbraceleft{\{}\def\isacharbraceright{\}}\textsf{\textbf{#1}}}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    46
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    47
% add \noindent to text blocks automatically
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    48
\renewenvironment{isamarkuptext}{\par\isastyletext\begin{isapar}\noindent}{\end{isapar}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    49
\renewenvironment{isamarkuptxt}{\par\isastyletext\begin{isapar}\noindent}{\end{isapar}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    50
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    51
\newcommand{\noquotes}[1]{{\renewcommand{\isachardoublequote}{}\renewcommand{\isachardoublequoteopen}{}\renewcommand{\isachardoublequoteclose}{}#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    52
\newcommand{\xsymbol}[1]{\texttt{\char`\\\char`<#1>}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    53
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    54
%index
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    55
\newcommand{\conceptnoidx}[1]{\textbf{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    56
\newcommand{\concept}[1]{\conceptnoidx{#1}\index{#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    57
\newcommand{\conceptidx}[2]{\conceptnoidx{#1}\index{#2}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    58
\newcommand{\indexed}[2]{#1\index{#2@\protect#1}}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    59
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    60
\chardef\isachardoublequote=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    61
\chardef\isachardoublequoteopen=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    62
\chardef\isachardoublequoteclose=`\"%
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    63
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    64
\renewcommand{\isacharbackquoteopen}{\isacharbackquote}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    65
\renewcommand{\isacharbackquoteclose}{\isacharbackquote}
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    66
7fbed439b8d3 new documentation: How to Prove it
nipkow
parents:
diff changeset
    67
\hyphenation{Isa-belle}