TstpStatistics

gapt.formats.tptp.statistics.TstpStatistics

Calculates sketch statistics (TstpProofStats) and replay statistics (RPProofStats) from a list of FileData files as well as errors. Provides serialization to a file.

Attributes

Source
TstpStatistics.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T <: FileData](file: T, print_statistics: Boolean): (Either[TstpError[T], TstpProofStats[T]], Either[TstpError[T], RPProofStats[T]])

Calculate sketch statistics (TstpProofStats) and replay statistics (RPProofStats) for a given file. If the sketch has a failure, the replay has one as well/

Calculate sketch statistics (TstpProofStats) and replay statistics (RPProofStats) for a given file. If the sketch has a failure, the replay has one as well/

Type parameters

T

an instance of FileData describing the input file

Value parameters

file

the file to parse

print_statistics

print parsing statistics to stdout

Attributes

Returns

either: * a tuple of errors * a tuple of a proof sketch statistic and a replay error * a tuple of a proof sketch statistic and a replay statistic

Source
TstpStatistics.scala
def applyAll[T <: FileData](pfiles: Iterable[T], print_statistics: Boolean): ResultBundle[T]

Apply TstpStatistics.apply to a list of files

Apply TstpStatistics.apply to a list of files

Type parameters

T

an instance of FileData describing the input file

Value parameters

pfiles

the files to parse

print_statistics

print parsing statitics and progress to stdout (helpful for large batches of files)

Attributes

Returns

a ResultBundle mapping files to the corresponding statistics or errors

Source
TstpStatistics.scala
def bagErrors[T <: FileData](errors: Iterable[TstpError[T]]): ErrorBags[T]

Attributes

Source
TstpStatistics.scala
def bagResults[S <: CASCResult, T](m: Map[S, T]): (Map[String, Set[T]], Map[String, Set[T]], Map[String, Set[T]])

Divide a maping of CASCResults into submaps for each prover, each problem and those that were solved by all provers

Divide a maping of CASCResults into submaps for each prover, each problem and those that were solved by all provers

Type parameters

S

an instance of CASCResult (which is an instance of FileData)

T

the value type of the m

Value parameters

m

a map from CASCResults to arbitrary data (intended for TstpProofStats / RPProofStats )

Attributes

Returns

a triple of maps, grouping the vakyes of m ... 1) by prover 2) by problem 3) the subset of 1) that has been solved by all provers

Source
TstpStatistics.scala

Attributes

Source
TstpStatistics.scala
def filterExisting[T <: FileData](coll: Iterable[T]): Iterable[T]

Remove non-existsing files from a list of FileDatas

Remove non-existsing files from a list of FileDatas

Type parameters

T

the instance of FileData describing a file

Value parameters

coll

a list of files

Attributes

Returns

the filtered list

Source
TstpStatistics.scala
def getRPStats[T <: FileData](name: T, rp: ResolutionProof): RPProofStats[T]

Calculates RPProofStats for a given resolution proof.

Calculates RPProofStats for a given resolution proof.

Type parameters

T

the instance of FileData describing the file name

Value parameters

name

the file containing rp

rp

the replayed proof

Attributes

Returns

proof statistic for rp

Source
TstpStatistics.scala

Calculates TstpProofStats for a given refutation sketch.

Calculates TstpProofStats for a given refutation sketch.

Type parameters

T

the instance of FileData describing the file name

Value parameters

name

the file containing the sketch

rp

the proof sketch

Attributes

Returns

proof statistic for rp

Source
TstpStatistics.scala
def loadFile[T <: FileData](v: T, print_statistics: Boolean): (Either[TstpError[T], RefutationSketch], Either[TstpError[T], ResolutionProof])

Load a proof sketch and a replayed proof from a file, if possible

Load a proof sketch and a replayed proof from a file, if possible

Type parameters

T

the FileData instance used to describe files

Value parameters

print_statistics

print statistics to stdout

v

the file to parse

Attributes

Returns

a tuple of either * two TstpErrors * a refutation sketch and a TstpError * a refutation sketch and a resolution proof.

Source
TstpStatistics.scala
def loadSketch[T <: FileData](v: T, print_statistics: Boolean): Either[TstpError[T], RefutationSketch]

Loads a sketch from a FileData file

Loads a sketch from a FileData file

Type parameters

T

an instance of FileData to describe the input file

Value parameters

print_statistics

print details about errors that occur

v

the file to load

Attributes

Returns

either a TstpError describing what failed or a refutation sketch.

Source
TstpStatistics.scala
def replaySketch[T <: FileData](v: T, tstp_sketch: Either[TstpError[T], RefutationSketch], print_statistics: Boolean): Either[TstpError[T], ResolutionProof]

Replays a sketch

Replays a sketch

Type parameters

T

an instance of FileData to describe the input file

Value parameters

print_statistics

print details about errors that occur

tstp_sketch

the sketch to replay

v

the source file of the sketch

Attributes

Returns

either a TstpError describing what failed or a resolution proof.

Source
TstpStatistics.scala
def resultToCSV[T <: FileData](rpstats: Iterable[RPProofStats[T]]): CSVFile[String]

Converts a list of RPProofStats to a CSV File

Converts a list of RPProofStats to a CSV File

Type parameters

T

the FileData instance describing a TSTP file

Value parameters

rpstats

the stats to convert

Attributes

Returns

a CSV file with a row for each element in rpstats

Source
TstpStatistics.scala