Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support splitting in erasure reduction #590

Open
jvierling opened this issue Dec 6, 2016 · 2 comments
Open

Support splitting in erasure reduction #590

jvierling opened this issue Dec 6, 2016 · 2 comments

Comments

@jvierling
Copy link
Contributor

Example:

  def main( args: Array[String] ): Unit = {
    val reduction = CNFReductionLKRes |> PredicateReductionCNF |> ErasureReductionCNF
    val tip     = TipSmtParser.fixupAndParse("./../benchmarks/benchmarks/tip2015/nat_pow_one.smt2".toFile)
    val problem = tip.toSequent
    implicit val context = tip.context
    sequentialInductionAxioms.inductionAxioms(problem.succedent.head, List(hov"x:Nat")) match {
      case Success(axioms) => {
        val sequent            = axioms ++: problem
        val (folProblem, back) = reduction forward (Sequent() :+ sequent.toImplication)
        SPASS.getResolutionProof(folProblem) map back
      }
    }
  }
}

Output:

Exception in thread "main" java.util.NoSuchElementException: key not found: _split2_0:o
	at scala.collection.MapLike$class.default(MapLike.scala:228)
	at scala.collection.AbstractMap.default(Map.scala:59)
	at scala.collection.MapLike$class.apply(MapLike.scala:141)
	at scala.collection.AbstractMap.apply(Map.scala:59)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.at$logic$gapt$proofs$reduction$ErasureReductionHelper$$i$1(manySorted.scala:111)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.infer(manySorted.scala:134)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.infer(manySorted.scala:95)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper$$anonfun$g$1$1.apply(manySorted.scala:179)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper$$anonfun$g$1$1.apply(manySorted.scala:150)
	at scala.collection.mutable.MapLike$class.getOrElseUpdate(MapLike.scala:194)
	at scala.collection.mutable.AbstractMap.getOrElseUpdate(Map.scala:80)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.g$1(manySorted.scala:150)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.at$logic$gapt$proofs$reduction$ErasureReductionHelper$$f$1(manySorted.scala:147)
	at at.logic.gapt.proofs.reduction.ErasureReductionHelper.back(manySorted.scala:198)
	at at.logic.gapt.proofs.reduction.ErasureReductionCNF$$anonfun$forward$7.apply(manySorted.scala:258)
	at at.logic.gapt.proofs.reduction.ErasureReductionCNF$$anonfun$forward$7.apply(manySorted.scala:258)
	at at.logic.gapt.proofs.reduction.CombinedReduction$$anonfun$forward$1.apply(manySorted.scala:46)
	at scala.Option.map(Option.scala:146)
	at at.logic.gapt.provers.viper.Example$.main(Bug.scala:25)
	at at.logic.gapt.provers.viper.Example.main(Bug.scala)
@gebner
Copy link
Member

gebner commented Dec 6, 2016

Yeah, splitting is not really supported in the back-translation. Can you try eliminateSplitting on the resolution proof first? We might want to add that call to ErasureReductionCNF then.

@jvierling
Copy link
Contributor Author

Applying eliminateSplitting on the resolution proof worked.

@gebner gebner changed the title CNFReductionLKRes |> PredicateReductionCNF |> ErasureReductionCNF back-translation fails on SPASS proof Support splitting in erasure reduction Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants