src/CTT/Arith.thy
changeset 3837 d7f033c74b38
parent 1474 3f7d67927fe2
child 10467 e6e7205e9e91
     1.1 --- a/src/CTT/Arith.thy	Fri Oct 10 16:29:41 1997 +0200
     1.2 +++ b/src/CTT/Arith.thy	Fri Oct 10 17:10:12 1997 +0200
     1.3 @@ -15,10 +15,10 @@
     1.4         "#*",div,mod     :: "[i,i]=>i"   (infixr 70)
     1.5  
     1.6  rules
     1.7 -  add_def     "a#+b == rec(a, b, %u v.succ(v))"  
     1.8 -  diff_def    "a-b == rec(b, a, %u v.rec(v, 0, %x y.x))"  
     1.9 +  add_def     "a#+b == rec(a, b, %u v. succ(v))"  
    1.10 +  diff_def    "a-b == rec(b, a, %u v. rec(v, 0, %x y. x))"  
    1.11    absdiff_def "a|-|b == (a-b) #+ (b-a)"  
    1.12    mult_def    "a#*b == rec(a, 0, %u v. b #+ v)"  
    1.13 -  mod_def     "a mod b == rec(a, 0, %u v. rec(succ(v) |-| b, 0, %x y.succ(v)))"
    1.14 -  div_def     "a div b == rec(a, 0, %u v. rec(succ(u) mod b, succ(v), %x y.v))"
    1.15 +  mod_def     "a mod b == rec(a, 0, %u v. rec(succ(v) |-| b, 0, %x y. succ(v)))"
    1.16 +  div_def     "a div b == rec(a, 0, %u v. rec(succ(u) mod b, succ(v), %x y. v))"
    1.17  end