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

Theorem marypha1 9269
Description: (Philip) Hall's marriage theorem, sufficiency: a finite relation contains an injection if there is no subset of its domain which would be forced to violate the pigeonhole principle. (Contributed by Stefan O'Rear, 20-Feb-2015.)
Hypotheses
Ref Expression
marypha1.a (𝜑𝐴 ∈ Fin)
marypha1.b (𝜑𝐵 ∈ Fin)
marypha1.c (𝜑𝐶 ⊆ (𝐴 × 𝐵))
marypha1.d ((𝜑𝑑𝐴) → 𝑑 ≼ (𝐶𝑑))
Assertion
Ref Expression
marypha1 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵)
Distinct variable groups:   𝜑,𝑑,𝑓   𝐴,𝑑,𝑓   𝐶,𝑑,𝑓
Allowed substitution hints:   𝐵(𝑓,𝑑)

Proof of Theorem marypha1
Dummy variables 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elpwi 4551 . . . . 5 (𝑑 ∈ 𝒫 𝐴𝑑𝐴)
2 marypha1.d . . . . 5 ((𝜑𝑑𝐴) → 𝑑 ≼ (𝐶𝑑))
31, 2sylan2 593 . . . 4 ((𝜑𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶𝑑))
43ralrimiva 3139 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑))
5 imaeq1 5981 . . . . . . 7 (𝑐 = 𝐶 → (𝑐𝑑) = (𝐶𝑑))
65breq2d 5098 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐𝑑) ↔ 𝑑 ≼ (𝐶𝑑)))
76ralbidv 3170 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑)))
8 pweq 4558 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3310 . . . . 5 (𝑐 = 𝐶 → (∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V ↔ ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
107, 9imbi12d 344 . . . 4 (𝑐 = 𝐶 → ((∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)))
11 marypha1.b . . . . 5 (𝜑𝐵 ∈ Fin)
12 marypha1.a . . . . 5 (𝜑𝐴 ∈ Fin)
13 xpeq2 5628 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4561 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3309 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1615imbi2d 340 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))))
17 marypha1lem 9268 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1817com12 32 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1916, 18vtoclga 3521 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
2011, 12, 19sylc 65 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))
2112, 11xpexd 7642 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5264 . . . 4 (𝜑𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3570 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
254, 24mpd 15 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)
26 elpwi 4551 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶𝑓𝐶)
2726, 22sylan9ssr 3944 . . . . . 6 ((𝜑𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5867 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 17 . . . . 5 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6097 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3942 . . . 4 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓𝐵)
32 f1ssr 6714 . . . . 5 ((𝑓:𝐴1-1→V ∧ ran 𝑓𝐵) → 𝑓:𝐴1-1𝐵)
3332expcom 414 . . . 4 (ran 𝑓𝐵 → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3431, 33syl 17 . . 3 ((𝜑𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3534reximdva 3161 . 2 (𝜑 → (∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵))
3625, 35mpd 15 1 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1540  wcel 2105  wral 3061  wrex 3070  Vcvv 3440  wss 3896  𝒫 cpw 4544   class class class wbr 5086   × cxp 5605  ran crn 5608  cima 5610  1-1wf1 6462  cdom 8780  Fincfn 8782
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2707  ax-sep 5237  ax-nul 5244  ax-pow 5302  ax-pr 5366  ax-un 7629
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2886  df-ne 2941  df-ral 3062  df-rex 3071  df-reu 3350  df-rab 3404  df-v 3442  df-sbc 3726  df-csb 3842  df-dif 3899  df-un 3901  df-in 3903  df-ss 3913  df-pss 3915  df-nul 4267  df-if 4471  df-pw 4546  df-sn 4571  df-pr 4573  df-op 4577  df-uni 4850  df-br 5087  df-opab 5149  df-mpt 5170  df-tr 5204  df-id 5506  df-eprel 5512  df-po 5520  df-so 5521  df-fr 5562  df-we 5564  df-xp 5613  df-rel 5614  df-cnv 5615  df-co 5616  df-dm 5617  df-rn 5618  df-res 5619  df-ima 5620  df-ord 6291  df-on 6292  df-lim 6293  df-suc 6294  df-iota 6417  df-fun 6467  df-fn 6468  df-f 6469  df-f1 6470  df-fo 6471  df-f1o 6472  df-fv 6473  df-om 7759  df-1o 8345  df-er 8547  df-en 8783  df-dom 8784  df-sdom 8785  df-fin 8786
This theorem is referenced by:  marypha2  9274
  Copyright terms: Public domain W3C validator