let B be set ; for R being Rule
for S1, S2 being Formula-finset st S1 is B,R -derivable & S2 is S1,R -derivable holds
S1 \/ S2 is B,R -derivable
let R be Rule; for S1, S2 being Formula-finset st S1 is B,R -derivable & S2 is S1,R -derivable holds
S1 \/ S2 is B,R -derivable
let S1, S2 be Formula-finset; ( S1 is B,R -derivable & S2 is S1,R -derivable implies S1 \/ S2 is B,R -derivable )
assume
( S1 is B,R -derivable & S2 is S1,R -derivable )
; S1 \/ S2 is B,R -derivable
then consider P1, P2 being Formula-sequence such that
A3:
P1 is B,R -correct
and
A4:
S1 = rng P1
and
A5:
P2 is S1,R -correct
and
A6:
S2 = rng P2
;
set P = P1 ^ P2;
A8:
for k being Nat st k in dom P1 holds
P1 ^ P2,k is_a_correct_step_wrt B,R
proof
let k be
Nat;
( k in dom P1 implies P1 ^ P2,k is_a_correct_step_wrt B,R )
assume A9:
k in dom P1
;
P1 ^ P2,k is_a_correct_step_wrt B,R
then
P1,
k is_a_correct_step_wrt B,
R
by A3;
then
P1 ^ (<*> {}),
k is_a_correct_step_wrt B,
R
by FINSEQ_1:34;
hence
P1 ^ P2,
k is_a_correct_step_wrt B,
R
by A9, Lm41;
verum
end;
A10:
P1 ^ P2 is B,R -correct
proof
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
k in dom (P1 ^ P2)
;
P1 ^ P2,k is_a_correct_step_wrt B,R
per cases then
( k in dom P1 or ex i being Nat st
( i in dom P2 & k = (len P1) + i ) )
by FINSEQ_1:25;
suppose
ex
i being
Nat st
(
i in dom P2 &
k = (len P1) + i )
;
P1 ^ P2,k is_a_correct_step_wrt B,Rthen consider i being
Nat such that A20:
i in dom P2
and A21:
k = (len P1) + i
;
P2,
i is_a_correct_step_wrt S1,
R
by A5, A20;
per cases then
( P2 . i in S1 or ex Q being Formula-finset st
( [Q,(P2 . i)] in R & ( for t being object st t in Q holds
ex l being Nat st
( l in dom P2 & l < i & P2 . l = t ) ) ) )
;
suppose
P2 . i in S1
;
P1 ^ P2,k is_a_correct_step_wrt B,Rthen consider b being
object such that A25:
b in dom P1
and A26:
P1 . b = P2 . i
by A4, FUNCT_1:def 3;
A27:
b in Seg (len P1)
by A25, FINSEQ_1:def 3;
then reconsider n =
b as
Nat ;
A28:
n <= len P1
by A27, FINSEQ_1:1;
k >= len P1
by A21, NAT_1:11;
then A29:
n <= k
by A28, XXREAL_0:2;
(P1 ^ P2) . n =
P2 . i
by A25, A26, FINSEQ_1:def 7
.=
(P1 ^ P2) . k
by A20, A21, FINSEQ_1:def 7
;
hence
P1 ^ P2,
k is_a_correct_step_wrt B,
R
by A8, A25, A29, Lm52;
verum end; end; end; end;
end;
reconsider S = rng (P1 ^ P2) as Formula-finset ;
S = S1 \/ S2
by A4, A6, FINSEQ_1:31;
hence
S1 \/ S2 is B,R -derivable
by A10; verum