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

Theorem marypha1 9463
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 4567 . . . . 5 (𝑑 ∈ 𝒫 𝐴 → 𝑑 ⊆ 𝐴)
2 marypha1.d . . . . 5 ((𝜑 ∧ 𝑑 ⊆ 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
31, 2sylan2 605 . . . 4 ((𝜑 ∧ 𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
43ralrimiva 3158 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑))
5 imaeq1 6065 . . . . . . 7 (𝑐 = 𝐶 → (𝑐 “ 𝑑) = (𝐶 “ 𝑑))
65breq2d 5120 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐 “ 𝑑) ↔ 𝑑 ≼ (𝐶 “ 𝑑)))
76ralbidv 3189 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑)))
8 pweq 4574 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3324 . . . . 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 5679 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4577 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3323 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V))))
17 marypha1lem 9462 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1817com12 33 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
1916, 18vtoclga 3540 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V)))
2011, 12, 19sylc 66 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴⟶1-1V))
2112, 11xpexd 7797 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑 → 𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5297 . . . 4 (𝜑 → 𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3581 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V))
254, 24mpd 16 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴⟶1-1V)
26 elpwi 4567 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶 → 𝑓 ⊆ 𝐶)
2726, 22sylan9ssr 3927 . . . . . 6 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5933 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 18 . . . . 5 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6182 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3925 . . . 4 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ 𝐵)
32 f1ssr 6816 . . . . 5 ((𝑓:𝐴⟶1-1V ∧ ran 𝑓 ⊆ 𝐵) → 𝑓:𝐴⟶1-1𝐵)
3332expcom 419 . . . 4 (ran 𝑓 ⊆ 𝐵 → (𝑓:𝐴⟶1-1V → 𝑓:𝐴⟶1-1𝐵))
3431, 33syl 18 . . 3 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → (𝑓:𝐴⟶1-1V → 𝑓:𝐴⟶1-1𝐵))
3534reximdva 3179 . 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 1570   ∈ wcel 2147  ∀wral 3080  ∃wrex 3090  Vcvv 3454   ⊆ wss 3900  𝒫 cpw 4560   class class class wbr 5108   × cxp 5656  ran crn 5659   “ cima 5661  ⟶1-1wf1 6563   ≼ cdom 9009  Fincfn 9011
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-br 5109  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5553  df-eprel 5558  df-po 5566  df-so 5567  df-fr 5611  df-we 5613  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-ord 6391  df-on 6392  df-lim 6393  df-suc 6394  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-om 7912  df-1o 8514  df-er 8755  df-en 9012  df-dom 9013  df-sdom 9014  df-fin 9015
This theorem is used by:  marypha2  9468
  Copyright terms: Public domain W3C validator