let p, q be FinSequence; for i being Nat st i >= 1 & i < len p holds
(p $^ q) . i = p . i
let i be Nat; ( i >= 1 & i < len p implies (p $^ q) . i = p . i )
assume that
A1:
i >= 1
and
A2:
i < len p
; (p $^ q) . i = p . i
per cases
( q = {} or q <> {} )
;
suppose
q <> {}
;
(p $^ q) . i = p . ithen consider j being
Nat,
r being
FinSequence such that A3:
len p = j + 1
and A4:
r = p | (Seg j)
and A5:
p $^ q = r ^ q
by A2, CARD_1:27, REWRITE1:def 1;
A6:
p = r ^ <*(p . (len p))*>
by A3, A4, FINSEQ_3:55;
j < len p
by A3, NAT_1:13;
then A7:
len r = j
by A4, FINSEQ_1:17;
i <= j
by A2, A3, NAT_1:13;
then A8:
i in dom r
by A1, A7, FINSEQ_3:25;
then
(p $^ q) . i = r . i
by A5, FINSEQ_1:def 7;
hence
(p $^ q) . i = p . i
by A8, A6, FINSEQ_1:def 7;
verum end; end;