section ‹ Lambda Terms › theory Lambda_Terms imports Main begin text ‹This theory defines pre-terms and alpha-equivalence, and then defines terms as alpha-equivalence classes of pre-terms.› hide_type var abbreviation (input) "any ≡ undefined" subsection ‹Variables› datatype var = Variable nat subsection ‹Pre-terms and operators on them›