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

Theorem marypha1 8223
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 4117 . . . . 5 (𝑑 ∈ 𝒫 𝐴𝑑𝐴)
2 marypha1.d . . . . 5 ((𝜑𝑑𝐴) → 𝑑 ≼ (𝐶𝑑))
31, 2sylan2 490 . . . 4 ((𝜑𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶𝑑))
43ralrimiva 2949 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑))
5 marypha1.c . . . . 5 (𝜑𝐶 ⊆ (𝐴 × 𝐵))
6 marypha1.a . . . . . . 7 (𝜑𝐴 ∈ Fin)
7 marypha1.b . . . . . . 7 (𝜑𝐵 ∈ Fin)
8 xpexg 6858 . . . . . . 7 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (𝐴 × 𝐵) ∈ V)
96, 7, 8syl2anc 691 . . . . . 6 (𝜑 → (𝐴 × 𝐵) ∈ V)
10 elpw2g 4754 . . . . . 6 ((𝐴 × 𝐵) ∈ V → (𝐶 ∈ 𝒫 (𝐴 × 𝐵) ↔ 𝐶 ⊆ (𝐴 × 𝐵)))
119, 10syl 17 . . . . 5 (𝜑 → (𝐶 ∈ 𝒫 (𝐴 × 𝐵) ↔ 𝐶 ⊆ (𝐴 × 𝐵)))
125, 11mpbird 246 . . . 4 (𝜑𝐶 ∈ 𝒫 (𝐴 × 𝐵))
13 xpeq2 5053 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4113 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3121 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1615imbi2d 329 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))))
17 marypha1lem 8222 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1817com12 32 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
1916, 18vtoclga 3245 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)))
207, 6, 19sylc 63 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V))
21 imaeq1 5380 . . . . . . . 8 (𝑐 = 𝐶 → (𝑐𝑑) = (𝐶𝑑))
2221breq2d 4595 . . . . . . 7 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐𝑑) ↔ 𝑑 ≼ (𝐶𝑑)))
2322ralbidv 2969 . . . . . 6 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑)))
24 pweq 4111 . . . . . . 7 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
2524rexeqdv 3122 . . . . . 6 (𝑐 = 𝐶 → (∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V ↔ ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
2623, 25imbi12d 333 . . . . 5 (𝑐 = 𝐶 → ((∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V) ↔ (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)))
2726rspcva 3280 . . . 4 ((𝐶 ∈ 𝒫 (𝐴 × 𝐵) ∧ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴1-1→V)) → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
2812, 20, 27syl2anc 691 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V))
294, 28mpd 15 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V)
30 elpwi 4117 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶𝑓𝐶)
3130, 5sylan9ssr 3582 . . . . . 6 ((𝜑𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
32 rnss 5275 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
3331, 32syl 17 . . . . 5 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
34 rnxpss 5485 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3533, 34syl6ss 3580 . . . 4 ((𝜑𝑓 ∈ 𝒫 𝐶) → ran 𝑓𝐵)
36 f1ssr 6020 . . . . 5 ((𝑓:𝐴1-1→V ∧ ran 𝑓𝐵) → 𝑓:𝐴1-1𝐵)
3736expcom 450 . . . 4 (ran 𝑓𝐵 → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3835, 37syl 17 . . 3 ((𝜑𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴1-1→V → 𝑓:𝐴1-1𝐵))
3938reximdva 3000 . 2 (𝜑 → (∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1→V → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵))
4029, 39mpd 15 1 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴1-1𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 195  wa 383   = wceq 1475  wcel 1977  wral 2896  wrex 2897  Vcvv 3173  wss 3540  𝒫 cpw 4108   class class class wbr 4583   × cxp 5036  ran crn 5039  cima 5041  1-1wf1 5801  cdom 7839  Fincfn 7841
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3or 1032  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-pss 3556  df-nul 3875  df-if 4037  df-pw 4110  df-sn 4126  df-pr 4128  df-tp 4130  df-op 4132  df-uni 4373  df-br 4584  df-opab 4644  df-tr 4681  df-eprel 4949  df-id 4953  df-po 4959  df-so 4960  df-fr 4997  df-we 4999  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-ord 5643  df-on 5644  df-lim 5645  df-suc 5646  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-om 6958  df-1o 7447  df-er 7629  df-en 7842  df-dom 7843  df-sdom 7844  df-fin 7845
This theorem is referenced by:  marypha2  8228
  Copyright terms: Public domain W3C validator