let B be set ; for R being Rule
for P1, P2 being Formula-sequence st P1 is B,R -correct & P2 is B,R -correct holds
P1 ^ P2 is B,R -correct
let R be Rule; for P1, P2 being Formula-sequence st P1 is B,R -correct & P2 is B,R -correct holds
P1 ^ P2 is B,R -correct
let P1, P2 be Formula-sequence; ( P1 is B,R -correct & P2 is B,R -correct implies P1 ^ P2 is B,R -correct )
assume that
A1:
P1 is B,R -correct
and
A2:
P2 is B,R -correct
; P1 ^ P2 is B,R -correct
let k be Nat; PROOFS_1:def 7 ( k in dom (P1 ^ P2) implies P1 ^ P2,k is_a_correct_step_wrt B,R )
assume A3:
k in dom (P1 ^ P2)
; P1 ^ P2,k is_a_correct_step_wrt B,R
per cases
( k in dom P1 or (P1 ^ P2) . k in B or ( not k in dom P1 & not (P1 ^ P2) . k in B ) )
;
suppose that A10:
not
k in dom P1
and A11:
not
(P1 ^ P2) . k in B
;
P1 ^ P2,k is_a_correct_step_wrt B,Rconsider j being
Nat such that A12:
j in dom P2
and A13:
k = (len P1) + j
by A3, A10, FINSEQ_1:25;
A15:
P2,
j is_a_correct_step_wrt B,
R
by A2, A12;
A16:
(P1 ^ P2) . k = P2 . j
by A12, A13, FINSEQ_1:def 7;
then consider Q being
Formula-finset such that A20:
[Q,(P2 . j)] in R
and A21:
for
t being
object st
t in Q holds
ex
i being
Nat st
(
i in dom P2 &
i < j &
P2 . i = t )
by A11, A15;
for
t being
object st
t in Q holds
ex
u being
Nat st
(
u in dom (P1 ^ P2) &
u < k &
(P1 ^ P2) . u = t )
hence
P1 ^ P2,
k is_a_correct_step_wrt B,
R
by A16, A20;
verum end; end;