defpred S1[ Nat] means for x being Tuple of $1, BOOLEAN holds Absval ('not' x) = ((- (Absval x)) + (2 to_power $1)) - 1;
A1:
S1[1]
A12:
now for m being non zero Nat st S1[m] holds
S1[m + 1]let m be non
zero Nat;
( S1[m] implies S1[m + 1] )assume A13:
S1[
m]
;
S1[m + 1]now for x being Tuple of m + 1, BOOLEAN holds Absval ('not' x) = ((- (Absval x)) + (2 to_power (m + 1))) - 1let x be
Tuple of
m + 1,
BOOLEAN ;
Absval ('not' x) = ((- (Absval x)) + (2 to_power (m + 1))) - 1consider t being
Element of
m -tuples_on BOOLEAN,
d being
Element of
BOOLEAN such that A14:
x = t ^ <*d*>
by FINSEQ_2:117;
A15:
Absval ('not' x) =
Absval (('not' t) ^ <*('not' d)*>)
by A14, Th9
.=
(Absval ('not' t)) + (IFEQ (('not' d),FALSE,0,(2 to_power m)))
by BINARITH:20
.=
(((- (Absval t)) + (2 to_power m)) - 1) + (IFEQ (('not' d),FALSE,0,(2 to_power m)))
by A13
;
A16:
((- (Absval x)) + (2 to_power (m + 1))) - 1
= ((- ((Absval t) + (IFEQ (d,FALSE,0,(2 to_power m))))) + (2 to_power (m + 1))) - 1
by A14, BINARITH:20;
thus
Absval ('not' x) = ((- (Absval x)) + (2 to_power (m + 1))) - 1
verum end; hence
S1[
m + 1]
;
verum end;
thus
for m being non zero Nat holds S1[m]
from NAT_1:sch 10(A1, A12); verum