
gapt.proofs.context.update.ProofDeclaration.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gapt_3 Show documentation
Show all versions of gapt_3 Show documentation
General Architecture for Proof Theory
The newest version!
package gapt.proofs.context.update
import gapt.expr.Expr
import gapt.proofs.context.Context
import gapt.proofs.context.State
import gapt.proofs.lk.LKProof
import gapt.proofs.lk.rules.ProofLink
case class ProofDeclaration(lhs: Expr, proof: LKProof) extends Update {
def link = ProofLink(lhs, proof.endSequent)
override def apply(ctx: Context): State =
ctx + ProofNameDeclaration(lhs, proof.endSequent) + ProofDefinitionDeclaration(lhs, proof) state
override def toString: String =
s"ProofDeclaration($lhs, ${proof.endSequent})"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy