diff -r 8dc659af1bd2 -r 4c8325c64dab thys/turing_basic.thy --- a/thys/turing_basic.thy Fri Jan 25 22:12:01 2013 +0000 +++ b/thys/turing_basic.thy Sat Jan 26 01:36:48 2013 +0000 @@ -194,13 +194,15 @@ "tape_of_nat_list [n] = Oc\(Suc n)" | "tape_of_nat_list (n#ns) = Oc\(Suc n) @ Bk # (tape_of_nat_list ns)" -defs (overloaded) - tape_of_nl_abv: " \ tape_of_nat_list am" - tape_of_nat_abv : "<(n::nat)> \ Oc\(Suc n)" +fun tape_of_nat_pair :: "nat \ nat \ cell list" + where + "tape_of_nat_pair (n, m) = Oc\(Suc n) @ [Bk] @ Oc\(Suc m)" + -definition tinres :: "cell list \ cell list \ bool" - where - "tinres xs ys = (\n. xs = ys @ Bk \ n \ ys = xs @ Bk \ n)" +defs (overloaded) + tape_of_nl_abv: " \ tape_of_nat_list ns" + tape_of_nat_abv: "<(n::nat)> \ Oc\(Suc n)" + tape_of_nat_pair: "

\ tape_of_nat_pair p" fun shift :: "instr list \ nat \ instr list"