gapt.formats.llk

Members list

Packages

Type members

Classlikes

case class AToken(rule: String, name: Option[LambdaAST], antecedent: List[LambdaAST], succedent: List[LambdaAST]) extends Token

An AToken represents an Axiom declaration or Definition declaration.

An AToken represents an Axiom declaration or Definition declaration.

Value parameters

antecedent

the antecedent of the declaration sequent (not yet typechecked)

name

the (unique) name of the definition/axiom

rule

either "AXIOMDEF", "PREDDEF" or"FUNDEF"

succedent

the succedent of the declaration sequent (not yet typechecked)

Attributes

Source
LLKProofParser.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
LLKFormulaParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Source
LLKFormulaParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Source
equationalRules.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ExtendedProofDatabase(eproofs: Map[Formula, LKProof], eaxioms: Map[Formula, Formula], edefinitions: Map[Const, Expr])

An extended proof database allows to label subproofs by formulas. It provides mappings from formulas to proofs additionally to the list of pairs.

An extended proof database allows to label subproofs by formulas. It provides mappings from formulas to proofs additionally to the list of pairs.

Attributes

Source
LLKProofParser.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class HybridLatexParserException(m: String, t: Throwable) extends Exception

Attributes

Source
LLKProofParser.scala
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object LLKASTParser extends LLKASTParser

Attributes

Companion
class
Source
LLKFormulaParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Self type
class LLKASTParser extends JavaTokenParsers, PackratParsers

Attributes

Companion
object
Source
LLKFormulaParser.scala
Supertypes
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Known subtypes
object DeclarationParser.type
object LLKProofParser.type
object LLKASTParser.type
Show all
object LLKExporter extends LLKExporter

Attributes

Companion
class
Source
LLKExporter.scala
Supertypes
class LLKExporter
class Object
trait Matchable
class Any
Self type
class LLKExporter(val expandTex: Boolean)

Attributes

Companion
object
Source
LLKExporter.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LLKExporter.type
object LatexLLKExporter.type
object LLKFormatter

Attributes

Source
LLKImporter.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
class
Source
LLKFormulaParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
LLKFormulaParser.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LLKFormulaParser.type

Attributes

Companion
class
Source
LLKProofParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
object
Source
LLKProofParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Known subtypes
object LLKProofParser.type
object LLKTypes

Attributes

Source
LLKFormulaParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type
LLKTypes.type
object LatexLLKExporter extends LLKExporter

Attributes

Source
LLKExporter.scala
Supertypes
class LLKExporter
class Object
trait Matchable
class Any
Self type

This code works around some limitations of latex syntax and adds alternative syntax for abstraction, application and adds support of some macros used in the n-tape proof.

This code works around some limitations of latex syntax and adds alternative syntax for abstraction, application and adds support of some macros used in the n-tape proof.

Attributes

Source
LLKProofParser.scala
Supertypes
class LLKASTParser
trait PackratParsers
trait JavaTokenParsers
trait RegexParsers
trait Parsers
class Object
trait Matchable
class Any
Show all
Known subtypes
object LLKProofParser.type
case class RToken(rule: String, name: Option[LambdaAST], antecedent: List[LambdaAST], succedent: List[LambdaAST], sub: List[(Var, LambdaAST)]) extends Token

A RToken represents a rule application.

A RToken represents a rule application.

Value parameters

antecedent

the antecedent of the declaration sequent (not yet typechecked)

name

quantifier rules allow optional specification of the subsitution term, definitions and axiom instantiations take the referenced declaration, etc.

rule

One out of "AX", "ALLL", "ALLR", "EXL", "EXR", "ANDL", "ANDR", "ORL", "ORR", "IMPL", "IMPR", "NEGL", "NEGR", "CUT", "EQL", "EQR", "WEAKL", "WEAKR", "CONTRL", "CONTRR", "DEF", "BETA", "INSTAXIOM"

sub

some rules like axiom instantiation specify substitutions, which are passed as list of var-term pairs

succedent

the antecedent of the declaration sequent (not yet typechecked)

Attributes

Source
LLKProofParser.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
case class TToken(decltype: String, names: List[String], types: Ty) extends Token

A TToken represents an LLK type declaration.

A TToken represents an LLK type declaration.

Value parameters

decltype

either "VARDEC" or "CONSTDEC"

names

a list of symbol names

types

the assigned type

Attributes

Source
LLKProofParser.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
abstract class Token

The abstract class for tokens of an llk proof. TTokens represent type declarations, ATokens represent axiom and definition declarations, and RTokens represent a rule inference.

The abstract class for tokens of an llk proof. TTokens represent type declarations, ATokens represent axiom and definition declarations, and RTokens represent a rule inference.

Attributes

Source
LLKProofParser.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AToken
class RToken
class TToken

This implements the second parsing pass, converting hlk Tokens to an LK Proof. HybridLatexParser inherits from TokenToLKConverter to have a common interface, but the code here is only dependent on the AST. It uses the ASTtoHOL object to create Exprs from hol ASTs.

This implements the second parsing pass, converting hlk Tokens to an LK Proof. HybridLatexParser inherits from TokenToLKConverter to have a common interface, but the code here is only dependent on the AST. It uses the ASTtoHOL object to create Exprs from hol ASTs.

Attributes

Source
LLKImporter.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LLKProofParser.type

UnicodeToLatex contains a table of greek unicode symbols and their LaTeX equivalents.

UnicodeToLatex contains a table of greek unicode symbols and their LaTeX equivalents.

Attributes

Source
UnicodeToLatex.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object exportLLK

Attributes

Source
toplevel.scala
Supertypes
class Object
trait Matchable
class Any
Self type
exportLLK.type
object loadLLK

Top-level interface to LLK Parsing

Top-level interface to LLK Parsing

Attributes

Source
toplevel.scala
Supertypes
class Object
trait Matchable
class Any
Self type
loadLLK.type
object parseLLKExp

Attributes

Source
toplevel.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
toplevel.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object toLLKString

This is a prover9 style formatting which can be parsed by LLK.

This is a prover9 style formatting which can be parsed by LLK.

Attributes

Source
LLKExporter.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object toLatexString

This is a Latex formatting which can be parsed by LLK.

This is a Latex formatting which can be parsed by LLK.

Attributes

Source
LLKExporter.scala
Supertypes
class Object
trait Matchable
class Any
Self type