src/HOL/ex/Factorization.ML
changeset 8600 a466c687c726
parent 8528 6c48043ccd0e
child 8935 548901d05a0e
equal deleted inserted replaced
8599:58b6f99dd5a9 8600:a466c687c726
   104 (* --- Sorting --- *)
   104 (* --- Sorting --- *)
   105 
   105 
   106 Goal "nondec xs --> nondec (oinsert x xs)";
   106 Goal "nondec xs --> nondec (oinsert x xs)";
   107 by (induct_tac "xs" 1);
   107 by (induct_tac "xs" 1);
   108 by (case_tac "list" 2);
   108 by (case_tac "list" 2);
   109 by (ALLGOALS (Asm_full_simp_tac));
   109 by (ALLGOALS(asm_full_simp_tac (simpset()delcongs[thm"list.weak_case_cong"])));
   110 qed_spec_mp "nondec_oinsert";
   110 qed_spec_mp "nondec_oinsert";
   111 
   111 
   112 Goal "nondec (sort xs)";
   112 Goal "nondec (sort xs)";
   113 by (induct_tac "xs" 1);
   113 by (induct_tac "xs" 1);
   114 by (ALLGOALS (Asm_full_simp_tac));
   114 by (ALLGOALS (Asm_full_simp_tac));