let n be Nat; for S being Language
for l being literal Element of S
for t being termal string of S
for phi being wff string of S
for f being Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)) holds (l,t,n,f) Subst2 phi is wff string of S
let S be Language; for l being literal Element of S
for t being termal string of S
for phi being wff string of S
for f being Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)) holds (l,t,n,f) Subst2 phi is wff string of S
let l be literal Element of S; for t being termal string of S
for phi being wff string of S
for f being Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)) holds (l,t,n,f) Subst2 phi is wff string of S
let t be termal string of S; for phi being wff string of S
for f being Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)) holds (l,t,n,f) Subst2 phi is wff string of S
let phi be wff string of S; for f being Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)) holds (l,t,n,f) Subst2 phi is wff string of S
set FF = AllFormulasOf S;
set h = head phi;
set d = Depth phi;
set F = S -firstChar ;
let f be Element of Funcs ((AllFormulasOf S),(AllFormulasOf S)); (l,t,n,f) Subst2 phi is wff string of S
reconsider ff = f as Function of (AllFormulasOf S),(AllFormulasOf S) ;
set IT = (l,t,n,f) Subst2 phi;
set N = TheNorSymbOf S;
set L = LettersOf S;
set X = (LettersOf S) \ (((rng t) \/ (rng (head phi))) \/ {l});
set ll1 = the Element of (LettersOf S) \ (((rng t) \/ (rng (head phi))) \/ {l});
reconsider hh = head phi, phii = phi as Element of AllFormulasOf S by FOMODEL2:16;
reconsider newhead = ff . hh as wff string of S by TARSKI:def 3;
reconsider XX = (LettersOf S) \ (((rng t) \/ (rng (head phi))) \/ {l}) as non empty Subset of (LettersOf S) ;
the Element of (LettersOf S) \ (((rng t) \/ (rng (head phi))) \/ {l}) is Element of XX
;
then reconsider l1 = the Element of (LettersOf S) \ (((rng t) \/ (rng (head phi))) \/ {l}) as literal Element of S ;