:: CQC_THE3 semantic presentation

theorem Th1: :: CQC_THE3:1
for b1 being Element of CQC-WFF
for b2 being Subset of CQC-WFF st b1 in b2 holds
b2 |- b1
proof end;

theorem Th2: :: CQC_THE3:2
for b1, b2 being Subset of CQC-WFF st b1 c= Cn b2 holds
Cn b1 c= Cn b2
proof end;

theorem Th3: :: CQC_THE3:3
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b3 |- b1 & {b1} |- b2 holds
b3 |- b2
proof end;

theorem Th4: :: CQC_THE3:4
for b1 being Element of CQC-WFF
for b2, b3 being Subset of CQC-WFF st b2 |- b1 & b2 c= b3 holds
b3 |- b1
proof end;

definition
let c1, c2 be Element of CQC-WFF ;
pred c1 |- c2 means :Def1: :: CQC_THE3:def 1
{a1} |- a2;
end;

:: deftheorem Def1 defines |- CQC_THE3:def 1 :
for b1, b2 being Element of CQC-WFF holds
( b1 |- b2 iff {b1} |- b2 );

theorem Th5: :: CQC_THE3:5
for b1 being Element of CQC-WFF holds b1 |- b1
proof end;

theorem Th6: :: CQC_THE3:6
for b1, b2, b3 being Element of CQC-WFF st b1 |- b2 & b2 |- b3 holds
b1 |- b3
proof end;

definition
let c1, c2 be Subset of CQC-WFF ;
pred c1 |- c2 means :Def2: :: CQC_THE3:def 2
for b1 being Element of CQC-WFF st b1 in a2 holds
a1 |- b1;
end;

:: deftheorem Def2 defines |- CQC_THE3:def 2 :
for b1, b2 being Subset of CQC-WFF holds
( b1 |- b2 iff for b3 being Element of CQC-WFF st b3 in b2 holds
b1 |- b3 );

theorem Th7: :: CQC_THE3:7
for b1, b2 being Subset of CQC-WFF holds
( b1 |- b2 iff b2 c= Cn b1 )
proof end;

theorem Th8: :: CQC_THE3:8
for b1 being Subset of CQC-WFF holds b1 |- b1
proof end;

theorem Th9: :: CQC_THE3:9
for b1, b2, b3 being Subset of CQC-WFF st b1 |- b2 & b2 |- b3 holds
b1 |- b3
proof end;

theorem Th10: :: CQC_THE3:10
for b1 being Element of CQC-WFF
for b2 being Subset of CQC-WFF holds
( b2 |- {b1} iff b2 |- b1 )
proof end;

theorem Th11: :: CQC_THE3:11
for b1, b2 being Element of CQC-WFF holds
( {b1} |- {b2} iff b1 |- b2 )
proof end;

theorem Th12: :: CQC_THE3:12
for b1, b2 being Subset of CQC-WFF st b1 c= b2 holds
b2 |- b1
proof end;

theorem Th13: :: CQC_THE3:13
for b1 being Subset of CQC-WFF holds b1 |- TAUT
proof end;

theorem Th14: :: CQC_THE3:14
{} CQC-WFF |- TAUT by Th13;

definition
let c1 be Subset of CQC-WFF ;
pred |- c1 means :Def3: :: CQC_THE3:def 3
for b1 being Element of CQC-WFF st b1 in a1 holds
|- b1;
end;

:: deftheorem Def3 defines |- CQC_THE3:def 3 :
for b1 being Subset of CQC-WFF holds
( |- b1 iff for b2 being Element of CQC-WFF st b2 in b1 holds
|- b2 );

theorem Th15: :: CQC_THE3:15
for b1 being Subset of CQC-WFF holds
( |- b1 iff {} CQC-WFF |- b1 )
proof end;

theorem Th16: :: CQC_THE3:16
|- TAUT by Th14, Th15;

theorem Th17: :: CQC_THE3:17
for b1 being Subset of CQC-WFF holds
( |- b1 iff b1 c= TAUT )
proof end;

definition
let c1, c2 be Subset of CQC-WFF ;
pred c1 |-| c2 means :Def4: :: CQC_THE3:def 4
for b1 being Element of CQC-WFF holds
( a1 |- b1 iff a2 |- b1 );
reflexivity
for b1 being Subset of CQC-WFF
for b2 being Element of CQC-WFF holds
( b1 |- b2 iff b1 |- b2 )
;
symmetry
for b1, b2 being Subset of CQC-WFF st ( for b3 being Element of CQC-WFF holds
( b1 |- b3 iff b2 |- b3 ) ) holds
for b3 being Element of CQC-WFF holds
( b2 |- b3 iff b1 |- b3 )
;
end;

