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

Theorem marypha1 8892
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 4550 . . . . 5 (𝑑 ∈ 𝒫 𝐴𝑑𝐴)
2 marypha1.d . . . . 5 ((𝜑𝑑𝐴) → 𝑑 ≼ (𝐶𝑑))
31, 2sylan2 594 . . . 4 ((𝜑𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶𝑑))
43ralrimiva 3182 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑))
5 imaeq1 5918 . . . . . . 7 (𝑐 = 𝐶 → (𝑐𝑑) = (𝐶𝑑))
65breq2d 5070 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐𝑑) ↔ 𝑑 ≼ (𝐶𝑑)))
76ralbidv 3197 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑)))
8 pweq 4541 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3416 . . . . 5 (𝑐 = 𝐶 → (∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V ↔ ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
107, 9imbi12d 347 . . . 4 (𝑐 = 𝐶 → ((∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)))
11 marypha1.b . . . . 5 (𝜑𝐵 ∈ Fin)
12 marypha1.a . . . . 5 (𝜑𝐴 ∈ Fin)
13 xpeq2 5570 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4543 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3415 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))))
17 marypha1lem 8891 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1817com12 32 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1916, 18vtoclga 3573 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
2011, 12, 19sylc 65 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))
2112, 11xpexd 7468 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5222 . . . 4 (𝜑𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3624 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
254, 24mpd 15 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)
26 elpwi 4550 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶𝑓𝐶)
2726, 22sylan9ssr 3980 . . . . . 6 ((𝜑𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5803 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 17 . . . . 5 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6023 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3978 . . . 4 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓𝐵)
32 f1ssr 6575 . . . . 5 ((𝑓:𝐴1-1→V ∧ ran 𝑓𝐵) → 𝑓:𝐴1-1𝐵)
3332expcom 416 . . . 4 (ran 𝑓𝐵 → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3431, 33syl 17 . . 3 ((𝜑𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3534reximdva 3274 . 2 (𝜑 → (∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵))
3625, 35mpd 15 1 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  wral 3138  wrex 3139  Vcvv 3494  wss 3935  𝒫 cpw 4538   class class class wbr 5058   × cxp 5547  ran crn 5550  cima 5552  1-1wf1 6346  cdom 8501  Fincfn 8503
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-pss 3953  df-nul 4291  df-if 4467  df-pw 4540  df-sn 4561  df-pr 4563  df-tp 4565  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-tr 5165  df-id 5454  df-eprel 5459  df-po 5468  df-so 5469  df-fr 5508  df-we 5510  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-res 5561  df-ima 5562  df-ord 6188  df-on 6189  df-lim 6190  df-suc 6191  df-iota 6308  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-om 7575  df-1o 8096  df-er 8283  df-en 8504  df-dom 8505  df-sdom 8506  df-fin 8507
This theorem is referenced by:  marypha2  8897
  Copyright terms: Public domain W3C validator