Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGuilloud committed Oct 25, 2024
1 parent cd05987 commit d369a7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions lisa-sets2/src/main/scala/lisa/automation/Congruence.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ object Congruence extends ProofTactic with ProofSequentTactic {
egraph.addAll(bot.right)

bot.left.foreach{
case `===` #@ l #@ r => egraph.merge(l, r)
case `<=>` #@ l #@ r => egraph.merge(l, r)
case === #@ l #@ r => egraph.merge(l, r)
case <=> #@ l #@ r => egraph.merge(l, r)
case _ => ()
}

Expand Down Expand Up @@ -66,10 +66,10 @@ object Congruence extends ProofTactic with ProofSequentTactic {
case _ => false
} || {
lf match
case neg #@ (`===` #@ a #@ b) if egraph.idEq(a, b) =>
case neg #@ (=== #@ a #@ b) if egraph.idEq(a, b) =>
have(egraph.proveExpr(a, b, bot))
true
case neg #@ (`<=>` #@ a #@ b) if egraph.idEq(a, b) =>
case neg #@ (<=> #@ a #@ b) if egraph.idEq(a, b) =>
have(egraph.proveExpr(a, b, bot))
true
case _ => false
Expand All @@ -88,10 +88,10 @@ object Congruence extends ProofTactic with ProofSequentTactic {
case _ => false
} || {
rf match
case (`===` #@ a #@ b) if egraph.idEq(a, b) =>
case (=== #@ a #@ b) if egraph.idEq(a, b) =>
have(egraph.proveExpr(a, b, bot))
true
case (`<=>` #@ a #@ b) if egraph.idEq(a, b) =>
case (<=> #@ a #@ b) if egraph.idEq(a, b) =>
have(egraph.proveExpr(a, b, bot))
true
case _ => false
Expand Down
8 changes: 4 additions & 4 deletions lisa-sets2/src/main/scala/lisa/automation/Substitution.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ object Substitution:
(rule: proof.Fact | F.Formula): RewriteRule =
rule match
case f: Formula @unchecked => (f: @unchecked) match
case `===` #@ (l: Term) #@ (r: Term) => TermRewriteRule(l, r)
case `<=>` #@ (l: Formula) #@ (r: Formula) => FormulaRewriteRule(l, r)
case === #@ (l: Term) #@ (r: Term) => TermRewriteRule(l, r)
case <=> #@ (l: Formula) #@ (r: Formula) => FormulaRewriteRule(l, r)
case f: proof.Fact @unchecked => extractRule(proof.getSequent(f).right.head)

/**
Expand Down Expand Up @@ -61,8 +61,8 @@ object Substitution:
(rule: (proof.Fact | F.Formula)): Boolean =
rule match
// as formula
case f: Formula @ unchecked => f match
case ===(l, r) => true
case f: Formula @unchecked => f match
case === #@ l #@ r => true
case <=> #@ l #@ r => true
case _ => false
// as a justification
Expand Down

0 comments on commit d369a7e

Please sign in to comment.