let X be BCI-algebra; :: thesis: for a being Element of AtomSet X
for i, j being Integer holds (a |^ i) \ (a |^ j) = a |^ (i - j)

let a be Element of AtomSet X; :: thesis: for i, j being Integer holds (a |^ i) \ (a |^ j) = a |^ (i - j)
let i, j be Integer; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
per cases ( i > 0 or i = 0 or i < 0 ) ;
suppose A5: i > 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
per cases ( j > 0 or j = 0 or j < 0 ) ;
suppose j > 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
hence (a |^ i) \ (a |^ j) = a |^ (i - j) by Lm20, A5; :: thesis: verum
end;
suppose C1: j = 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
a |^ (i - 0 ) = (a |^ i) \ (0. X) by BCIALG_1:2
.= (a |^ i) \ (a |^ 0 ) by Def1 ;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) by C1; :: thesis: verum
end;
suppose C3: j < 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
set m = - j;
reconsider i = i, m = - j as Element of NAT by A5, C3, INT_1:16;
a |^ j = (BCI-power X) . (a ` ),(abs j) by Def2, C3
.= (a ` ) |^ m by C3, ABSVALUE:def 1
.= (a |^ m) ` by Th17 ;
then (a |^ i) \ (a |^ j) = a |^ (i + m) by Th14;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) ; :: thesis: verum
end;
end;
end;
suppose A9: i = 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
per cases ( j >= 0 or j < 0 ) ;
suppose j >= 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
then reconsider j = j as Element of NAT by INT_1:16;
(a |^ 0 ) \ (a |^ j) = (a |^ j) ` by Def1
.= (a ` ) |^ j by Th17
.= a |^ (- j) by Th9 ;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) by A9; :: thesis: verum
end;
suppose C3: j < 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
set m = - j;
reconsider m = - j as Element of NAT by C3, INT_1:16;
a |^ j = (BCI-power X) . (a ` ),(abs j) by Def2, C3
.= (a ` ) |^ m by C3, ABSVALUE:def 1
.= (a |^ m) ` by Th17 ;
then (a |^ 0 ) \ (a |^ j) = a |^ (0 + m) by Th14;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) by A9; :: thesis: verum
end;
end;
end;
suppose E1: i < 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
then E2: - i > 0 by XREAL_1:60;
reconsider m = - i as Element of NAT by E1, INT_1:16;
per cases ( j >= 0 or j < 0 ) ;
suppose E3: j >= 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
set n = - (i - j);
reconsider n = - (i - j), j = j as Element of NAT by E1, E3, INT_1:16;
reconsider b = a ` as Element of AtomSet X by BCIALG_1:34;
E9: a |^ (i - j) = (BCI-power X) . (a ` ),(abs (i - j)) by Def2, E1
.= (a ` ) |^ n by E1, ABSVALUE:def 1
.= b |^ (j + m)
.= ((a ` ) |^ m) \ (((a ` ) |^ j) ` ) by Th14 ;
E11: a |^ i = (BCI-power X) . (a ` ),(abs i) by Def2, E1
.= (a ` ) |^ m by E1, ABSVALUE:def 1 ;
((a ` ) |^ j) ` = (b ` ) |^ j by Th17
.= a |^ j by BCIALG_1:29 ;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) by E9, E11; :: thesis: verum
end;
suppose E13: j < 0 ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
then E15: - j > 0 by XREAL_1:60;
reconsider n = - j as Element of NAT by E13, INT_1:16;
reconsider b = a ` as Element of AtomSet X by BCIALG_1:34;
E17: a |^ i = (BCI-power X) . (a ` ),(abs i) by Def2, E1
.= (a ` ) |^ m by E1, ABSVALUE:def 1 ;
a |^ j = (BCI-power X) . (a ` ),(abs j) by Def2, E13
.= (a ` ) |^ n by E13, ABSVALUE:def 1 ;
then E19: (a |^ i) \ (a |^ j) = b |^ (m - n) by Lm20, E15, E2, E17;
per cases ( m >= n or m < n ) ;
suppose m >= n ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
then reconsider q = m - n as Element of NAT by INT_1:16, XREAL_1:50;
(a |^ i) \ (a |^ j) = a |^ (- q) by Th9, E19;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) ; :: thesis: verum
end;
suppose F0: m < n ; :: thesis: (a |^ i) \ (a |^ j) = a |^ (i - j)
then n - m > 0 by XREAL_1:52;
then reconsider p = n - m as Element of NAT by INT_1:16;
reconsider c = b ` as Element of AtomSet X by BCIALG_1:34;
F3: m - n < 0 by F0, XREAL_1:51;
then (a |^ i) \ (a |^ j) = (BCI-power X) . (b ` ),(abs (m - n)) by Def2, E19
.= (BCI-power X) . (b ` ),(- (m - n)) by F3, ABSVALUE:def 1
.= a |^ p by BCIALG_1:29 ;
hence (a |^ i) \ (a |^ j) = a |^ (i - j) ; :: thesis: verum
end;
end;
end;
end;
end;
end;