package datastructures
Ordering
- Alphabetic
Visibility
- Public
- Protected
Value Members
- object TPTP
Collection of TPTP-related data types that are returned by the leo.modules.input.TPTPParser.
Collection of TPTP-related data types that are returned by the leo.modules.input.TPTPParser. An overview:
- Whole TPTP problem files are represented by leo.datastructures.TPTP.Problem,
- Annotated formulas are represented by leo.datastructures.TPTP.AnnotatedFormulas, more specifically ...
- Annotated THF formulas by leo.datastructures.TPTP.THFAnnotated,
- Annotated TFF formulas by leo.datastructures.TPTP.TFFAnnotated,
- Annotated FOF formulas by leo.datastructures.TPTP.FOFAnnotated,
- Annotated TCF formulas by leo.datastructures.TPTP.TCFAnnotated,
- Annotated CNF formulas by leo.datastructures.TPTP.CNFAnnotated, and
- Annotated TPI formulas by leo.datastructures.TPTP.TPIAnnotated
- Include directives are represented by tuples
(filename,(optional-list-of-ids,comments))
of type leo.datastructures.TPTP.Include.
See TPTP.THF, TPTP.TFF, TPTP.FOF, TPTP.TCF, TPTP.CNF for more information on the representation of "plain" THF, TFF, FOF, TCF and CNF formulas, respectively.
All classes have a function called
pretty
that will output the TPTP-compliant representation of the respective structure. It should hold thatparse(x.pretty) = x
whereparse
is the hypothetical parsing function for that structure.
This is the documentation for the Scala TPTP parser used, e.g., by the Leo-III prover.
Package structure
The leo package contains two sub-packages as follows:
leo.datastructures
contains the leo.datastructures.TPTP object that bundles the different abstract syntax tree (AST) representations for the different TPTP language dialects, including ...leo.datastructures.TPTP.THF
- Higher-order formulas (THF)leo.datastructures.TPTP.TFF
- Typed first-order formulas (TFF)leo.datastructures.TPTP.FOF
- Untyped first-order formulas (FOF)leo.datastructures.TPTP.TCF
- Typed clausal form (TCF)leo.datastructures.TPTP.CNF
- Untyped clausal form (CNF)leo.modules.input
- the parser itself.Usage (in short)
The leo.modules.input.TPTPParser offers several parsing methods:
Exemplary use case