:: deftheorem Def4 defines |-| CQC_THE3:def 4 :
for b1, b2 being Subset of CQC-WFF holds
( b1 |-| b2 iff for b3 being Element of CQC-WFF holds
( b1 |- b3 iff b2 |- b3 ) );

theorem Th18: :: CQC_THE3:18
for b1, b2 being Subset of CQC-WFF holds
( b1 |-| b2 iff ( b1 |- b2 & b2 |- b1 ) )
proof end;

theorem Th19: :: CQC_THE3:19
for b1, b2, b3 being Subset of CQC-WFF st b1 |-| b2 & b2 |-| b3 holds
b1 |-| b3
proof end;

theorem Th20: :: CQC_THE3:20
for b1, b2 being Subset of CQC-WFF holds
( b1 |-| b2 iff Cn b1 = Cn b2 )
proof end;

Lemma21: for b1, b2 being Subset of CQC-WFF holds b1 \/ b2 c= (Cn b1) \/ (Cn b2)
proof end;

theorem Th21: :: CQC_THE3:21
for b1, b2 being Subset of CQC-WFF holds (Cn b1) \/ (Cn b2) c= Cn (b1 \/ b2)
proof end;

theorem Th22: :: CQC_THE3:22
for b1, b2 being Subset of CQC-WFF holds Cn (b1 \/ b2) = Cn ((Cn b1) \/ (Cn b2))
proof end;

theorem Th23: :: CQC_THE3:23
for b1 being Subset of CQC-WFF holds b1 |-| Cn b1
proof end;

theorem Th24: :: CQC_THE3:24
for b1, b2 being Subset of CQC-WFF holds b1 \/ b2 |-| (Cn b1) \/ (Cn b2)
proof end;

theorem Th25: :: CQC_THE3:25
for b1, b2, b3 being Subset of CQC-WFF st b1 |-| b2 holds
b1 \/ b3 |-| b2 \/ b3
proof end;

theorem Th26: :: CQC_THE3:26
for b1, b2, b3, b4 being Subset of CQC-WFF st b1 |-| b2 & b1 \/ b3 |- b4 holds
b2 \/ b3 |- b4
proof end;

theorem Th27: :: CQC_THE3:27
for b1, b2, b3 being Subset of CQC-WFF st b1 |-| b2 & b3 |- b1 holds
b3 |- b2
proof end;

definition
let c1, c2 be Element of CQC-WFF ;
pred c1 |-| c2 means :Def5: :: CQC_THE3:def 5
( a1 |- a2 & a2 |- a1 );
reflexivity
for b1 being Element of CQC-WFF holds
( b1 |- b1 & b1 |- b1 )
by Th5;
symmetry
for b1, b2 being Element of CQC-WFF st b1 |- b2 & b2 |- b1 holds
( b2 |- b1 & b1 |- b2 )
;
end;

:: deftheorem Def5 defines |-| CQC_THE3:def 5 :
for b1, b2 being Element of CQC-WFF holds
( b1 |-| b2 iff ( b1 |- b2 & b2 |- b1 ) );

theorem Th28: :: CQC_THE3:28
for b1, b2, b3 being Element of CQC-WFF st b1 |-| b2 & b2 |-| b3 holds
b1 |-| b3
proof end;

theorem Th29: :: CQC_THE3:29
for b1, b2 being Element of CQC-WFF holds
( b1 |-| b2 iff {b1} |-| {b2} )
proof end;

theorem Th30: :: CQC_THE3:30
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b1 |-| b2 & b3 |- b1 holds
b3 |- b2
proof end;

theorem Th31: :: CQC_THE3:31
for b1, b2 being Element of CQC-WFF holds {b1,b2} |-| {(b1 '&' b2)}
proof end;

theorem Th32: :: CQC_THE3:32
for b1, b2 being Element of CQC-WFF holds b1 '&' b2 |-| b2 '&' b1
proof end;

Lemma31: for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b3 |- b1 & b3 |- b2 holds
b3 |- b1 '&' b2
proof end;

Lemma32: for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b3 |- b1 '&' b2 holds
( b3 |- b1 & b3 |- b2 )
proof end;

theorem Th33: :: CQC_THE3:33
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF holds
( b3 |- b1 '&' b2 iff ( b3 |- b1 & b3 |- b2 ) ) by Lemma31, Lemma32;

Lemma33: for b1, b2, b3, b4 being Element of CQC-WFF st b1 |-| b2 & b3 |-| b4 holds
b1 '&' b3 |- b2 '&' b4
proof end;

theorem Th34: :: CQC_THE3:34
for b1, b2, b3, b4 being Element of CQC-WFF st b1 |-| b2 & b3 |-| b4 holds
b1 '&' b3 |-| b2 '&' b4
proof end;

