### Abstract

We represent a theory of (a fragment of) Isabelle/HOL in Isabelle/HOL. The purpose of this exercise is to write packages for domain-specific specifications such as class models, B-machines, ..., and generally speaking, any domain-specific languages whose abstract syntax can be defined by a HOL "datatype". On this basis, the Isabelle code-generator can then be used to generate code for global context transformations as well as tactic code.

Consequently the package is geared towards parsing, printing and code-generation to the Isabelle API. It is at the moment not sufficiently rich for doing meta theory on Isabelle itself. Extensions in this direction are possible though.

Moreover, the chosen fragment is fairly rudimentary. However it should be easily adapted to one's needs if a package is written on top of it. The supported API contains types, terms, transformation of global context like definitions and data-type declarations as well as infrastructure for Isar-setups.

This theory is drawn from the Featherweight OCL project where it is used to construct a package for object-oriented data-type theories generated from UML class diagrams. The Featherweight OCL, for example, allows for both the direct execution of compiled tactic code by the Isabelle API as well as the generation of ".thy"-files for debugging purposes.

Gained experience from this project shows that the compiled code is sufficiently efficient for practical purposes while being based on a formal model on which properties of the package can be proven such as termination of certain transformations, correctness, etc.

### License

BSD License

### Topics

- Computer science/Programming languages/Language definitions

### Session Isabelle_Meta_Model

- Antiquote_Setup
- Isabelle_Cartouche_Examples
- Isabelle_Main0
- Isabelle_code_target
- Isabelle_code_runtime
- Isabelle_Main1
- Isabelle_typedecl
- Isabelle_Main2
- Init
- Meta_Pure
- Parser_init
- Parser_Pure
- Meta_SML
- Meta_Isabelle
- Printer_init
- Printer_Pure
- Printer_SML
- Printer_Isabelle
- Toy_Library_Static
- Init_rbt
- Meta_Toy
- Meta_Toy_extended
- Meta_META
- Core_init
- Floor1_infra
- Floor1_access
- Floor1_examp
- Floor2_examp
- Floor1_ctxt
- Core
- Parser_Toy
- Parser_Toy_extended
- Parser_META
- Printer_Toy
- Printer_Toy_extended
- Printer_META
- Printer
- Generator_static
- Generator_dynamic_sequential
- Design_deep
- Toy_Library
- Design_shallow
- Rail
- Design_generated
- Design_generated_generated

## Cite

×

Isabelle_Meta_Model-AFP

    @article{Isabelle_Meta_Model-AFP,
      author  = {Frédéric Tuong and Burkhart Wolff},
      title   = {A Meta-Model for the Isabelle API},
      journal = {Archive of Formal Proofs},
      month   = {September},
      year    = {2015},
      note    = {\url{https://isa-afp.org/entries/Isabelle_Meta_Model.html},
                 Formal proof development},
      ISSN    = {2150-914x},
    }

Download

## Download

× Download latest

Older releases:

- Sep 13, 2023 : Isabelle2023
- Oct 27, 2022 : Isabelle2022
- Dec 14, 2021 : Isabelle2021-1
- Feb 23, 2021 : Isabelle2021
- Apr 18, 2020 : Isabelle2020
- Jun 11, 2019 : Isabelle2019
- Aug 16, 2018 : Isabelle2018
- Oct 10, 2017 : Isabelle2017
- Dec 17, 2016 : Isabelle2016-1
- Feb 22, 2016 : Isabelle2016
- Sep 28, 2015 : Isabelle2015
- Sep 25, 2015 : Isabelle2015