Metamath Proof Explorer


Theorem s3fv2

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

Ref Expression
Assertion s3fv2 C V ⟨“ ABC ”⟩ 2 = C

Proof

Step Hyp Ref Expression
1 df-s3 ⟨“ ABC ”⟩ = ⟨“ AB ”⟩ ++ ⟨“ C ”⟩
2 s2cli ⟨“ AB ”⟩ Word V
3 s2len ⟨“ AB ”⟩ = 2
4 1 2 3 cats1fvn C V ⟨“ ABC ”⟩ 2 = C