equal
deleted
inserted
replaced
477 proof (simp_all) |
477 proof (simp_all) |
478 assume "n mod 2 = 0" |
478 assume "n mod 2 = 0" |
479 with mod_div_equality [of n 2] |
479 with mod_div_equality [of n 2] |
480 show "n div 2 * 2 = n" by simp |
480 show "n div 2 * 2 = n" by simp |
481 next |
481 next |
482 assume "n mod 2 \<noteq> 0" |
482 assume "n mod 2 = Suc 0" |
483 with mod_div_equality [of n 2] |
483 with mod_div_equality [of n 2] |
484 show "Suc (n div 2 * 2) = n" by arith |
484 show "Suc (n div 2 * 2) = n" by arith |
485 qed |
485 qed |
486 qed |
486 qed |
487 qed |
487 qed |