src/HOL/Integ/int_factor_simprocs.ML
changeset 11704 3c50a2cd6f00
parent 11701 3d51fbf81c17
child 11868 56db9f3a6b3e
equal deleted inserted replaced
11703:6e5de8d4290a 11704:3c50a2cd6f00
   112 print_depth 22;
   112 print_depth 22;
   113 set timing;
   113 set timing;
   114 set trace_simp;
   114 set trace_simp;
   115 fun test s = (Goal s; by (Simp_tac 1)); 
   115 fun test s = (Goal s; by (Simp_tac 1)); 
   116 
   116 
   117 test "# 9*x = # 12 * (y::int)";
   117 test "9*x = 12 * (y::int)";
   118 test "(# 9*x) div (# 12 * (y::int)) = z";
   118 test "(9*x) div (12 * (y::int)) = z";
   119 test "# 9*x < # 12 * (y::int)";
   119 test "9*x < 12 * (y::int)";
   120 test "# 9*x <= # 12 * (y::int)";
   120 test "9*x <= 12 * (y::int)";
   121 
   121 
   122 test "# -99*x = # 132 * (y::int)";
   122 test "-99*x = 132 * (y::int)";
   123 test "(# -99*x) div (# 132 * (y::int)) = z";
   123 test "(-99*x) div (132 * (y::int)) = z";
   124 test "# -99*x < # 132 * (y::int)";
   124 test "-99*x < 132 * (y::int)";
   125 test "# -99*x <= # 132 * (y::int)";
   125 test "-99*x <= 132 * (y::int)";
   126 
   126 
   127 test "# 999*x = # -396 * (y::int)";
   127 test "999*x = -396 * (y::int)";
   128 test "(# 999*x) div (# -396 * (y::int)) = z";
   128 test "(999*x) div (-396 * (y::int)) = z";
   129 test "# 999*x < # -396 * (y::int)";
   129 test "999*x < -396 * (y::int)";
   130 test "# 999*x <= # -396 * (y::int)";
   130 test "999*x <= -396 * (y::int)";
   131 
   131 
   132 test "# -99*x = # -81 * (y::int)";
   132 test "-99*x = -81 * (y::int)";
   133 test "(# -99*x) div (# -81 * (y::int)) = z";
   133 test "(-99*x) div (-81 * (y::int)) = z";
   134 test "# -99*x <= # -81 * (y::int)";
   134 test "-99*x <= -81 * (y::int)";
   135 test "# -99*x < # -81 * (y::int)";
   135 test "-99*x < -81 * (y::int)";
   136 
   136 
   137 test "# -2 * x = # -1 * (y::int)";
   137 test "-2 * x = -1 * (y::int)";
   138 test "# -2 * x = -(y::int)";
   138 test "-2 * x = -(y::int)";
   139 test "(# -2 * x) div (# -1 * (y::int)) = z";
   139 test "(-2 * x) div (-1 * (y::int)) = z";
   140 test "# -2 * x < -(y::int)";
   140 test "-2 * x < -(y::int)";
   141 test "# -2 * x <= # -1 * (y::int)";
   141 test "-2 * x <= -1 * (y::int)";
   142 test "-x < # -23 * (y::int)";
   142 test "-x < -23 * (y::int)";
   143 test "-x <= # -23 * (y::int)";
   143 test "-x <= -23 * (y::int)";
   144 *)
   144 *)
   145 
   145 
   146 
   146 
   147 (** Declarations for ExtractCommonTerm **)
   147 (** Declarations for ExtractCommonTerm **)
   148 
   148