gapt.proofs.lk.rules.WeakeningRightRule.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.lk.rules
import gapt.expr.formula.Formula
import gapt.proofs.HOLSequent
import gapt.proofs.Sequent
import gapt.proofs.lk.LKProof
/**
* An LKProof ending with a right weakening:
*
* (π)
* Γ :- Δ
* ---------w:r
* Γ :- Δ, A
*
*
* @param subProof The subproof π.
* @param formula The formula A.
*/
case class WeakeningRightRule(subProof: LKProof, formula: Formula)
extends UnaryLKProof with CommonRule {
override def auxIndices: Seq[Seq[Nothing]] = Seq(Seq())
override def name: String = "w:r"
def mainFormula: Formula = formula
override def mainFormulaSequent: HOLSequent = Sequent() :+ mainFormula
}