src/HOL/Nat.ML
changeset 5983 79e301a6a51b
parent 5644 85fd64148873
child 6109 82b50115564c
equal deleted inserted replaced
5982:aeb97860d352 5983:79e301a6a51b
   104         rtac (lessI RS less_trans) 1,
   104         rtac (lessI RS less_trans) 1,
   105         rtac (lessI RS Suc_mono) 1]);
   105         rtac (lessI RS Suc_mono) 1]);
   106 
   106 
   107 Goal "min 0 n = 0";
   107 Goal "min 0 n = 0";
   108 by (rtac min_leastL 1);
   108 by (rtac min_leastL 1);
   109 by (trans_tac 1);
   109 by (Simp_tac 1);
   110 qed "min_0L";
   110 qed "min_0L";
   111 
   111 
   112 Goal "min n 0 = 0";
   112 Goal "min n 0 = 0";
   113 by (rtac min_leastR 1);
   113 by (rtac min_leastR 1);
   114 by (trans_tac 1);
   114 by (Simp_tac 1);
   115 qed "min_0R";
   115 qed "min_0R";
   116 
   116 
   117 Goalw [min_def] "min (Suc m) (Suc n) = Suc(min m n)";
   117 Goalw [min_def] "min (Suc m) (Suc n) = Suc(min m n)";
   118 by (Simp_tac 1);
   118 by (Simp_tac 1);
   119 qed "min_Suc_Suc";
   119 qed "min_Suc_Suc";