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

Theorem marypha1 8898
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 4548 . . . . 5 (𝑑 ∈ 𝒫 𝐴𝑑𝐴)
2 marypha1.d . . . . 5 ((𝜑𝑑𝐴) → 𝑑 ≼ (𝐶𝑑))
31, 2sylan2 594 . . . 4 ((𝜑𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶𝑑))
43ralrimiva 3182 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑))
5 imaeq1 5924 . . . . . . 7 (𝑐 = 𝐶 → (𝑐𝑑) = (𝐶𝑑))
65breq2d 5078 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐𝑑) ↔ 𝑑 ≼ (𝐶𝑑)))
76ralbidv 3197 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑)))
8 pweq 4555 . . . . . 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 5576 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4558 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3415 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))))
17 marypha1lem 8897 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1817com12 32 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1916, 18vtoclga 3574 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
2011, 12, 19sylc 65 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))
2112, 11xpexd 7474 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5230 . . . 4 (𝜑𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3625 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
254, 24mpd 15 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)
26 elpwi 4548 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶𝑓𝐶)
2726, 22sylan9ssr 3981 . . . . . 6 ((𝜑𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5809 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 17 . . . . 5 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6029 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3979 . . . 4 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓𝐵)
32 f1ssr 6581 . . . . 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 1537  wcel 2114  wral 3138  wrex 3139  Vcvv 3494  wss 3936  𝒫 cpw 4539   class class class wbr 5066   × cxp 5553  ran crn 5556  cima 5558  1-1wf1 6352  cdom 8507  Fincfn 8509
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 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3or 1084  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  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 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-pss 3954  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4568  df-pr 4570  df-tp 4572  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-tr 5173  df-id 5460  df-eprel 5465  df-po 5474  df-so 5475  df-fr 5514  df-we 5516  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-ord 6194  df-on 6195  df-lim 6196  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-f1 6360  df-fo 6361  df-f1o 6362  df-fv 6363  df-om 7581  df-1o 8102  df-er 8289  df-en 8510  df-dom 8511  df-sdom 8512  df-fin 8513
This theorem is referenced by:  marypha2  8903
  Copyright terms: Public domain W3C validator