let A be MP-wff; :: thesis: ((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A is MP-wff
set x = ((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A;
A1:
<*0 *> in dom ((elementary_tree 1) --> [1,1])
then A2:
dom (((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A) = (dom ((elementary_tree 1) --> [1,1])) with-replacement <*0 *>,(dom A)
by TREES_2:def 12;
reconsider d = <*0 *> as Element of elementary_tree 1 by TREES_1:55;
A3:
dom (((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A) = (elementary_tree 1) with-replacement d,(dom A)
by A2, FUNCOP_1:19;
@ ((elementary_tree 1) --> [1,1]),<*0 *>,A = ((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A
by A1, Def8;
then reconsider x = ((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A as finite DecoratedTree of by A3, Lm2;
A4:
dom x = (dom ((elementary_tree 1) --> [1,1])) with-replacement <*0 *>,(dom A)
by A1, TREES_2:def 12;
for v being Element of dom x holds
( branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )
proof
let v be
Element of
dom x;
:: thesis: ( branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )
set e =
(elementary_tree 1) --> [1,1];
now per cases
( ( not <*0 *> is_a_prefix_of v & x . v = ((elementary_tree 1) --> [1,1]) . v ) or ex s being FinSequence of NAT st
( s in dom A & v = <*0 *> ^ s & x . v = A . s ) )
by A1, A4, TREES_2:def 12;
suppose A5:
( not
<*0 *> is_a_prefix_of v &
x . v = ((elementary_tree 1) --> [1,1]) . v )
;
:: thesis: ( branchdeg v <= 2 & branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )then A6:
for
s being
FinSequence of
NAT holds
( not
s in dom A or not
v = <*0 *> ^ s )
by TREES_1:8;
then A7:
(
v in dom ((elementary_tree 1) --> [1,1]) & not
<*0 *> is_a_proper_prefix_of v )
by A1, A4, TREES_1:def 12;
reconsider v' =
v as
Element of
dom ((elementary_tree 1) --> [1,1]) by A1, A4, A6, TREES_1:def 12;
A8:
dom ((elementary_tree 1) --> [1,1]) = {{} ,<*0 *>}
by FUNCOP_1:19, TREES_1:88;
then A9:
v = {}
by A5, A7, TARSKI:def 2;
A10:
succ v' = {<*0 *>}
succ v = succ v'
by A1, A4, A9, Lm1, Th17;
then
1
= card (succ v)
by A10, CARD_1:50;
then A15:
branchdeg v = 1
by TREES_2:def 13;
hence
branchdeg v <= 2
;
:: thesis: ( branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )
x . v = [1,1]
hence
(
branchdeg v <= 2 & ( not
branchdeg v = 0 or
x . v = [0 ,0 ] or ex
k being
Element of
NAT st
x . v = [3,k] ) & ( not
branchdeg v = 1 or
x . v = [1,0 ] or
x . v = [1,1] ) & (
branchdeg v = 2 implies
x . v = [2,0 ] ) )
by A15;
:: thesis: verum end; suppose
ex
s being
FinSequence of
NAT st
(
s in dom A &
v = <*0 *> ^ s &
x . v = A . s )
;
:: thesis: ( branchdeg v <= 2 & branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )then consider s being
FinSequence of
NAT such that A16:
(
s in dom A &
v = <*0 *> ^ s &
x . v = A . s )
;
reconsider s =
s as
Element of
dom A by A16;
A17:
(
branchdeg s <= 2 & ( not
branchdeg s = 0 or
A . s = [0 ,0 ] or ex
m being
Element of
NAT st
A . s = [3,m] ) & ( not
branchdeg s = 1 or
A . s = [1,0 ] or
A . s = [1,1] ) & (
branchdeg s = 2 implies
A . s = [2,0 ] ) )
by Def6;
succ v,
succ s are_equipotent
by A1, A4, A16, TREES_2:39;
then
card (succ v) = card (succ s)
by CARD_1:21;
then A18:
branchdeg v = card (succ s)
by TREES_2:def 13;
hence
branchdeg v <= 2
by A17, TREES_2:def 13;
:: thesis: ( branchdeg v <= 2 & ( not branchdeg v = 0 or x . v = [0 ,0 ] or ex k being Element of NAT st x . v = [3,k] ) & ( not branchdeg v = 1 or x . v = [1,0 ] or x . v = [1,1] ) & ( branchdeg v = 2 implies x . v = [2,0 ] ) )thus
(
branchdeg v <= 2 & ( not
branchdeg v = 0 or
x . v = [0 ,0 ] or ex
k being
Element of
NAT st
x . v = [3,k] ) & ( not
branchdeg v = 1 or
x . v = [1,0 ] or
x . v = [1,1] ) & (
branchdeg v = 2 implies
x . v = [2,0 ] ) )
by A16, A17, A18, TREES_2:def 13;
:: thesis: verum end; end; end;
hence
(
branchdeg v <= 2 & ( not
branchdeg v = 0 or
x . v = [0 ,0 ] or ex
k being
Element of
NAT st
x . v = [3,k] ) & ( not
branchdeg v = 1 or
x . v = [1,0 ] or
x . v = [1,1] ) & (
branchdeg v = 2 implies
x . v = [2,0 ] ) )
;
:: thesis: verum
end;
hence
((elementary_tree 1) --> [1,1]) with-replacement <*0 *>,A is MP-wff
by Def6; :: thesis: verum