All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gapt.proofs.context.update.ConditionalReductionRuleUpdate.scala Maven / Gradle / Ivy

The newest version!
package gapt.proofs.context.update

import gapt.expr.util.ConditionalReductionRule
import gapt.proofs.context.Context
import gapt.proofs.context.State
import gapt.proofs.context.facet.ConditionalReductions

case class ConditionalReductionRuleUpdate(rs: Seq[ConditionalReductionRule]) extends Update {
  override def apply(ctx: Context): State = {
    ctx.state.update[ConditionalReductions](_ ++ rs.toVector)
  }
}
object ConditionalReductionRuleUpdate {
  implicit def conditionalReductionRulesToUpdate(rs: Seq[ConditionalReductionRule]): Update =
    ConditionalReductionRuleUpdate(rs)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy