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

Theorem marypha1 9436
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 4566 . . . . 5 (𝑑 ∈ 𝒫 𝐴 → 𝑑 ⊆ 𝐴)
2 marypha1.d . . . . 5 ((𝜑 ∧ 𝑑 ⊆ 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
31, 2sylan2 605 . . . 4 ((𝜑 ∧ 𝑑 ∈ 𝒫 𝐴) → 𝑑 ≼ (𝐶 “ 𝑑))
43ralrimiva 3157 . . 3 (𝜑 → ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑))
5 imaeq1 6052 . . . . . . 7 (𝑐 = 𝐶 → (𝑐 “ 𝑑) = (𝐶 “ 𝑑))
65breq2d 5117 . . . . . 6 (𝑐 = 𝐶 → (𝑑 ≼ (𝑐 “ 𝑑) ↔ 𝑑 ≼ (𝐶 “ 𝑑)))
76ralbidv 3188 . . . . 5 (𝑐 = 𝐶 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) ↔ ∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑)))
8 pweq 4573 . . . . . 6 (𝑐 = 𝐶 → 𝒫 𝑐 = 𝒫 𝐶)
98rexeqdv 3323 . . . . 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 5675 . . . . . . . . 9 (𝑏 = 𝐵 → (𝐴 × 𝑏) = (𝐴 × 𝐵))
1413pweqd 4576 . . . . . . . 8 (𝑏 = 𝐵 → 𝒫 (𝐴 × 𝑏) = 𝒫 (𝐴 × 𝐵))
1514raleqdv 3322 . . . . . . 7 (𝑏 = 𝐵 → (∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V) ↔ ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1615imbi2d 343 . . . . . 6 (𝑏 = 𝐵 → ((𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)) ↔ (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V))))
17 marypha1lem 9435 . . . . . . 7 (𝐴 ∈ Fin → (𝑏 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1817com12 33 . . . . . 6 (𝑏 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝑏)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
1916, 18vtoclga 3539 . . . . 5 (𝐵 ∈ Fin → (𝐴 ∈ Fin → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V)))
2011, 12, 19sylc 66 . . . 4 (𝜑 → ∀𝑐 ∈ 𝒫 (𝐴 × 𝐵)(∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝑐 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝑐𝑓:𝐴–1-1→V))
2112, 11xpexd 7772 . . . . 5 (𝜑 → (𝐴 × 𝐵) ∈ V)
22 marypha1.c . . . . 5 (𝜑 → 𝐶 ⊆ (𝐴 × 𝐵))
2321, 22sselpwd 5293 . . . 4 (𝜑 → 𝐶 ∈ 𝒫 (𝐴 × 𝐵))
2410, 20, 23rspcdva 3580 . . 3 (𝜑 → (∀𝑑 ∈ 𝒫 𝐴𝑑 ≼ (𝐶 “ 𝑑) → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→V))
254, 24mpd 16 . 2 (𝜑 → ∃𝑓 ∈ 𝒫 𝐶𝑓:𝐴–1-1→V)
26 elpwi 4566 . . . . . . 7 (𝑓 ∈ 𝒫 𝐶 → 𝑓 ⊆ 𝐶)
2726, 22sylan9ssr 3926 . . . . . 6 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → 𝑓 ⊆ (𝐴 × 𝐵))
28 rnss 5925 . . . . . 6 (𝑓 ⊆ (𝐴 × 𝐵) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
2927, 28syl 18 . . . . 5 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ ran (𝐴 × 𝐵))
30 rnxpss 6169 . . . . 5 ran (𝐴 × 𝐵) ⊆ 𝐵
3129, 30sstrdi 3924 . . . 4 ((𝜑 ∧ 𝑓 ∈ 𝒫 𝐶) → ran 𝑓 ⊆ 𝐵)
32 f1ssr 6794 . . . . 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 3178 . 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 1569   ∈ wcel 2146  ∀wral 3079  ∃wrex 3089  Vcvv 3453   ⊆ wss 3899  𝒫 cpw 4559   class class class wbr 5105   × cxp 5652  ran crn 5655   “ cima 5657  –1-1→wf1 6543   ≼ cdom 8982  Fincfn 8984
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-11 2196  ax-12 2215  ax-ext 2735  ax-sep 5251  ax-nul 5262  ax-pow 5330  ax-pr 5394  ax-un 7758
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2101  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-ral 3080  df-rex 3090  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4838  df-uni 4870  df-br 5106  df-opab 5170  df-mpt 5189  df-tr 5215  df-id 5549  df-eprel 5554  df-po 5562  df-so 5563  df-fr 5607  df-we 5609  df-xp 5660  df-rel 5661  df-cnv 5662  df-co 5663  df-dm 5664  df-rn 5665  df-res 5666  df-ima 5667  df-ord 6371  df-on 6372  df-lim 6373  df-suc 6374  df-iota 6500  df-fun 6548  df-fn 6549  df-f 6550  df-f1 6551  df-fo 6552  df-f1o 6553  df-fv 6554  df-om 7885  df-1o 8487  df-er 8728  df-en 8985  df-dom 8986  df-sdom 8987  df-fin 8988
This theorem is used by:  marypha2  9441
  Copyright terms: Public domain W3C validator