Metamath Proof Explorer


Theorem s3fv0

Description: Extract the first symbol from a length 3 string. (Contributed by Mario Carneiro, 13-Jan-2017)

Ref Expression
Assertion s3fv0 AV⟨“ABC”⟩0=A

Proof

Step Hyp Ref Expression
1 df-s3 ⟨“ABC”⟩=⟨“AB”⟩++⟨“C”⟩
2 s2cli ⟨“AB”⟩WordV
3 s2len ⟨“AB”⟩=2
4 s2fv0 AV⟨“AB”⟩0=A
5 0nn0 00
6 2pos 0<2
7 1 2 3 4 5 6 cats1fv AV⟨“ABC”⟩0=A