Metamath Proof Explorer


Theorem strndxid

Description: The value of a structure component extractor is the value of the corresponding slot of the structure. (Contributed by AV, 13-Mar-2020) (New usage is discouraged.) Use strfvnd directly with N set to ( Endx ) if possible.

Ref Expression
Hypotheses strndxid.s ⊢ φ → S ∈ V
strndxid.e ⊢ E = Slot N
strndxid.n ⊢ N ∈ ℕ
Assertion strndxid ⊢ φ → S ⁡ E ⁡ ndx = E ⁡ S

Proof

Step Hyp Ref Expression
1 strndxid.s ⊢ φ → S ∈ V
2 strndxid.e ⊢ E = Slot N
3 strndxid.n ⊢ N ∈ ℕ
4 2 3 ndxid ⊢ E = Slot E ⁡ ndx
5 4 1 strfvnd ⊢ φ → E ⁡ S = S ⁡ E ⁡ ndx
6 5 eqcomd ⊢ φ → S ⁡ E ⁡ ndx = E ⁡ S