src/Provers/Arith/fast_lin_arith.ML
changeset 17325 d9d50222808e
parent 17029 7839e85fc246
child 17496 26535df536ae
equal deleted inserted replaced
17324:0a5eebd5ff58 17325:d9d50222808e
   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