equal
deleted
inserted
replaced
490 end handle FalseE thm => (trace_thm "False reached early:" thm; thm) |
490 end handle FalseE thm => (trace_thm "False reached early:" thm; thm) |
491 end |
491 end |
492 end; |
492 end; |
493 |
493 |
494 fun coeff poly atom : IntInf.int = |
494 fun coeff poly atom : IntInf.int = |
495 case assoc(poly,atom) of NONE => 0 | SOME i => i; |
495 AList.lookup (op =) poly atom |> the_default 0; |
496 |
496 |
497 fun lcms is = Library.foldl lcm (1, is); |
497 fun lcms is = Library.foldl lcm (1, is); |
498 |
498 |
499 fun integ(rlhs,r,rel,rrhs,s,d) = |
499 fun integ(rlhs,r,rel,rrhs,s,d) = |
500 let val (rn,rd) = rep_rat r and (sn,sd) = rep_rat s |
500 let val (rn,rd) = rep_rat r and (sn,sd) = rep_rat s |