Posted on by Achim D. Brucker, licensed under CC BY-ND 4.0.

Isabelle Hacks

Every day, you work with Isabelle, you likely learn a new trick. Sadly, you will also have forgotten as quickly as you learned them. To make it easier to rediscover them, and also to make it easier to port them across different versions of Isabelle, we build a collection of “hacks”.

These “hacks” provide additional functionality to Isabelle or showcase specific functionality. Each individual hack usually consists out of a single theory file and all documentation is contained in that theory file The plan is to keep the main branch working with the most current release of Isabelle, and to provide tags for older Isabelle releases. The hacks are available at: https://git.logicalhacking.com/adbrucker/isabelle-hacks. Currently, the following hacks are included:

  • Assert.thy provides a new top level command assert that provides a simple way for specifying assertions that Isabelle checks while processing a theory.
  • Hiding_Type_Variables.thy provides print a setup for defining default type variables of type constructors. The default type variables can be hidden in output, e.g., ('a, 'b, 'c) foo is shown as (_) foo. This shorthand notation can also be used in input (using a parse translation), which (sometimes) helps to focus on the important parts of complex type declarations.
  • Nano_JSON.thy provides support for a JSON-like data exchange for Isabelle/HOL.
  • Code_Reflection.thy provides a new top-level command for reflecting generated SML code into Isabelle’s ML environment.

New hacks will be added regularly.

If not otherwise stated, all hacks are licensed under a 2-clause BSD-style license, i.e., the license used for Isabelle itself and for most of the entries in the Archive of Formal Proofs.