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 49902
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 6756 . . . . 5 (𝐹:𝐴⟶∅ ↔ (𝐹 = ∅ ∧ 𝐴 = ∅))
43rbaib 548 . . . 4 (𝐴 = ∅ → (𝐹:𝐴⟶∅ ↔ 𝐹 = ∅))
52, 4syl 18 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶∅ ↔ 𝐹 = ∅))
6 feq3 6681 . . . 4 (𝐵 = ∅ → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶∅))
76adantl 487 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶∅))
8 mofeu.1 . . . . . 6 𝐺 = (𝐴 × 𝐵)
9 xpeq2 5672 . . . . . . 7 (𝐵 = ∅ → (𝐴 × 𝐵) = (𝐴 × ∅))
10 xp0 5751 . . . . . . 7 (𝐴 × ∅) = ∅
119, 10eqtrdi 2812 . . . . . 6 (𝐵 = ∅ → (𝐴 × 𝐵) = ∅)
128, 11eqtrid 2808 . . . . 5 (𝐵 = ∅ → 𝐺 = ∅)
1312adantl 487 . . . 4 ((𝜑 ∧ 𝐵 = ∅) → 𝐺 = ∅)
1413eqeq2d 2772 . . 3 ((𝜑 ∧ 𝐵 = ∅) → (𝐹 = 𝐺 ↔ 𝐹 = ∅))
155, 7, 143bitr4d 314 . 2 ((𝜑 ∧ 𝐵 = ∅) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
16 19.42v 1986 . . 3 (∃𝑦(𝜑 ∧ 𝐵 = {𝑦}) ↔ (𝜑 ∧ ∃𝑦 𝐵 = {𝑦}))
17 fconst2g 7201 . . . . . . . 8 (𝑦 ∈ V → (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦})))
1817elv 3456 . . . . . . 7 (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦}))
19 feq3 6681 . . . . . . . 8 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹:𝐴⟶{𝑦}))
20 xpeq2 5672 . . . . . . . . 9 (𝐵 = {𝑦} → (𝐴 × 𝐵) = (𝐴 × {𝑦}))
2120eqeq2d 2772 . . . . . . . 8 (𝐵 = {𝑦} → (𝐹 = (𝐴 × 𝐵) ↔ 𝐹 = (𝐴 × {𝑦})))
2219, 21bibi12d 348 . . . . . . 7 (𝐵 = {𝑦} → ((𝐹:𝐴⟶𝐵 ↔ 𝐹 = (𝐴 × 𝐵)) ↔ (𝐹:𝐴⟶{𝑦} ↔ 𝐹 = (𝐴 × {𝑦}))))
2318, 22mpbiri 261 . . . . . 6 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = (𝐴 × 𝐵)))
248eqeq2i 2774 . . . . . 6 (𝐹 = 𝐺 ↔ 𝐹 = (𝐴 × 𝐵))
2523, 24bitr4di 292 . . . . 5 (𝐵 = {𝑦} → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2625adantl 487 . . . 4 ((𝜑 ∧ 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2726exlimiv 1963 . . 3 (∃𝑦(𝜑 ∧ 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
2816, 27sylbir 238 . 2 ((𝜑 ∧ ∃𝑦 𝐵 = {𝑦}) → (𝐹:𝐴⟶𝐵 ↔ 𝐹 = 𝐺))
29 mofeu.3 . . 3 (𝜑 → ∃*𝑥 𝑥 ∈ 𝐵)
30 mo0sn 49870 . . 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 2145  ∃*wmo 2563  Vcvv 3451  ∅c0 4279  {csn 4584   × cxp 5649  ⟶wf 6527
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-pr 5391
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 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-rmo 3366  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-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  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-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-fv 6539
This theorem is used by:  functhinclem1  50496  functhinclem3  50498
  Copyright terms: Public domain W3C validator