Theory Ifexpr
theory Ifexpr imports Main begin
subsection‹Case Study: Boolean Expressions›
text‹\label{sec:boolex}\index{boolean expressions example|(}
The aim of this case study is twofold: it shows how to model boolean
expressions and some algorithms for manipulating them, and it demonstrates
the constructs introduced above.
›
subsubsection‹Modelling Boolean Expressions›
text‹
We want to represent boolean expressions built up from variables and
constants by negation and conjunction. The following datatype serves exactly
that purpose:
›