@@ -48,7 +48,7 @@ pattern syntax bitpair [x] [y] = (_ ** (_ ** (x, y, _)))
48term syntax bitpair [x] [y] = (_ ** (_ ** (x, y, refl)))
48term syntax bitpair [x] [y] = (_ ** (_ ** (x, y, refl)))
50addBit : Bit x -> Bit y -> Bit c ->
50addBit : Bit x -> Bit y -> Bit c ->
51− (bx ** (by ** (Bit bx, Bit by, c + x + y = by + 2 * bx)))
51+ (bX ** (bY ** (Bit bX, Bit bY, c + x + y = bY + 2 * bX)))
52addBit b0 b0 b0 = bitpair b0 b0
52addBit b0 b0 b0 = bitpair b0 b0
53addBit b0 b0 b1 = bitpair b0 b1
53addBit b0 b0 b1 = bitpair b0 b1
54addBit b0 b1 b0 = bitpair b0 b1
54addBit b0 b1 b0 = bitpair b0 b1
@@ -60,8 +60,8 @@ addBit b1 b1 b1 = bitpair b1 b1
61adc : Binary w x -> Binary w y -> Bit c -> Binary (S w) (c + x + y)
61adc : Binary w x -> Binary w y -> Bit c -> Binary (S w) (c + x + y)
62adc zero zero carry ?= zero # carry
62adc zero zero carry ?= zero # carry
63−adc (numx # bx) (numy # by) carry
63+adc (numx # bX) (numy # bY) carry
64− ?= let (bitpair carry0 lsb) = addBit bx by carry in
64+ ?= let (bitpair carry0 lsb) = addBit bX bY carry in
65 adc numx numy carry0 # lsb
65 adc numx numy carry0 # lsb
67readNum : IO Nat
67readNum : IO Nat
@@ -108,7 +108,7 @@ Main.ntbEven = proof {
108Main.adc_lemma_2 = proof {
108Main.adc_lemma_2 = proof {
109 intro c,w,v,bit0,num0;
109 intro c,w,v,bit0,num0;
110 intro b0,v1,bit1,num1,b1;
110 intro b0,v1,bit1,num1,b1;
111− intro bc,x,x1,bx,bx1;
111+ intro bc,x,x1,bX,bX1;
112 rewrite sym (plusZeroRightNeutral x);
112 rewrite sym (plusZeroRightNeutral x);
113 rewrite sym (plusZeroRightNeutral v1);
113 rewrite sym (plusZeroRightNeutral v1);
114 rewrite sym (plusZeroRightNeutral (plus (plus x v) v1));
114 rewrite sym (plusZeroRightNeutral (plus (plus x v) v1));