equal
deleted
inserted
replaced
401 apply (case_tac w rule: bin_exhaust) |
401 apply (case_tac w rule: bin_exhaust) |
402 apply (case_tac m) |
402 apply (case_tac m) |
403 apply (auto simp: le_Bits) |
403 apply (auto simp: le_Bits) |
404 done |
404 done |
405 |
405 |
406 lemma bin_sc_FP [simp]: "bin_sc n 0 Int.Pls = Int.Pls" |
406 lemma bin_sc_FP [simp]: "bin_sc n 0 0 = 0" |
407 by (induct n) (auto simp: BIT_simps) |
407 by (induct n) auto |
408 |
408 |
409 lemma bin_sc_TM [simp]: "bin_sc n 1 Int.Min = Int.Min" |
409 lemma bin_sc_TM [simp]: "bin_sc n 1 -1 = -1" |
410 by (induct n) (auto simp: BIT_simps) |
410 by (induct n) auto |
411 |
411 |
412 lemmas bin_sc_simps = bin_sc.Z bin_sc.Suc bin_sc_TM bin_sc_FP |
412 lemmas bin_sc_simps = bin_sc.Z bin_sc.Suc bin_sc_TM bin_sc_FP |
413 |
413 |
414 lemma bin_sc_minus: |
414 lemma bin_sc_minus: |
415 "0 < n ==> bin_sc (Suc (n - 1)) b w = bin_sc n b w" |
415 "0 < n ==> bin_sc (Suc (n - 1)) b w = bin_sc n b w" |