let F, H be LTL-formula; for sq being FinSequence st H = F ^ sq holds
H = F
let sq be FinSequence; ( H = F ^ sq implies H = F )
defpred S1[ Nat] means for H, F being LTL-formula
for sq being FinSequence st len H = $1 & H = F ^ sq holds
H = F;
for n being Nat st ( for k being Nat st k < n holds
for H, F being LTL-formula
for sq being FinSequence st len H = k & H = F ^ sq holds
H = F ) holds
for H, F being LTL-formula
for sq being FinSequence st len H = n & H = F ^ sq holds
H = F
proof
let n be
Nat;
( ( for k being Nat st k < n holds
for H, F being LTL-formula
for sq being FinSequence st len H = k & H = F ^ sq holds
H = F ) implies for H, F being LTL-formula
for sq being FinSequence st len H = n & H = F ^ sq holds
H = F )
assume A1:
for
k being
Nat st
k < n holds
for
H,
F being
LTL-formula for
sq being
FinSequence st
len H = k &
H = F ^ sq holds
H = F
;
for H, F being LTL-formula
for sq being FinSequence st len H = n & H = F ^ sq holds
H = F
let H,
F be
LTL-formula;
for sq being FinSequence st len H = n & H = F ^ sq holds
H = Flet sq be
FinSequence;
( len H = n & H = F ^ sq implies H = F )
assume that A2:
len H = n
and A3:
H = F ^ sq
;
H = F
(
dom F = Seg (len F) & 1
<= len F )
by Th3, FINSEQ_1:def 3;
then A4:
1
in dom F
by FINSEQ_1:1;
A5:
now ( H is negative implies H = F )A6:
len <*0*> = 1
by FINSEQ_1:40;
assume A7:
H is
negative
;
H = Fthen consider H1 being
LTL-formula such that A8:
H = 'not' H1
;
(F ^ sq) . 1
= 0
by A3, A7, Lm3;
then
F . 1
= 0
by A4, FINSEQ_1:def 7;
then
F is
negative
by Lm10;
then consider F1 being
LTL-formula such that A9:
F = 'not' F1
;
(len <*0*>) + (len H1) = len H
by A8, FINSEQ_1:22;
then A10:
len H1 < len H
by A6, NAT_1:13;
(<*0*> ^ F1) ^ sq = <*0*> ^ (F1 ^ sq)
by FINSEQ_1:32;
then
H1 = F1 ^ sq
by A3, A8, A9, FINSEQ_1:33;
hence
H = F
by A1, A2, A8, A9, A10;
verum end;
A11:
now ( H is Release implies H = F )assume A12:
H is
Release
;
H = Fthen consider G1,
G being
LTL-formula such that A13:
H = G1 'R' G
;
A14:
(len G) + (1 + (len G1)) = ((len G) + 1) + (len G1)
;
A15:
(
len (<*5*> ^ G1) = (len <*5*>) + (len G1) &
len <*5*> = 1 )
by FINSEQ_1:22, FINSEQ_1:40;
(len (<*5*> ^ G1)) + (len G) = len H
by A13, FINSEQ_1:22;
then
(len G) + 1
<= len H
by A15, A14, NAT_1:11;
then A16:
len G < len H
by NAT_1:13;
(F ^ sq) . 1
= 5
by A3, A12, Lm8;
then
F . 1
= 5
by A4, FINSEQ_1:def 7;
then
F is
Release
by Lm10;
then consider F1,
H1 being
LTL-formula such that A17:
F = F1 'R' H1
;
A22:
(
(<*5*> ^ F1) ^ H1 = <*5*> ^ (F1 ^ H1) &
(<*5*> ^ (F1 ^ H1)) ^ sq = <*5*> ^ ((F1 ^ H1) ^ sq) )
by FINSEQ_1:32;
A26:
(F1 ^ H1) ^ sq = F1 ^ (H1 ^ sq)
by FINSEQ_1:32;
(<*5*> ^ G1) ^ G = <*5*> ^ (G1 ^ G)
by FINSEQ_1:32;
then A27:
G1 ^ G = F1 ^ (H1 ^ sq)
by A3, A13, A17, A22, A26, FINSEQ_1:33;
then
(
len F1 <= len G1 implies ex
sq9 being
FinSequence st
G1 = F1 ^ sq9 )
by FINSEQ_1:47;
then
G = H1 ^ sq
by A27, A23, A18, FINSEQ_1:33, FINSEQ_1:47;
hence
H = F
by A1, A2, A3, A17, A22, A26, A16;
verum end;
A28:
now ( H is Until implies H = F )assume A29:
H is
Until
;
H = Fthen consider G1,
G being
LTL-formula such that A30:
H = G1 'U' G
;
A31:
(len G) + (1 + (len G1)) = ((len G) + 1) + (len G1)
;
A32:
(
len (<*4*> ^ G1) = (len <*4*>) + (len G1) &
len <*4*> = 1 )
by FINSEQ_1:22, FINSEQ_1:40;
(len (<*4*> ^ G1)) + (len G) = len H
by A30, FINSEQ_1:22;
then
(len G) + 1
<= len H
by A32, A31, NAT_1:11;
then A33:
len G < len H
by NAT_1:13;
(F ^ sq) . 1
= 4
by A3, A29, Lm7;
then
F . 1
= 4
by A4, FINSEQ_1:def 7;
then
F is
Until
by Lm10;
then consider F1,
H1 being
LTL-formula such that A34:
F = F1 'U' H1
;
A39:
(
(<*4*> ^ F1) ^ H1 = <*4*> ^ (F1 ^ H1) &
(<*4*> ^ (F1 ^ H1)) ^ sq = <*4*> ^ ((F1 ^ H1) ^ sq) )
by FINSEQ_1:32;
A43:
(F1 ^ H1) ^ sq = F1 ^ (H1 ^ sq)
by FINSEQ_1:32;
(<*4*> ^ G1) ^ G = <*4*> ^ (G1 ^ G)
by FINSEQ_1:32;
then A44:
G1 ^ G = F1 ^ (H1 ^ sq)
by A3, A30, A34, A39, A43, FINSEQ_1:33;
then
(
len F1 <= len G1 implies ex
sq9 being
FinSequence st
G1 = F1 ^ sq9 )
by FINSEQ_1:47;
then
G = H1 ^ sq
by A44, A40, A35, FINSEQ_1:33, FINSEQ_1:47;
hence
H = F
by A1, A2, A3, A34, A39, A43, A33;
verum end;
A45:
now ( H is disjunctive implies H = F )assume A46:
H is
disjunctive
;
H = Fthen consider G1,
G being
LTL-formula such that A47:
H = G1 'or' G
;
A48:
(len G) + (1 + (len G1)) = ((len G) + 1) + (len G1)
;
A49:
(
len (<*2*> ^ G1) = (len <*2*>) + (len G1) &
len <*2*> = 1 )
by FINSEQ_1:22, FINSEQ_1:40;
(len (<*2*> ^ G1)) + (len G) = len H
by A47, FINSEQ_1:22;
then
(len G) + 1
<= len H
by A49, A48, NAT_1:11;
then A50:
len G < len H
by NAT_1:13;
(F ^ sq) . 1
= 2
by A3, A46, Lm5;
then
F . 1
= 2
by A4, FINSEQ_1:def 7;
then
F is
disjunctive
by Lm10;
then consider F1,
H1 being
LTL-formula such that A51:
F = F1 'or' H1
;
A56:
(
(<*2*> ^ F1) ^ H1 = <*2*> ^ (F1 ^ H1) &
(<*2*> ^ (F1 ^ H1)) ^ sq = <*2*> ^ ((F1 ^ H1) ^ sq) )
by FINSEQ_1:32;
A60:
(F1 ^ H1) ^ sq = F1 ^ (H1 ^ sq)
by FINSEQ_1:32;
(<*2*> ^ G1) ^ G = <*2*> ^ (G1 ^ G)
by FINSEQ_1:32;
then A61:
G1 ^ G = F1 ^ (H1 ^ sq)
by A3, A47, A51, A56, A60, FINSEQ_1:33;
then
(
len F1 <= len G1 implies ex
sq9 being
FinSequence st
G1 = F1 ^ sq9 )
by FINSEQ_1:47;
then
G = H1 ^ sq
by A61, A57, A52, FINSEQ_1:33, FINSEQ_1:47;
hence
H = F
by A1, A2, A3, A51, A56, A60, A50;
verum end;
A62:
now ( H is conjunctive implies H = F )assume A63:
H is
conjunctive
;
H = Fthen consider G1,
G being
LTL-formula such that A64:
H = G1 '&' G
;
A65:
(len G) + (1 + (len G1)) = ((len G) + 1) + (len G1)
;
A66:
(
len (<*1*> ^ G1) = (len <*1*>) + (len G1) &
len <*1*> = 1 )
by FINSEQ_1:22, FINSEQ_1:40;
(len (<*1*> ^ G1)) + (len G) = len H
by A64, FINSEQ_1:22;
then
(len G) + 1
<= len H
by A66, A65, NAT_1:11;
then A67:
len G < len H
by NAT_1:13;
(F ^ sq) . 1
= 1
by A3, A63, Lm4;
then
F . 1
= 1
by A4, FINSEQ_1:def 7;
then
F is
conjunctive
by Lm10;
then consider F1,
H1 being
LTL-formula such that A68:
F = F1 '&' H1
;
A73:
(
(<*1*> ^ F1) ^ H1 = <*1*> ^ (F1 ^ H1) &
(<*1*> ^ (F1 ^ H1)) ^ sq = <*1*> ^ ((F1 ^ H1) ^ sq) )
by FINSEQ_1:32;
A77:
(F1 ^ H1) ^ sq = F1 ^ (H1 ^ sq)
by FINSEQ_1:32;
(<*1*> ^ G1) ^ G = <*1*> ^ (G1 ^ G)
by FINSEQ_1:32;
then A78:
G1 ^ G = F1 ^ (H1 ^ sq)
by A3, A64, A68, A73, A77, FINSEQ_1:33;
then
(
len F1 <= len G1 implies ex
sq9 being
FinSequence st
G1 = F1 ^ sq9 )
by FINSEQ_1:47;
then
G = H1 ^ sq
by A78, A74, A69, FINSEQ_1:33, FINSEQ_1:47;
hence
H = F
by A1, A2, A3, A68, A73, A77, A67;
verum end;
A79:
now ( H is next implies H = F )A80:
len <*3*> = 1
by FINSEQ_1:40;
assume A81:
H is
next
;
H = Fthen consider H1 being
LTL-formula such that A82:
H = 'X' H1
;
(F ^ sq) . 1
= 3
by A3, A81, Lm6;
then
F . 1
= 3
by A4, FINSEQ_1:def 7;
then
F is
next
by Lm10;
then consider F1 being
LTL-formula such that A83:
F = 'X' F1
;
(len <*3*>) + (len H1) = len H
by A82, FINSEQ_1:22;
then A84:
len H1 < len H
by A80, NAT_1:13;
(<*3*> ^ F1) ^ sq = <*3*> ^ (F1 ^ sq)
by FINSEQ_1:32;
then
H1 = F1 ^ sq
by A3, A82, A83, FINSEQ_1:33;
hence
H = F
by A1, A2, A82, A83, A84;
verum end;
A85:
(len F) + (len sq) = len (F ^ sq)
by FINSEQ_1:22;
hence
H = F
by A5, A62, A45, A79, A28, A11, Th2;
verum
end;
then A88:
for k being Nat st ( for n being Nat st n < k holds
S1[n] ) holds
S1[k]
;
A89:
for n being Nat holds S1[n]
from NAT_1:sch 4(A88);
len H = len H
;
hence
( H = F ^ sq implies H = F )
by A89; verum