You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//If(false) getting stuck is fine. But rewriting it to a silent handle makes this example go out of memory. This means that a rule is being reapplied infinitely on the handle. In this revision, disabling the rule Site-If-false makes this work, otherwise it gives stack out of memory error.
Factorial(x) := (((if(r) < r < Equals(x,0)) >> 1) | ((if(r) < r < Gr(x,0)) >> (Mul(a,x) < a < (Factorial(b) < b < Sub(x,1)))))
//Factorial(x) := (((If(r) < r < Equals(x,0)) >> 1) | ((If(r) < r < Gr(x,0)) >> ((Sub(x,1) > b > Factorial(b)) > a > Mul(a,x))))