Code Monkey home page Code Monkey logo

isabelle-utils's Introduction

isabelle-utils

What is this tool for?

This tool (isa-utils) contains utility functions for parsing Isabelle theories. Main features include:

  • parse theories, returning a list of commands
  • get imports of theories, returning a list of theory paths
  • extract constants from theories, returning a list of constants

How to use it?

This tool can either be used as a Scala library or as a single jar file.

As a Scala library

IsabelleProcess is the main class to use. To create an instance, you need to pass the path to the Isabelle distribution, the session name, the working directory, and optional the path to the Archive of Formal Proofs (AFP) entry folder.

It provides the following methods:

  • parse and parseBatch to parse a theory or a list of theories
  • getImports to get the imports of a theory
  • extractConstants to extract the constants of a theory

As a single jar file

The jar file can be built by running sbt assembly, using the sbt-assembly plugin. It is just a wrapper around the IsabelleProcess class, providing a few command-line options. Some most useful options are:

  • TASK, the task to perform, accepting parse, parse_batch, get_imports, get_imports_batch, extract_constants
  • SESSION, the session name, e.g., HOL, HOL-Analysis, etc.
  • ISA_HOME, path to the Isabelle distribution, e.g., /path/to/Isabelle2023
  • FILEPATH*, the path(s) to the theory file(s)
  • --afp, the path to the AFP entry folder
  • --output, optional output file path

NOTE

This tool uses scala-isabelle to interact with Isabelle. Currently, it only supports Isabelle2021 to Isabelle2023 and is only tested on Isabelle2023. It is known that it does not work with Isabelle2024.

Additionally, the constant extraction utility heavily relies on the underlying Isabelle/ML code, which may contain bugs. If you encounter any issues, please report them.

isabelle-utils's People

Contributors

luan-xiaokun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.