MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  indexfi Structured version   Visualization version   GIF version

Theorem indexfi 8870
Description: If for every element of a finite indexing set 𝐴 there exists a corresponding element of another set 𝐵, then there exists a finite subset of 𝐵 consisting only of those elements which are indexed by 𝐴. Proven without the Axiom of Choice, unlike indexdom 35478. (Contributed by Jeff Madsen, 2-Sep-2009.) (Proof shortened by Mario Carneiro, 12-Sep-2015.)
Assertion
Ref Expression
indexfi ((𝐴 ∈ Fin ∧ 𝐵𝑀 ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
Distinct variable groups:   𝑥,𝑐,𝑦,𝐴   𝐵,𝑐,𝑥,𝑦   𝜑,𝑐
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝑀(𝑥,𝑦,𝑐)

Proof of Theorem indexfi
Dummy variables 𝑓 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1915 . . . . . 6 𝑧𝜑
2 nfsbc1v 3718 . . . . . 6 𝑦[𝑧 / 𝑦]𝜑
3 sbceq1a 3709 . . . . . 6 (𝑦 = 𝑧 → (𝜑[𝑧 / 𝑦]𝜑))
41, 2, 3cbvrexw 3353 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ∃𝑧𝐵 [𝑧 / 𝑦]𝜑)
54ralbii 3097 . . . 4 (∀𝑥𝐴𝑦𝐵 𝜑 ↔ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑)
6 dfsbcq 3700 . . . . 5 (𝑧 = (𝑓𝑥) → ([𝑧 / 𝑦]𝜑[(𝑓𝑥) / 𝑦]𝜑))
76ac6sfi 8800 . . . 4 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
85, 7sylan2b 596 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
9 simpll 766 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝐴 ∈ Fin)
10 ffn 6502 . . . . . . 7 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
1110ad2antrl 727 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓 Fn 𝐴)
12 dffn4 6586 . . . . . 6 (𝑓 Fn 𝐴𝑓:𝐴onto→ran 𝑓)
1311, 12sylib 221 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓:𝐴onto→ran 𝑓)
14 fofi 8848 . . . . 5 ((𝐴 ∈ Fin ∧ 𝑓:𝐴onto→ran 𝑓) → ran 𝑓 ∈ Fin)
159, 13, 14syl2anc 587 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓 ∈ Fin)
16 frn 6508 . . . . 5 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
1716ad2antrl 727 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓𝐵)
18 fnfvelrn 6844 . . . . . . . . 9 ((𝑓 Fn 𝐴𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
1910, 18sylan 583 . . . . . . . 8 ((𝑓:𝐴𝐵𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
20 rspesbca 3789 . . . . . . . . 9 (((𝑓𝑥) ∈ ran 𝑓[(𝑓𝑥) / 𝑦]𝜑) → ∃𝑦 ∈ ran 𝑓𝜑)
2120ex 416 . . . . . . . 8 ((𝑓𝑥) ∈ ran 𝑓 → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2219, 21syl 17 . . . . . . 7 ((𝑓:𝐴𝐵𝑥𝐴) → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2322ralimdva 3108 . . . . . 6 (𝑓:𝐴𝐵 → (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
2423imp 410 . . . . 5 ((𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
2524adantl 485 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
26 simpr 488 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → 𝑤𝐴)
27 simprr 772 . . . . . . . . . 10 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)
28 nfv 1915 . . . . . . . . . . 11 𝑤[(𝑓𝑥) / 𝑦]𝜑
29 nfsbc1v 3718 . . . . . . . . . . 11 𝑥[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑
30 fveq2 6662 . . . . . . . . . . . . 13 (𝑥 = 𝑤 → (𝑓𝑥) = (𝑓𝑤))
3130sbceq1d 3703 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
32 sbceq1a 3709 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑤) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3331, 32bitrd 282 . . . . . . . . . . 11 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3428, 29, 33cbvralw 3352 . . . . . . . . . 10 (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 ↔ ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3527, 34sylib 221 . . . . . . . . 9 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3635r19.21bi 3137 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
37 rspesbca 3789 . . . . . . . 8 ((𝑤𝐴[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3826, 36, 37syl2anc 587 . . . . . . 7 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3938ralrimiva 3113 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
40 dfsbcq 3700 . . . . . . . . 9 (𝑧 = (𝑓𝑤) → ([𝑧 / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
4140rexbidv 3221 . . . . . . . 8 (𝑧 = (𝑓𝑤) → (∃𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4241ralrn 6850 . . . . . . 7 (𝑓 Fn 𝐴 → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4311, 42syl 17 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4439, 43mpbird 260 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
45 nfv 1915 . . . . . 6 𝑧𝑥𝐴 𝜑
46 nfcv 2919 . . . . . . 7 𝑦𝐴
4746, 2nfrex 3233 . . . . . 6 𝑦𝑥𝐴 [𝑧 / 𝑦]𝜑
483rexbidv 3221 . . . . . 6 (𝑦 = 𝑧 → (∃𝑥𝐴 𝜑 ↔ ∃𝑥𝐴 [𝑧 / 𝑦]𝜑))
4945, 47, 48cbvralw 3352 . . . . 5 (∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑 ↔ ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
5044, 49sylibr 237 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)
51 sseq1 3919 . . . . . 6 (𝑐 = ran 𝑓 → (𝑐𝐵 ↔ ran 𝑓𝐵))
52 rexeq 3324 . . . . . . 7 (𝑐 = ran 𝑓 → (∃𝑦𝑐 𝜑 ↔ ∃𝑦 ∈ ran 𝑓𝜑))
5352ralbidv 3126 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑥𝐴𝑦𝑐 𝜑 ↔ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
54 raleq 3323 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑦𝑐𝑥𝐴 𝜑 ↔ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑))
5551, 53, 543anbi123d 1433 . . . . 5 (𝑐 = ran 𝑓 → ((𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑) ↔ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)))
5655rspcev 3543 . . . 4 ((ran 𝑓 ∈ Fin ∧ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
5715, 17, 25, 50, 56syl13anc 1369 . . 3 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
588, 57exlimddv 1936 . 2 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
59583adant2 1128 1 ((𝐴 ∈ Fin ∧ 𝐵𝑀 ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1084   = wceq 1538  wex 1781  wcel 2111  wral 3070  wrex 3071  [wsbc 3698  wss 3860  ran crn 5528   Fn wfn 6334  wf 6335  ontowfo 6337  cfv 6339  Fincfn 8532
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-sep 5172  ax-nul 5179  ax-pow 5237  ax-pr 5301  ax-un 7464
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-ral 3075  df-rex 3076  df-reu 3077  df-rab 3079  df-v 3411  df-sbc 3699  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-pss 3879  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4802  df-br 5036  df-opab 5098  df-mpt 5116  df-tr 5142  df-id 5433  df-eprel 5438  df-po 5446  df-so 5447  df-fr 5486  df-we 5488  df-xp 5533  df-rel 5534  df-cnv 5535  df-co 5536  df-dm 5537  df-rn 5538  df-res 5539  df-ima 5540  df-ord 6176  df-on 6177  df-lim 6178  df-suc 6179  df-iota 6298  df-fun 6341  df-fn 6342  df-f 6343  df-f1 6344  df-fo 6345  df-f1o 6346  df-fv 6347  df-om 7585  df-1o 8117  df-er 8304  df-en 8533  df-dom 8534  df-fin 8536
This theorem is referenced by:  filbcmb  35484
  Copyright terms: Public domain W3C validator