let n be non zero Nat; :: thesis: for h, i being Integer st h < 0 & i < 0 & h mod (2 to_power n) = i mod (2 to_power n) holds
2sComplement (n,h) = 2sComplement (n,i)

let h, i be Integer; :: thesis: ( h < 0 & i < 0 & h mod (2 to_power n) = i mod (2 to_power n) implies 2sComplement (n,h) = 2sComplement (n,i) )
assume that
A1: h < 0 and
A2: i < 0 and
A3: h mod (2 to_power n) = i mod (2 to_power n) ; :: thesis: 2sComplement (n,h) = 2sComplement (n,i)
|.i.| = - i by A2, ABSVALUE:def 1;
then 2 to_power (MajP (n,|.i.|)) >= - i by Def1;
then (2 to_power (MajP (n,|.i.|))) + i >= (- i) + i by XREAL_1:6;
then reconsider I = (2 to_power (MajP (n,|.i.|))) + i as Element of NAT by INT_1:3;
|.h.| = - h by A1, ABSVALUE:def 1;
then 2 to_power (MajP (n,|.h.|)) >= - h by Def1;
then (2 to_power (MajP (n,|.h.|))) + h >= (- h) + h by XREAL_1:6;
then reconsider H = (2 to_power (MajP (n,|.h.|))) + h as Element of NAT by INT_1:3;
A4: H mod (2 to_power n) = I mod (2 to_power n) by A3, Lm4;
A5: for j being Nat st j in Seg n holds
(n -BinarySequence |.H.|) . j = (n -BinarySequence |.I.|) . j
proof end;
( 2sComplement (n,h) = n -BinarySequence |.((2 to_power (MajP (n,|.h.|))) + h).| & 2sComplement (n,i) = n -BinarySequence |.((2 to_power (MajP (n,|.i.|))) + i).| ) by A1, A2, Def2;
hence 2sComplement (n,h) = 2sComplement (n,i) by A5, FINSEQ_2:119; :: thesis: verum