Git Product home page Git Product logo

parsingtheorems's Introduction

Introduction

These files aim to help parse theorems that occurs in a theory file, transfer them into types that are compatible for GumTree parser tool (XML format)

Structure

MLs: A folder that references the underlying ML files in the source code for Isabelle that helps to parse lemmas and convert them into a suitable format

converter.ML: ML file that helps to convert theorems in a theory file into an XML format

Test.thy: Isabelle theory file that helps to implement the converter

Usage

The functions find_all_theorems, convert_Term are our main interests

val find_all_theorems: theory -> (term * string) list;

The function takes a theory object (can be referenced in a theory file by the antiquotation @{theory theory_name}), and then return a list of tuples which consist of a term, the term (theorem) itself, and a string, which is the name of the term (theorem). Example:

Converter.find_all_theorems @{theory Weight_Balanced_Trees}

This list can be access using the List.nth function in Standard ML

List.nth (list, index)
val convert_Term: Term.term -> string

The function takes a term object, and then convert it into a string (which is in XML format). The string can then be printed to another file for reusing by the GumTree parser tool

parsingtheorems's People

Contributors

minhddo 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.