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

Theorem updjudhf 9357
Description: The mapping of an element of the disjoint union to the value of the corresponding function is a function. (Contributed by AV, 26-Jun-2022.)
Hypotheses
Ref Expression
updjud.f (𝜑𝐹:𝐴𝐶)
updjud.g (𝜑𝐺:𝐵𝐶)
updjudhf.h 𝐻 = (𝑥 ∈ (𝐴𝐵) ↦ if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))))
Assertion
Ref Expression
updjudhf (𝜑𝐻:(𝐴𝐵)⟶𝐶)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝜑,𝑥
Allowed substitution hints:   𝐹(𝑥)   𝐺(𝑥)   𝐻(𝑥)

Proof of Theorem updjudhf
StepHypRef Expression
1 eldju2ndl 9350 . . . . . 6 ((𝑥 ∈ (𝐴𝐵) ∧ (1st𝑥) = ∅) → (2nd𝑥) ∈ 𝐴)
21ex 415 . . . . 5 (𝑥 ∈ (𝐴𝐵) → ((1st𝑥) = ∅ → (2nd𝑥) ∈ 𝐴))
3 updjud.f . . . . . 6 (𝜑𝐹:𝐴𝐶)
4 ffvelrn 6846 . . . . . . 7 ((𝐹:𝐴𝐶 ∧ (2nd𝑥) ∈ 𝐴) → (𝐹‘(2nd𝑥)) ∈ 𝐶)
54ex 415 . . . . . 6 (𝐹:𝐴𝐶 → ((2nd𝑥) ∈ 𝐴 → (𝐹‘(2nd𝑥)) ∈ 𝐶))
63, 5syl 17 . . . . 5 (𝜑 → ((2nd𝑥) ∈ 𝐴 → (𝐹‘(2nd𝑥)) ∈ 𝐶))
72, 6sylan9r 511 . . . 4 ((𝜑𝑥 ∈ (𝐴𝐵)) → ((1st𝑥) = ∅ → (𝐹‘(2nd𝑥)) ∈ 𝐶))
87imp 409 . . 3 (((𝜑𝑥 ∈ (𝐴𝐵)) ∧ (1st𝑥) = ∅) → (𝐹‘(2nd𝑥)) ∈ 𝐶)
9 df-ne 3016 . . . . 5 ((1st𝑥) ≠ ∅ ↔ ¬ (1st𝑥) = ∅)
10 eldju2ndr 9351 . . . . . . 7 ((𝑥 ∈ (𝐴𝐵) ∧ (1st𝑥) ≠ ∅) → (2nd𝑥) ∈ 𝐵)
1110ex 415 . . . . . 6 (𝑥 ∈ (𝐴𝐵) → ((1st𝑥) ≠ ∅ → (2nd𝑥) ∈ 𝐵))
12 updjud.g . . . . . . 7 (𝜑𝐺:𝐵𝐶)
13 ffvelrn 6846 . . . . . . . 8 ((𝐺:𝐵𝐶 ∧ (2nd𝑥) ∈ 𝐵) → (𝐺‘(2nd𝑥)) ∈ 𝐶)
1413ex 415 . . . . . . 7 (𝐺:𝐵𝐶 → ((2nd𝑥) ∈ 𝐵 → (𝐺‘(2nd𝑥)) ∈ 𝐶))
1512, 14syl 17 . . . . . 6 (𝜑 → ((2nd𝑥) ∈ 𝐵 → (𝐺‘(2nd𝑥)) ∈ 𝐶))
1611, 15sylan9r 511 . . . . 5 ((𝜑𝑥 ∈ (𝐴𝐵)) → ((1st𝑥) ≠ ∅ → (𝐺‘(2nd𝑥)) ∈ 𝐶))
179, 16syl5bir 245 . . . 4 ((𝜑𝑥 ∈ (𝐴𝐵)) → (¬ (1st𝑥) = ∅ → (𝐺‘(2nd𝑥)) ∈ 𝐶))
1817imp 409 . . 3 (((𝜑𝑥 ∈ (𝐴𝐵)) ∧ ¬ (1st𝑥) = ∅) → (𝐺‘(2nd𝑥)) ∈ 𝐶)
198, 18ifclda 4498 . 2 ((𝜑𝑥 ∈ (𝐴𝐵)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) ∈ 𝐶)
20 updjudhf.h . 2 𝐻 = (𝑥 ∈ (𝐴𝐵) ↦ if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))))
2119, 20fmptd 6875 1 (𝜑𝐻:(𝐴𝐵)⟶𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398   = wceq 1536  wcel 2113  wne 3015  c0 4288  ifcif 4464  cmpt 5143  wf 6348  cfv 6352  1st c1st 7684  2nd c2nd 7685  cdju 9324
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5200  ax-nul 5207  ax-pow 5263  ax-pr 5327  ax-un 7458
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-ral 3142  df-rex 3143  df-rab 3146  df-v 3495  df-sbc 3771  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4465  df-sn 4565  df-pr 4567  df-op 4571  df-uni 4836  df-br 5064  df-opab 5126  df-mpt 5144  df-id 5457  df-xp 5558  df-rel 5559  df-cnv 5560  df-co 5561  df-dm 5562  df-rn 5563  df-res 5564  df-ima 5565  df-suc 6194  df-iota 6311  df-fun 6354  df-fn 6355  df-f 6356  df-fv 6360  df-1st 7686  df-2nd 7687  df-1o 8099  df-dju 9327
This theorem is referenced by:  updjudhcoinlf  9358  updjudhcoinrg  9359  updjud  9360
  Copyright terms: Public domain W3C validator