Skip to content

Commit

Permalink
Rewriting system.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Feb 12, 2024
1 parent 533dfd5 commit 6fc18ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jvm/src/test/scala/org/sireum/logika/example/rewrite.sc
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ object Rules {

@pure def substTest(c: Z, d: Z): Unit = {
Deduce(
(c === d, c + 1 === 3) |- (d + 1 === 3) Proof(
(c d, (c + 1) 3) |- ((d + 1) 3) Proof(
//@formatter:off
1 (c == d) by Premise,
2 (c + 1 == 3) by Premise,
3 (d + 1 == 3) by Rewrite(RS(subst _), 2) and (1, 2)
1 (c d) by Premise,
2 ((c + 1) 3) by Premise,
3 ((d + 1) 3) by Rewrite(RS(subst _), 2)
//@formatter:on
)
)
Expand Down

0 comments on commit 6fc18ee

Please sign in to comment.