Skip to content

Commit

Permalink
Update: match further optimizes
Browse files Browse the repository at this point in the history
  • Loading branch information
patham9 committed Oct 24, 2023
1 parent 252e89e commit d0991bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nalifier/nalifier.metta
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(= (query $Term)
(match &self (= (|- ($A $T1) ($B $T2)) ($Term ($f $T1 $T2)))
(match &self (, (($A $T1) $Ev1) (($B $T2) $Ev2))
(If (StampDisjoint $Ev1 $Ev2)
(($Term ($f $T1 $T2)) (TupleConcat $Ev1 $Ev2))))))
(match &self (, (= (|- ($A $T1) ($B $T2)) ($Term ($f $T1 $T2)))
(($A $T1) $Ev1) (($B $T2) $Ev2))
(If (StampDisjoint $Ev1 $Ev2)
(($Term ($f $T1 $T2)) (TupleConcat $Ev1 $Ev2)))))

;choice between two options of different term
(= (Choice (($Term1 $T1) $ev1) (($Term2 $T2) $ev2))
Expand Down

0 comments on commit d0991bb

Please sign in to comment.