Metamath Proof Explorer


Theorem ccatw2s1p1OLD

Description: Obsolete version of ccatw2s1p1 as of 29-Jan-2024. Extract the symbol of the first singleton word of a word concatenated with this singleton word and another singleton word. (Contributed by Alexander van der Vekens, 22-Sep-2018) (Proof shortened by AV, 1-May-2020) (Proof modification is discouraged.) (New usage is discouraged.)

Ref Expression
Assertion ccatw2s1p1OLD W Word V W = N X V Y V W ++ ⟨“ X ”⟩ ++ ⟨“ Y ”⟩ N = X

Proof

Step Hyp Ref Expression
1 ccatws1cl W Word V X V W ++ ⟨“ X ”⟩ Word V
2 1 ad2ant2r W Word V W = N X V Y V W ++ ⟨“ X ”⟩ Word V
3 lencl W Word V W 0
4 fzonn0p1 W 0 W 0 ..^ W + 1
5 3 4 syl W Word V W 0 ..^ W + 1
6 5 adantr W Word V W = N W 0 ..^ W + 1
7 simpr W Word V W = N W = N
8 7 eqcomd W Word V W = N N = W
9 ccatws1len W Word V W ++ ⟨“ X ”⟩ = W + 1
10 9 adantr W Word V W = N W ++ ⟨“ X ”⟩ = W + 1
11 10 oveq2d W Word V W = N 0 ..^ W ++ ⟨“ X ”⟩ = 0 ..^ W + 1
12 6 8 11 3eltr4d W Word V W = N N 0 ..^ W ++ ⟨“ X ”⟩
13 12 adantr W Word V W = N X V Y V N 0 ..^ W ++ ⟨“ X ”⟩
14 ccats1val1 W ++ ⟨“ X ”⟩ Word V N 0 ..^ W ++ ⟨“ X ”⟩ W ++ ⟨“ X ”⟩ ++ ⟨“ Y ”⟩ N = W ++ ⟨“ X ”⟩ N
15 2 13 14 syl2anc W Word V W = N X V Y V W ++ ⟨“ X ”⟩ ++ ⟨“ Y ”⟩ N = W ++ ⟨“ X ”⟩ N
16 simpll W Word V W = N X V Y V W Word V
17 simprl W Word V W = N X V Y V X V
18 eqcom W = N N = W
19 18 biimpi W = N N = W
20 19 ad2antlr W Word V W = N X V Y V N = W
21 ccats1val2 W Word V X V N = W W ++ ⟨“ X ”⟩ N = X
22 16 17 20 21 syl3anc W Word V W = N X V Y V W ++ ⟨“ X ”⟩ N = X
23 15 22 eqtrd W Word V W = N X V Y V W ++ ⟨“ X ”⟩ ++ ⟨“ Y ”⟩ N = X