Metamath Proof Explorer


Theorem ndxarg

Description: Get the numeric argument from a defined structure component extractor such as df-base . (Contributed by Mario Carneiro, 6-Oct-2013)

Ref Expression
Hypotheses ndxarg.1 E = Slot N
ndxarg.2 N
Assertion ndxarg E ndx = N

Proof

Step Hyp Ref Expression
1 ndxarg.1 E = Slot N
2 ndxarg.2 N
3 df-ndx ndx = I
4 nnex V
5 resiexg V I V
6 4 5 ax-mp I V
7 3 6 eqeltri ndx V
8 7 1 strfvn E ndx = ndx N
9 3 fveq1i ndx N = I N
10 fvresi N I N = N
11 2 10 ax-mp I N = N
12 8 9 11 3eqtri E ndx = N