Users' Mathboxes Mathbox for Zhi Wang < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  mofeu Structured version   Visualization version   GIF version

Theorem mofeu 50174
Description: The uniqueness of a function into a set with at most one element. (Contributed by Zhi Wang, 1-Oct-2024.)
Hypotheses
Ref Expression
mofeu.1 𝐺 = (𝐴 × 𝐵)
mofeu.2 (𝜑 → (𝐵 = ∅ → 𝐴 = ∅))
mofeu.3 (𝜑 → ∃*𝑥 𝑥 ∈ 𝐵)
Assertion
Ref Expression
mofeu (𝜑 → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
Distinct variable group:   𝑥,𝐵
Allowed substitution hints:   𝜑(𝑥)   𝐴(𝑥)   𝐹(𝑥)   𝐺(𝑥)

Proof of Theorem mofeu
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 mofeu.2 . . . . 5 (𝜑 → (𝐵 = ∅ → 𝐴 = ∅))
21imp 412 . . . 4 ((𝜑 ∧ 𝐵 = ∅) → 𝐴 = ∅)
3 f00 6789 . . . . 5 (𝐹:𝐴⟶∅ ↔ (𝐹 = ∅ ∧ 𝐴 = ∅))
43rbaib 548 . . . 4 (𝐴 = ∅ → (𝐹:𝐴⟶∅ ↔ 𝐹 = ∅))
52, 4syl 18 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶∅ ↔ 𝐹 = ∅))
6 feq3 6714 . . . 4 (𝐵 = ∅ → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶∅))
76adantl 487 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶∅))
8 mofeu.1 . . . . . 6 𝐺 = (𝐴 × 𝐵)
9 xpeq2 5677 . . . . . . 7 (𝐵 = ∅ → (𝐴 × 𝐵) = (𝐴 × ∅))
10 xp0 5757 . . . . . . 7 (𝐴 × ∅) = ∅
119, 10eqtrdi 2814 . . . . . 6 (𝐵 = ∅ → (𝐴 × 𝐵) = ∅)
128, 11eqtrid 2810 . . . . 5 (𝐵 = ∅ → 𝐺 = ∅)
1312adantl 487 . . . 4 ((𝜑 ∧ 𝐵 = ∅) → 𝐺 = ∅)
1413eqeq2d 2774 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹 = 𝐺 ↔ 𝐹 = ∅))
155, 7, 143bitr4d 314 . 2 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
16 19.42v 1988 . . 3 (∃𝑦(𝜑 ∧ 𝐵 = {𝑦}) ↔ (𝜑 ∧ ∃𝑦 𝐵 = {𝑦}))
17 fconst2g 7235 . . . . . . . 8 (𝑦 ∈ V → (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦})))
1817elv 3459 . . . . . . 7 (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦}))
19 feq3 6714 . . . . . . . 8 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶{𝑦}))
20 xpeq2 5677 . . . . . . . . 9 (𝐵 = {𝑦} → (𝐴 × 𝐵) = (𝐴 × {𝑦}))
2120eqeq2d 2774 . . . . . . . 8 (𝐵 = {𝑦} → (𝐹 = (𝐴 × 𝐵) ↔ 𝐹 = (𝐴 × {𝑦})))
2219, 21bibi12d 348 . . . . . . 7 (𝐵 = {𝑦} → ((𝐹:𝐴⟶𝐵 ↔ 𝐹 = (𝐴 × 𝐵)) ↔ (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦}))))
2318, 22mpbiri 261 . . . . . 6 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = (𝐴 × 𝐵)))
248eqeq2i 2776 . . . . . 6 (𝐹 = 𝐺 ↔ 𝐹 = (𝐴 × 𝐵))
2523, 24bitr4di 292 . . . . 5 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2625adantl 487 . . . 4 ((𝜑 ∧ 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2726exlimiv 1965 . . 3 (∃𝑦(𝜑 ∧ 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2816, 27sylbir 238 . 2 ((𝜑 ∧ ∃𝑦 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
29 mofeu.3 . . 3 (𝜑 → ∃*𝑥 𝑥 ∈ 𝐵)
30 mo0sn 50142 . . 3 (∃*𝑥 𝑥 ∈ 𝐵 ↔ (𝐵 = ∅ ∨ ∃𝑦 𝐵 = {𝑦}))
3129, 30sylib 221 . 2 (𝜑 → (𝐵 = ∅ ∨ ∃𝑦 𝐵 = {𝑦}))
3215, 28, 31mpjaodan 973 1 (𝜑 → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   ∨ wo 861   = wceq 1570  ∃wex 1812   ∈ wcel 2147  ∃*wmo 2565  Vcvv 3454  ∅c0 4281  {csn 4588   × cxp 5654  ⟶wf 6557
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 5253  ax-nul 5264  ax-pr 5396
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  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-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-res 5668  df-ima 5669  df-iota 6515  df-fun 6563  df-fn 6564  df-f 6565  df-fv 6569
This theorem is used by:  functhinclem1  50794  functhinclem3  50796
  Copyright terms: Public domain W3C validator