theorem Th35: :: CQC_THE3:35
for b1 being Element of CQC-WFF
for b2 being Subset of CQC-WFF
for b3 being bound_QC-variable holds
( b2 |- All b3,b1 iff b2 |- b1 )
proof end;

theorem Th36: :: CQC_THE3:36
for b1 being Element of CQC-WFF
for b2 being bound_QC-variable holds All b2,b1 |-| b1
proof end;

theorem Th37: :: CQC_THE3:37
for b1, b2 being Element of CQC-WFF
for b3, b4 being bound_QC-variable st b1 |-| b2 holds
All b3,b1 |-| All b4,b2
proof end;

definition
let c1, c2 be Element of CQC-WFF ;
pred c1 is_an_universal_closure_of c2 means :Def6: :: CQC_THE3:def 6
( a1 is closed & ex b1 being Nat st
( 1 <= b1 & ex b2 being FinSequence st
( len b2 = b1 & b2 . 1 = a2 & b2 . b1 = a1 & ( for b3 being Nat st 1 <= b3 & b3 < b1 holds
ex b4 being bound_QC-variableex b5 being Element of CQC-WFF st
( b5 = b2 . b3 & b2 . (b3 + 1) = All b4,b5 ) ) ) ) );
end;

:: deftheorem Def6 defines is_an_universal_closure_of CQC_THE3:def 6 :
for b1, b2 being Element of CQC-WFF holds
( b1 is_an_universal_closure_of b2 iff ( b1 is closed & ex b3 being Nat st
( 1 <= b3 & ex b4 being FinSequence st
( len b4 = b3 & b4 . 1 = b2 & b4 . b3 = b1 & ( for b5 being Nat st 1 <= b5 & b5 < b3 holds
ex b6 being bound_QC-variableex b7 being Element of CQC-WFF st
( b7 = b4 . b5 & b4 . (b5 + 1) = All b6,b7 ) ) ) ) ) );

theorem Th38: :: CQC_THE3:38
for b1, b2 being Element of CQC-WFF st b1 is_an_universal_closure_of b2 holds
b1 |-| b2
proof end;

theorem Th39: :: CQC_THE3:39
for b1, b2 being Element of CQC-WFF st |- b1 => b2 holds
b1 |- b2
proof end;

theorem Th40: :: CQC_THE3:40
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b3 |- b1 => b2 holds
b3 \/ {b1} |- b2
proof end;

theorem Th41: :: CQC_THE3:41
for b1, b2 being Element of CQC-WFF st b1 is closed & b1 |- b2 holds
|- b1 => b2
proof end;

theorem Th42: :: CQC_THE3:42
for b1, b2, b3 being Element of CQC-WFF
for b4 being Subset of CQC-WFF st b1 is_an_universal_closure_of b2 holds
( b4 \/ {b2} |- b3 iff b4 |- b1 => b3 )
proof end;

theorem Th43: :: CQC_THE3:43
for b1, b2 being Element of CQC-WFF st b1 is closed & b1 |- b2 holds
'not' b2 |- 'not' b1
proof end;

theorem Th44: :: CQC_THE3:44
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b1 is closed & b3 \/ {b1} |- b2 holds
b3 \/ {('not' b2)} |- 'not' b1
proof end;

theorem Th45: :: CQC_THE3:45
for b1, b2 being Element of CQC-WFF st b1 is closed & 'not' b1 |- 'not' b2 holds
b2 |- b1
proof end;

theorem Th46: :: CQC_THE3:46
for b1, b2 being Element of CQC-WFF
for b3 being Subset of CQC-WFF st b1 is closed & b3 \/ {('not' b1)} |- 'not' b2 holds
b3 \/ {b2} |- b1
proof end;

theorem Th47: :: CQC_THE3:47
for b1, b2 being Element of CQC-WFF st b1 is closed & b2 is closed holds
( b1 |- b2 iff 'not' b2 |- 'not' b1 ) by Th43, Th45;

theorem Th48: :: CQC_THE3:48
for b1, b2, b3, b4 being Element of CQC-WFF st b1 is_an_universal_closure_of b2 & b3 is_an_universal_closure_of b4 holds
( b2 |- b4 iff 'not' b3 |- 'not' b1 )
proof end;

theorem Th49: :: CQC_THE3:49
for b1, b2, b3, b4 being Element of CQC-WFF st b1 is_an_universal_closure_of b2 & b3 is_an_universal_closure_of b4 holds
( b2 |-| b4 iff 'not' b1 |-| 'not' b3 )
proof end;

