For certain formulas finding proofs and counterexamples takes significantly more time on Google Chrome than on Mozilla Firefox. I do not have exact timings but Firefox finishes in a fraction of a second and Chrome takes several minutes at least.
Basically this is due to different implementations of Array.sort() function in Firefox and Chrome. According to MDN callback provided to sort should return a number (positive (a > b) , negative (a < b) or zero (a = b)). Right now those callbacks return a boolean which gets converted into 1 when true and 0 when false. When receiving 0, sort should preserve order of the elements however Firefox does not do that, which results in sorted arrays. Chrome, on the other hand, does and that results in unsorted arrays.
A fix for this would be to make sure that all functions given to Array.sort return a number.
For certain formulas finding proofs and counterexamples takes significantly more time on Google Chrome than on Mozilla Firefox. I do not have exact timings but Firefox finishes in a fraction of a second and Chrome takes several minutes at least.
Example: (((∀x(Mx→(◇Px∧◇¬Px))∧∃xMx)∧(∀x(Sx→(◇Mx∧◇¬Mx))∧∃xSx))→(∀x(Sx→(◇Px∧◇¬Px))∧∃xSx)) with reflexivity, transitivity and euclidity%E2%88%A7%E2%88%83xMx)%E2%88%A7(%E2%88%80x(Sx%E2%86%92(%E2%97%87Mx%E2%88%A7%E2%97%87%C2%ACMx))%E2%88%A7%E2%88%83xSx))%E2%86%92(%E2%88%80x(Sx%E2%86%92(%E2%97%87Px%E2%88%A7%E2%97%87%C2%ACPx))%E2%88%A7%E2%88%83xSx))||reflexivity|transitivity|euclidity)
Basically this is due to different implementations of
Array.sort()
function in Firefox and Chrome. According to MDN callback provided tosort
should return a number (positive (a > b
) , negative (a < b
) or zero (a = b
)). Right now those callbacks return a boolean which gets converted into 1 whentrue
and 0 whenfalse
. When receiving 0, sort should preserve order of the elements however Firefox does not do that, which results in sorted arrays. Chrome, on the other hand, does and that results in unsorted arrays.A fix for this would be to make sure that all functions given to
Array.sort
return a number.