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

Theorem marypha1 9426
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 4564 . . . . 5 (𝑑 ∈ 𝒫 𝐴 → 𝑑 ⊆ 𝐴)
2 marypha1.d . . . . 5 ((𝜑 ∧ 𝑑 ⊆ 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
31, 2sylan2 605 . . . 4 ((𝜑 ∧ 𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
43ralrimiva 3155 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑))
5 imaeq1 6047 . . . . . . 7 (𝑐 = 𝐶 → (𝑐 “ 𝑑) = (𝐶 “ 𝑑))
65breq2d 5115 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐 “ 𝑑) ↔ 𝑑 ≼ (𝐶 “ 𝑑)))
76ralbidv 3186 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑)))
8 pweq 4571 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3321 . . . . 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 5672 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4574 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3320 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V))))
17 marypha1lem 9425 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1817com12 33 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1916, 18vtoclga 3537 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
2011, 12, 19sylc 66 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V))
2112, 11xpexd 7765 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑 → 𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5290 . . . 4 (𝜑 → 𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3578 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→V))
254, 24mpd 16 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→V)
26 elpwi 4564 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶 → 𝑓 ⊆ 𝐶)
2726, 22sylan9ssr 3945 . . . . . 6 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5921 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 18 . . . . 5 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6164 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3943 . . . 4 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ 𝐵)
32 f1ssr 6786 . . . . 5 ((𝑓:𝐴–1-1→V ∧ ran 𝑓 ⊆ 𝐵) → 𝑓:𝐴–1-1→𝐵)
3332expcom 419 . . . 4 (ran 𝑓 ⊆ 𝐵 → (𝑓:𝐴–1-1→V → 𝑓:𝐴–1-1→𝐵))
3431, 33syl 18 . . 3 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴–1-1→V → 𝑓:𝐴–1-1→𝐵))
3534reximdva 3176 . 2 (𝜑 → (∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→V → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→𝐵))
3625, 35mpd 16 1 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087  Vcvv 3451   ⊆ wss 3899  𝒫 cpw 4557   class class class wbr 5103   × cxp 5649  ran crn 5652   “ cima 5654  –1-1→wf1 6535   ≼ cdom 8971  Fincfn 8973
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-om 7878  df-1o 8476  df-er 8717  df-en 8974  df-dom 8975  df-sdom 8976  df-fin 8977
This theorem is used by:  marypha2  9431
  Copyright terms: Public domain W3C validator