Skip to content

Commit

Permalink
Use an alternative form of Let {(...) => SubProof(...)}: SubProof{(..…
Browse files Browse the repository at this point in the history
….) => (...)}.
  • Loading branch information
robby-phd committed Feb 22, 2024
1 parent e736371 commit f49250c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upgrader/src/main/scala/Upgrader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ final class Upgrader(isAuto: B, input: Predef.String, implyOp: String, var invCo
val steps = step.proofStep
val ss = for (i <- 0 until steps.size) yield translateProofStep(steps.get(i))
if (step.ID != null && step.ate != null) {
st"""${step.sub.getText} Let { (${step.ID.getText}: ${if (step.`type` == null) st"T" else translateType(step.`type`)}) => SubProof(
st"""${step.sub.getText} SubProof { (${step.ID.getText}: ${if (step.`type` == null) st"T" else translateType(step.`type`)}) => (
| ${step.assume.getText} Assume(${translateFormula(step.formula, None())})${if (ss.nonEmpty) "," else ""}
| ${(ss, ",\n")}
|)}"""
Expand All @@ -465,7 +465,7 @@ final class Upgrader(isAuto: B, input: Predef.String, implyOp: String, var invCo
| ${(ss, ",\n")}
|)"""
} else {
st"""${step.sub.getText} Let { (${step.ID.getText}: ${if (step.`type` == null) st"T" else translateType(step.`type`)}) => SubProof(
st"""${step.sub.getText} SubProof { (${step.ID.getText}: ${if (step.`type` == null) st"T" else translateType(step.`type`)}) => (
| ${(ss, ",\n")}
|)}"""
}
Expand Down

0 comments on commit f49250c

Please sign in to comment.