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

Theorem indexfi 8481
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 33884. (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 2009 . . . . . 6 𝑧𝜑
2 nfsbc1v 3616 . . . . . 6 𝑦[𝑧 / 𝑦]𝜑
3 sbceq1a 3607 . . . . . 6 (𝑦 = 𝑧 → (𝜑[𝑧 / 𝑦]𝜑))
41, 2, 3cbvrex 3316 . . . . 5 (∃𝑦𝐵 𝜑 ↔ ∃𝑧𝐵 [𝑧 / 𝑦]𝜑)
54ralbii 3127 . . . 4 (∀𝑥𝐴𝑦𝐵 𝜑 ↔ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑)
6 dfsbcq 3598 . . . . 5 (𝑧 = (𝑓𝑥) → ([𝑧 / 𝑦]𝜑[(𝑓𝑥) / 𝑦]𝜑))
76ac6sfi 8411 . . . 4 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑧𝐵 [𝑧 / 𝑦]𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
85, 7sylan2b 587 . . 3 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑓(𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑))
9 simpll 783 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝐴 ∈ Fin)
10 ffn 6223 . . . . . . 7 (𝑓:𝐴𝐵𝑓 Fn 𝐴)
1110ad2antrl 719 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓 Fn 𝐴)
12 dffn4 6304 . . . . . 6 (𝑓 Fn 𝐴𝑓:𝐴onto→ran 𝑓)
1311, 12sylib 209 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → 𝑓:𝐴onto→ran 𝑓)
14 fofi 8459 . . . . 5 ((𝐴 ∈ Fin ∧ 𝑓:𝐴onto→ran 𝑓) → ran 𝑓 ∈ Fin)
159, 13, 14syl2anc 579 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓 ∈ Fin)
16 frn 6229 . . . . 5 (𝑓:𝐴𝐵 → ran 𝑓𝐵)
1716ad2antrl 719 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ran 𝑓𝐵)
18 fnfvelrn 6546 . . . . . . . . 9 ((𝑓 Fn 𝐴𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
1910, 18sylan 575 . . . . . . . 8 ((𝑓:𝐴𝐵𝑥𝐴) → (𝑓𝑥) ∈ ran 𝑓)
20 rspesbca 3678 . . . . . . . . 9 (((𝑓𝑥) ∈ ran 𝑓[(𝑓𝑥) / 𝑦]𝜑) → ∃𝑦 ∈ ran 𝑓𝜑)
2120ex 401 . . . . . . . 8 ((𝑓𝑥) ∈ ran 𝑓 → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2219, 21syl 17 . . . . . . 7 ((𝑓:𝐴𝐵𝑥𝐴) → ([(𝑓𝑥) / 𝑦]𝜑 → ∃𝑦 ∈ ran 𝑓𝜑))
2322ralimdva 3109 . . . . . 6 (𝑓:𝐴𝐵 → (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
2423imp 395 . . . . 5 ((𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
2524adantl 473 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑)
26 simpr 477 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → 𝑤𝐴)
27 simprr 789 . . . . . . . . . 10 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)
28 nfv 2009 . . . . . . . . . . 11 𝑤[(𝑓𝑥) / 𝑦]𝜑
29 nfsbc1v 3616 . . . . . . . . . . 11 𝑥[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑
30 fveq2 6375 . . . . . . . . . . . . 13 (𝑥 = 𝑤 → (𝑓𝑥) = (𝑓𝑤))
3130sbceq1d 3601 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
32 sbceq1a 3607 . . . . . . . . . . . 12 (𝑥 = 𝑤 → ([(𝑓𝑤) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3331, 32bitrd 270 . . . . . . . . . . 11 (𝑥 = 𝑤 → ([(𝑓𝑥) / 𝑦]𝜑[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑))
3428, 29, 33cbvral 3315 . . . . . . . . . 10 (∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑 ↔ ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3527, 34sylib 209 . . . . . . . . 9 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴 [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
3635r19.21bi 3079 . . . . . . . 8 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → [𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑)
37 rspesbca 3678 . . . . . . . 8 ((𝑤𝐴[𝑤 / 𝑥][(𝑓𝑤) / 𝑦]𝜑) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3826, 36, 37syl2anc 579 . . . . . . 7 ((((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) ∧ 𝑤𝐴) → ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
3938ralrimiva 3113 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑)
40 dfsbcq 3598 . . . . . . . . 9 (𝑧 = (𝑓𝑤) → ([𝑧 / 𝑦]𝜑[(𝑓𝑤) / 𝑦]𝜑))
4140rexbidv 3199 . . . . . . . 8 (𝑧 = (𝑓𝑤) → (∃𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∃𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4241ralrn 6552 . . . . . . 7 (𝑓 Fn 𝐴 → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4311, 42syl 17 . . . . . 6 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → (∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑 ↔ ∀𝑤𝐴𝑥𝐴 [(𝑓𝑤) / 𝑦]𝜑))
4439, 43mpbird 248 . . . . 5 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
45 nfv 2009 . . . . . 6 𝑧𝑥𝐴 𝜑
46 nfcv 2907 . . . . . . 7 𝑦𝐴
4746, 2nfrex 3153 . . . . . 6 𝑦𝑥𝐴 [𝑧 / 𝑦]𝜑
483rexbidv 3199 . . . . . 6 (𝑦 = 𝑧 → (∃𝑥𝐴 𝜑 ↔ ∃𝑥𝐴 [𝑧 / 𝑦]𝜑))
4945, 47, 48cbvral 3315 . . . . 5 (∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑 ↔ ∀𝑧 ∈ ran 𝑓𝑥𝐴 [𝑧 / 𝑦]𝜑)
5044, 49sylibr 225 . . . 4 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)
51 sseq1 3786 . . . . . 6 (𝑐 = ran 𝑓 → (𝑐𝐵 ↔ ran 𝑓𝐵))
52 rexeq 3287 . . . . . . 7 (𝑐 = ran 𝑓 → (∃𝑦𝑐 𝜑 ↔ ∃𝑦 ∈ ran 𝑓𝜑))
5352ralbidv 3133 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑥𝐴𝑦𝑐 𝜑 ↔ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑))
54 raleq 3286 . . . . . 6 (𝑐 = ran 𝑓 → (∀𝑦𝑐𝑥𝐴 𝜑 ↔ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑))
5551, 53, 543anbi123d 1560 . . . . 5 (𝑐 = ran 𝑓 → ((𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑) ↔ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)))
5655rspcev 3461 . . . 4 ((ran 𝑓 ∈ Fin ∧ (ran 𝑓𝐵 ∧ ∀𝑥𝐴𝑦 ∈ ran 𝑓𝜑 ∧ ∀𝑦 ∈ ran 𝑓𝑥𝐴 𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
5715, 17, 25, 50, 56syl13anc 1491 . . 3 (((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) ∧ (𝑓:𝐴𝐵 ∧ ∀𝑥𝐴 [(𝑓𝑥) / 𝑦]𝜑)) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
588, 57exlimddv 2030 . 2 ((𝐴 ∈ Fin ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
59583adant2 1161 1 ((𝐴 ∈ Fin ∧ 𝐵𝑀 ∧ ∀𝑥𝐴𝑦𝐵 𝜑) → ∃𝑐 ∈ Fin (𝑐𝐵 ∧ ∀𝑥𝐴𝑦𝑐 𝜑 ∧ ∀𝑦𝑐𝑥𝐴 𝜑))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 197  wa 384  w3a 1107   = wceq 1652  wex 1874  wcel 2155  wral 3055  wrex 3056  [wsbc 3596  wss 3732  ran crn 5278   Fn wfn 6063  wf 6064  ontowfo 6066  cfv 6068  Fincfn 8160
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-sep 4941  ax-nul 4949  ax-pow 5001  ax-pr 5062  ax-un 7147
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-ral 3060  df-rex 3061  df-reu 3062  df-rab 3064  df-v 3352  df-sbc 3597  df-dif 3735  df-un 3737  df-in 3739  df-ss 3746  df-pss 3748  df-nul 4080  df-if 4244  df-pw 4317  df-sn 4335  df-pr 4337  df-tp 4339  df-op 4341  df-uni 4595  df-br 4810  df-opab 4872  df-mpt 4889  df-tr 4912  df-id 5185  df-eprel 5190  df-po 5198  df-so 5199  df-fr 5236  df-we 5238  df-xp 5283  df-rel 5284  df-cnv 5285  df-co 5286  df-dm 5287  df-rn 5288  df-res 5289  df-ima 5290  df-ord 5911  df-on 5912  df-lim 5913  df-suc 5914  df-iota 6031  df-fun 6070  df-fn 6071  df-f 6072  df-f1 6073  df-fo 6074  df-f1o 6075  df-fv 6076  df-om 7264  df-1o 7764  df-er 7947  df-en 8161  df-dom 8162  df-fin 8164
This theorem is referenced by:  filbcmb  33890
  Copyright terms: Public domain W3C validator