| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > ndxid | Structured version Visualization version GIF version | ||
| Description: A structure component
extractor is defined by its own index. This
theorem, together with strfv 17295 below, is useful for avoiding direct
reference to the hard-coded numeric index in component extractor
definitions, such as the 1 in df-base 17302 and the ;10 in
df-ple 17362, making it easier to change should the need
arise.
For example, we can refer to a specific poset with base set 𝐵 and order relation 𝐿 using {〈(Base‘ndx), 𝐵〉, 〈(le‘ndx), 𝐿〉} rather than {〈1, 𝐵〉, 〈;10, 𝐿〉}. The latter, while shorter to state, requires revision if we later change ;10 to some other number, and it may also be harder to remember. (Contributed by NM, 19-Oct-2012.) (Revised by Mario Carneiro, 6-Oct-2013.) (Proof shortened by BJ, 27-Dec-2021.) |
| Ref | Expression |
|---|---|
| ndxarg.e | ⊢ 𝐸 = Slot 𝑁 |
| ndxarg.n | ⊢ 𝑁 ∈ ℕ |
| Ref | Expression |
|---|---|
| ndxid | ⊢ 𝐸 = Slot (𝐸‘ndx) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | ndxarg.e | . . . 4 ⊢ 𝐸 = Slot 𝑁 | |
| 2 | ndxarg.n | . . . 4 ⊢ 𝑁 ∈ ℕ | |
| 3 | 1, 2 | ndxarg 17288 | . . 3 ⊢ (𝐸‘ndx) = 𝑁 |
| 4 | 3 | eqcomi 2769 | . 2 ⊢ 𝑁 = (𝐸‘ndx) |
| 5 | sloteq 17275 | . . 3 ⊢ (𝑁 = (𝐸‘ndx) → Slot 𝑁 = Slot (𝐸‘ndx)) | |
| 6 | 1, 5 | eqtrid 2807 | . 2 ⊢ (𝑁 = (𝐸‘ndx) → 𝐸 = Slot (𝐸‘ndx)) |
| 7 | 4, 6 | ax-mp 5 | 1 ⊢ 𝐸 = Slot (𝐸‘ndx) |
| Colors of variables: wff setvar class |
| This proof depends on syntax axioms: = wceq 1570 ∈ wcel 2145 ‘cfv 6533 ℕcn 12257 Slot cslot 17273 ndxcnx 17285 |
| This proof depends on axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1828 ax-4 1842 ax-5 1943 ax-6 2000 ax-7 2041 ax-8 2147 ax-9 2155 ax-10 2178 ax-11 2194 ax-12 2213 ax-ext 2732 ax-sep 5251 ax-nul 5263 ax-pow 5330 ax-pr 5398 ax-un 7736 ax-cnex 11180 ax-1cn 11182 ax-addcl 11184 |
| This proof depends on definitions: df-bi 210 df-an 402 df-or 862 df-3or 1104 df-3an 1105 df-tru 1573 df-fal 1583 df-ex 1813 df-nf 1817 df-sb 2100 df-mo 2564 df-eu 2594 df-clab 2739 df-cleq 2752 df-clel 2835 df-nfc 2909 df-ne 2956 df-ral 3077 df-rex 3087 df-reu 3366 df-rab 3413 df-v 3452 df-sbc 3740 df-csb 3848 df-dif 3902 df-un 3904 df-in 3906 df-ss 3916 df-pss 3919 df-nul 4280 df-if 4483 df-pw 4559 df-sn 4585 df-pr 4587 df-op 4591 df-uni 4868 df-iun 4953 df-br 5104 df-opab 5168 df-mpt 5187 df-tr 5213 df-id 5550 df-eprel 5555 df-po 5563 df-so 5564 df-fr 5608 df-we 5610 df-xp 5661 df-rel 5662 df-cnv 5663 df-co 5664 df-dm 5665 df-rn 5666 df-res 5667 df-ima 5668 df-pred 6299 df-ord 6360 df-on 6361 df-lim 6362 df-suc 6363 df-iota 6489 df-fun 6535 df-fn 6536 df-f 6537 df-f1 6538 df-fo 6539 df-f1o 6540 df-fv 6541 df-ov 7416 df-om 7863 df-2nd 7987 df-frecs 8280 df-wrecs 8311 df-recs 8360 df-rdg 8399 df-nn 12258 df-slot 17274 df-ndx 17286 |
| This theorem is used by: strndxid 17290 baseid 17304 2strop 17321 plusgid 17369 mulridx 17380 starvid 17388 scaid 17400 vscaid 17405 ipid 17416 tsetid 17438 pleid 17452 ocid 17467 dsid 17471 unifid 17481 homid 17497 ccoid 17499 itvid 28780 lngid 28781 edgfid 29447 eufid 33734 |
| Copyright terms: Public domain | W3C validator |