definition
let c1, c2 be Element of CQC-WFF ;
pred c1 <==> c2 means :Def7: :: CQC_THE3:def 7
|- a1 <=> a2;
reflexivity
for b1 being Element of CQC-WFF holds |- b1 <=> b1
proof end;
symmetry
for b1, b2 being Element of CQC-WFF st |- b1 <=> b2 holds
|- b2 <=> b1
proof end;
end;

:: deftheorem Def7 defines <==> CQC_THE3:def 7 :
for b1, b2 being Element of CQC-WFF holds
( b1 <==> b2 iff |- b1 <=> b2 );

theorem Th50: :: CQC_THE3:50
for b1, b2 being Element of CQC-WFF holds
( b1 <==> b2 iff ( |- b1 => b2 & |- b2 => b1 ) )
proof end;

theorem Th51: :: CQC_THE3:51
for b1, b2, b3 being Element of CQC-WFF st b1 <==> b2 & b2 <==> b3 holds
b1 <==> b3
proof end;

theorem Th52: :: CQC_THE3:52
for b1, b2 being Element of CQC-WFF st b1 <==> b2 holds
b1 |-| b2
proof end;

Lemma46: for b1, b2 being Element of CQC-WFF st b1 <==> b2 holds
'not' b1 <==> 'not' b2
proof end;

Lemma47: for b1, b2 being Element of CQC-WFF st 'not' b1 <==> 'not' b2 holds
b1 <==> b2
proof end;

theorem Th53: :: CQC_THE3:53
for b1, b2 being Element of CQC-WFF holds
( b1 <==> b2 iff 'not' b1 <==> 'not' b2 ) by Lemma46, Lemma47;

theorem Th54: :: CQC_THE3:54
for b1, b2, b3, b4 being Element of CQC-WFF st b1 <==> b2 & b3 <==> b4 holds
b1 '&' b3 <==> b2 '&' b4
proof end;

theorem Th55: :: CQC_THE3:55
for b1, b2, b3, b4 being Element of CQC-WFF st b1 <==> b2 & b3 <==> b4 holds
b1 => b3 <==> b2 => b4
proof end;

theorem Th56: :: CQC_THE3:56
for b1, b2, b3, b4 being Element of CQC-WFF st b1 <==> b2 & b3 <==> b4 holds
b1 'or' b3 <==> b2 'or' b4
proof end;

theorem Th57: :: CQC_THE3:57
for b1, b2, b3, b4 being Element of CQC-WFF st b1 <==> b2 & b3 <==> b4 holds
b1 <=> b3 <==> b2 <=> b4
proof end;

theorem Th58: :: CQC_THE3:58
for b1, b2 being Element of CQC-WFF
for b3 being bound_QC-variable st b1 <==> b2 holds
All b3,b1 <==> All b3,b2
proof end;

theorem Th59: :: CQC_THE3:59
for b1, b2 being Element of CQC-WFF
for b3 being bound_QC-variable st b1 <==> b2 holds
Ex b3,b1 <==> Ex b3,b2
proof end;

theorem Th60: :: CQC_THE3:60
canceled;

theorem Th61: :: CQC_THE3:61
for b1 being Nat
for b2 being QC-variable_list of b1
for b3 being free_QC-variable
for b4 being bound_QC-variable holds still_not-bound_in b2 c= still_not-bound_in (Subst b2,(b3 .--> b4))
proof end;

theorem Th62: :: CQC_THE3:62
for b1 being Nat
for b2 being QC-variable_list of b1
for b3 being free_QC-variable
for b4 being bound_QC-variable holds still_not-bound_in (Subst b2,(b3 .--> b4)) c= (still_not-bound_in b2) \/ {b4}
proof end;

theorem Th63: :: CQC_THE3:63
for b1 being bound_QC-variable
for b2 being QC-formula holds still_not-bound_in b2 c= still_not-bound_in (b2 . b1)
proof end;

theorem Th64: :: CQC_THE3:64
for b1 being bound_QC-variable
for b2 being QC-formula holds still_not-bound_in (b2 . b1) c= (still_not-bound_in b2) \/ {b1}
proof end;

theorem Th65: :: CQC_THE3:65
for b1 being Element of CQC-WFF
for b2 being QC-formula
for b3, b4 being bound_QC-variable st b1 = b2 . b3 & b3 <> b4 & not b4 in still_not-bound_in b2 holds
not b4 in still_not-bound_in b1
proof end;

theorem Th66: :: CQC_THE3:66
for b1, b2 being Element of CQC-WFF
for b3 being QC-formula
for b4, b5 being bound_QC-variable st b1 = b3 . b4 & b2 = b3 . b5 & not b4 in still_not-bound_in b3 & not b5 in still_not-bound_in b3 holds
All b4,b1 <==> All b5,b2
proof end;