![JAR search and dependency download from the Maven repository](/logo.png)
gapt.proofs.context.update.ConstantDeclaration.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.Const
import gapt.expr.ty.TVar
import gapt.expr.util.typeVariables
import gapt.proofs.context.Context
import gapt.proofs.context.State
import gapt.proofs.context.facet.Constants
case class ConstantDeclaration(const: Const) extends Update {
override def apply(ctx: Context): State = {
ctx.check(const.ty)
for (p <- const.params) require(p.isInstanceOf[TVar])
require(typeVariables(const).toSet subsetOf const.params.toSet)
ctx.state.update[Constants](_ + const)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy