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

Theorem indexfi 9057
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 35819. (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 1918 . . . . . 6 𝑧𝜑
2 nfsbc1v 3731 . . . . . 6 𝑦[𝑧 / 𝑦]𝜑
3 sbceq1a 3722 . . . . . 6 (𝑦 = 𝑧 → (𝜑[𝑧 / 𝑦]𝜑))
41, 2, 3cbvrexw 3364 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ∃𝑧𝐵 [𝑧 / 𝑦]𝜑)
54ralbii 3090 . . . 4 (∀𝑥𝐴𝑦𝐵 𝜑 ↔ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑)
6 dfsbcq 3713 . . . . 5 (𝑧 = (𝑓𝑥) → ([𝑧 / 𝑦]𝜑[(𝑓𝑥) / 𝑦]𝜑))
76ac6sfi 8988 . . . 4 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
85, 7sylan2b 593 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
9 simpll 763 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝐴 ∈ Fin)
10 ffn 6584 . . . . . . 7 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
1110ad2antrl 724 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓 Fn 𝐴)
12 dffn4 6678 . . . . . 6 (𝑓 Fn 𝐴𝑓:𝐴onto→ran 𝑓)
1311, 12sylib 217 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓:𝐴onto→ran 𝑓)
14 fofi 9035 . . . . 5 ((𝐴 ∈ Fin ∧ 𝑓:𝐴onto→ran 𝑓) → ran 𝑓 ∈ Fin)
159, 13, 14syl2anc 583 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓 ∈ Fin)
16 frn 6591 . . . . 5 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
1716ad2antrl 724 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓𝐵)
18 fnfvelrn 6940 . . . . . . . . 9 ((𝑓 Fn 𝐴𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
1910, 18sylan 579 . . . . . . . 8 ((𝑓:𝐴𝐵𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
20 rspesbca 3810 . . . . . . . . 9 (((𝑓𝑥) ∈ ran 𝑓[(𝑓𝑥) / 𝑦]𝜑) → ∃𝑦 ∈ ran 𝑓𝜑)
2120ex 412 . . . . . . . 8 ((𝑓𝑥) ∈ ran 𝑓 → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2219, 21syl 17 . . . . . . 7 ((𝑓:𝐴𝐵𝑥𝐴) → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2322ralimdva 3102 . . . . . 6 (𝑓:𝐴𝐵 → (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
2423imp 406 . . . . 5 ((𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
2524adantl 481 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
26 simpr 484 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → 𝑤𝐴)
27 simprr 769 . . . . . . . . . 10 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)
28 nfv 1918 . . . . . . . . . . 11 𝑤[(𝑓𝑥) / 𝑦]𝜑
29 nfsbc1v 3731 . . . . . . . . . . 11 𝑥[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑
30 fveq2 6756 . . . . . . . . . . . . 13 (𝑥 = 𝑤 → (𝑓𝑥) = (𝑓𝑤))
3130sbceq1d 3716 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
32 sbceq1a 3722 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑤) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3331, 32bitrd 278 . . . . . . . . . . 11 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3428, 29, 33cbvralw 3363 . . . . . . . . . 10 (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 ↔ ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3527, 34sylib 217 . . . . . . . . 9 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3635r19.21bi 3132 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
37 rspesbca 3810 . . . . . . . 8 ((𝑤𝐴[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3826, 36, 37syl2anc 583 . . . . . . 7 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3938ralrimiva 3107 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
40 dfsbcq 3713 . . . . . . . . 9 (𝑧 = (𝑓𝑤) → ([𝑧 / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
4140rexbidv 3225 . . . . . . . 8 (𝑧 = (𝑓𝑤) → (∃𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4241ralrn 6946 . . . . . . 7 (𝑓 Fn 𝐴 → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4311, 42syl 17 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4439, 43mpbird 256 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
45 nfv 1918 . . . . . 6 𝑧𝑥𝐴 𝜑
46 nfcv 2906 . . . . . . 7 𝑦𝐴
4746, 2nfrex 3237 . . . . . 6 𝑦𝑥𝐴 [𝑧 / 𝑦]𝜑
483rexbidv 3225 . . . . . 6 (𝑦 = 𝑧 → (∃𝑥𝐴 𝜑 ↔ ∃𝑥𝐴 [𝑧 / 𝑦]𝜑))
4945, 47, 48cbvralw 3363 . . . . 5 (∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑 ↔ ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
5044, 49sylibr 233 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)
51 sseq1 3942 . . . . . 6 (𝑐 = ran 𝑓 → (𝑐𝐵 ↔ ran 𝑓𝐵))
52 rexeq 3334 . . . . . . 7 (𝑐 = ran 𝑓 → (∃𝑦𝑐 𝜑 ↔ ∃𝑦 ∈ ran 𝑓𝜑))
5352ralbidv 3120 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑥𝐴𝑦𝑐 𝜑 ↔ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
54 raleq 3333 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑦𝑐𝑥𝐴 𝜑 ↔ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑))
5551, 53, 543anbi123d 1434 . . . . 5 (𝑐 = ran 𝑓 → ((𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑) ↔ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)))
5655rspcev 3552 . . . 4 ((ran 𝑓 ∈ Fin ∧ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
5715, 17, 25, 50, 56syl13anc 1370 . . 3 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
588, 57exlimddv 1939 . 2 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
59583adant2 1129 1 ((𝐴 ∈ Fin ∧ 𝐵𝑀 ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wex 1783  wcel 2108  wral 3063  wrex 3064  [wsbc 3711  wss 3883  ran crn 5581   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418  Fincfn 8691
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-om 7688  df-1o 8267  df-er 8456  df-en 8692  df-dom 8693  df-fin 8695
This theorem is referenced by:  filbcmb  35825
  Copyright terms: Public domain W3C validator