MRealizability

gapt.proofs.nd.MRealizability

Attributes

Source
m-realizability.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def flat(formula: Formula)(implicit systemT: Context): Ty

computes the type of a potential m-realizer for the formula

computes the type of a potential m-realizer for the formula

Attributes

Source
m-realizability.scala
def mrealize(proof: NDProof, re: Boolean)(implicit ctx: Context): (Map[SequentIndex, Var], Expr)

Extracts an mrealizer for a theorem from its proof.

Extracts an mrealizer for a theorem from its proof.

Value parameters

ctx

system T

proof

proof from which the realizer is extracted

re

boolean whether or not the result should be normalized with respect to the empty program (default) or not

Attributes

Returns

a term M of system T, and a map of sequentindices of the antecedent of the conclusion of the proof, to variables x1,...,xk, such that: if M1,...,Mk are m-realizers for the formulas in the antecedent, then M[M1/x1]...[Mk/xk] m-realizes the succedent of the conclusion

Source
m-realizability.scala
def recursor(indType: TBase, resultType: Ty)(implicit ctx: Context): Const

Gives a recursor constant for an inductive type.

Gives a recursor constant for an inductive type.

Value parameters

ctx

context that the inductive type is defined in

indType

the inductive type that the recursor is for

resultType

type of the result of applying terms to the recursor

Attributes

Returns

recursor constant

Source
m-realizability.scala
def remEmpProg(term: Expr)(implicit systemT: Context): Expr

removes all occurences of the empty program i : 1 from term, or is i : 1 itself, except for match and inl and inr term: sometimes not possible to remove all occurences.

removes all occurences of the empty program i : 1 from term, or is i : 1 itself, except for match and inl and inr term: sometimes not possible to remove all occurences.

Attributes

Source
m-realizability.scala
def remEmpProgType(typee: Ty)(implicit systemT: Context): Ty

removes all occurences of the empty program type 1 from term, or is 1 itself, except for the sum type.

removes all occurences of the empty program type 1 from term, or is 1 itself, except for the sum type.

Attributes

Source
m-realizability.scala
def remEmpProgTypes(types: List[Ty])(implicit systemT: Context): List[Ty]

Attributes

Source
m-realizability.scala
def systemT(ctx: Context): Context

Transforms a context into system T.

Transforms a context into system T.

Value parameters

ctx

original context

Attributes

Returns

original context with recursors for inductive types, pair and sum types and terms, and the empty program

Source
m-realizability.scala