let x be set ; for p being FinSequence
for i being Nat holds Del ((p +* (i,x)),i) = Del (p,i)
let p be FinSequence; for i being Nat holds Del ((p +* (i,x)),i) = Del (p,i)
let i be Nat; Del ((p +* (i,x)),i) = Del (p,i)
set f = p;
per cases
( i in dom p or not i in dom p )
;
suppose A1:
i in dom p
;
Del ((p +* (i,x)),i) = Del (p,i)then A2:
i <= len p
by FINSEQ_3:25;
1
<= i
by A1, FINSEQ_3:25;
then consider j being
Nat such that A3:
len p = j + 1
by A2, NAT_1:6;
reconsider j =
j as
Element of
NAT by ORDINAL1:def 12;
A4:
dom (p +* (i,x)) = dom p
by FUNCT_7:30;
then A5:
len (p +* (i,x)) = len p
by FINSEQ_3:29;
then
len (Del ((p +* (i,x)),i)) = j
by A1, A3, A4, FINSEQ_3:109;
then A6:
dom (Del ((p +* (i,x)),i)) = Seg j
by FINSEQ_1:def 3;
now ( len (Del ((p +* (i,x)),i)) = j & len (Del (p,i)) = j & ( for a being Nat st a in dom (Del ((p +* (i,x)),i)) holds
(Del ((p +* (i,x)),i)) . a = (Del (p,i)) . a ) )thus
len (Del ((p +* (i,x)),i)) = j
by A1, A3, A4, A5, FINSEQ_3:109;
( len (Del (p,i)) = j & ( for a being Nat st a in dom (Del ((p +* (i,x)),i)) holds
(Del ((p +* (i,x)),i)) . b2 = (Del (p,i)) . b2 ) )thus
len (Del (p,i)) = j
by A1, A3, FINSEQ_3:109;
for a being Nat st a in dom (Del ((p +* (i,x)),i)) holds
(Del ((p +* (i,x)),i)) . b2 = (Del (p,i)) . b2let a be
Nat;
( a in dom (Del ((p +* (i,x)),i)) implies (Del ((p +* (i,x)),i)) . b1 = (Del (p,i)) . b1 )assume
a in dom (Del ((p +* (i,x)),i))
;
(Del ((p +* (i,x)),i)) . b1 = (Del (p,i)) . b1then A7:
a <= j
by A6, FINSEQ_1:1;
per cases
( a < i or i <= a )
;
suppose A9:
i <= a
;
(Del ((p +* (i,x)),i)) . b1 = (Del (p,i)) . b1then A10:
i < a + 1
by NAT_1:13;
thus (Del ((p +* (i,x)),i)) . a =
(p +* (i,x)) . (a + 1)
by A1, A3, A4, A5, A7, A9, FINSEQ_3:111
.=
p . (a + 1)
by A10, FUNCT_7:32
.=
(Del (p,i)) . a
by A1, A3, A7, A9, FINSEQ_3:111
;
verum end; end; end; hence
Del (
(p +* (i,x)),
i)
= Del (
p,
i)
by FINSEQ_2:9;
verum end; end;