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

Theorem marypha1 9482
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 4574 . . . . 5 (𝑑 ∈ 𝒫 𝐴 → 𝑑 ⊆ 𝐴)
2 marypha1.d . . . . 5 ((𝜑 ∧ 𝑑 ⊆ 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
31, 2sylan2 605 . . . 4 ((𝜑 ∧ 𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
43ralrimiva 3169 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑))
5 imaeq1 6074 . . . . . . 7 (𝑐 = 𝐶 → (𝑐 “ 𝑑) = (𝐶 “ 𝑑))
65breq2d 5128 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐 “ 𝑑) ↔ 𝑑 ≼ (𝐶 “ 𝑑)))
76ralbidv 3200 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑)))
8 pweq 4581 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3332 . . . . 5 (𝑐 = 𝐶 → (∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V ↔ ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V))
107, 9imbi12d 347 . . . 4 (𝑐 = 𝐶 → ((∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V) ↔ (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V)))
11 marypha1.b . . . . 5 (𝜑 → 𝐵 ∈ Fin)
12 marypha1.a . . . . 5 (𝜑 → 𝐴 ∈ Fin)
13 xpeq2 5687 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4584 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3331 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V))))
17 marypha1lem 9481 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1817com12 33 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1916, 18vtoclga 3547 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
2011, 12, 19sylc 66 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V))
2112, 11xpexd 7816 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑 → 𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5305 . . . 4 (𝜑 → 𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3588 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V))
254, 24mpd 16 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V)
26 elpwi 4574 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶 → 𝑓 ⊆ 𝐶)
2726, 22sylan9ssr 3934 . . . . . 6 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5941 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 18 . . . . 5 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6191 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3932 . . . 4 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ 𝐵)
32 f1ssr 6834 . . . . 5 ((𝑓:𝐴⟶1-1V ∧ ran 𝑓 ⊆ 𝐵) → 𝑓:𝐴⟶1-1𝐵)
3332expcom 419 . . . 4 (ran 𝑓 ⊆ 𝐵 → (𝑓:𝐴⟶1-1V → 𝑓:𝐴⟶1-1𝐵))
3431, 33syl 18 . . 3 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴⟶1-1V → 𝑓:𝐴⟶1-1𝐵))
3534reximdva 3190 . 2 (𝜑 → (∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶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 1572   ∈ wcel 2156  ∀wral 3091  ∃wrex 3101  Vcvv 3461   ⊆ wss 3907  𝒫 cpw 4567   class class class wbr 5116   × cxp 5664  ran crn 5667   “ cima 5669  ⟶1-1wf1 6576   ≼ cdom 9028  Fincfn 9030
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pow 5342  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-reu 3377  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-pss 4024  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-pw 4569  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-br 5117  df-opab 5182  df-mpt 5201  df-tr 5227  df-id 5561  df-eprel 5566  df-po 5574  df-so 5575  df-fr 5619  df-we 5621  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-ord 6404  df-on 6405  df-lim 6406  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-om 7931  df-1o 8533  df-er 8774  df-en 9031  df-dom 9032  df-sdom 9033  df-fin 9034
This theorem is used by:  marypha2  9487
  Copyright terms: Public domain W3C validator