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

Theorem updjudhf 9360
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 9353 . . . . . 6 ((𝑥 ∈ (𝐴𝐵) ∧ (1st𝑥) = ∅) → (2nd𝑥) ∈ 𝐴)
21ex 415 . . . . 5 (𝑥 ∈ (𝐴𝐵) → ((1st𝑥) = ∅ → (2nd𝑥) ∈ 𝐴))
3 updjud.f . . . . . 6 (𝜑𝐹:𝐴𝐶)
4 ffvelrn 6849 . . . . . . 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 3017 . . . . 5 ((1st𝑥) ≠ ∅ ↔ ¬ (1st𝑥) = ∅)
10 eldju2ndr 9354 . . . . . . 7 ((𝑥 ∈ (𝐴𝐵) ∧ (1st𝑥) ≠ ∅) → (2nd𝑥) ∈ 𝐵)
1110ex 415 . . . . . 6 (𝑥 ∈ (𝐴𝐵) → ((1st𝑥) ≠ ∅ → (2nd𝑥) ∈ 𝐵))
12 updjud.g . . . . . . 7 (𝜑𝐺:𝐵𝐶)
13 ffvelrn 6849 . . . . . . . 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 4501 . 2 ((𝜑𝑥 ∈ (𝐴𝐵)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) ∈ 𝐶)
20 updjudhf.h . 2 𝐻 = (𝑥 ∈ (𝐴𝐵) ↦ if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))))
2119, 20fmptd 6878 1 (𝜑𝐻:(𝐴𝐵)⟶𝐶)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 398   = wceq 1537  wcel 2114  wne 3016  c0 4291  ifcif 4467  cmpt 5146  wf 6351  cfv 6355  1st c1st 7687  2nd c2nd 7688  cdju 9327
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-suc 6197  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-fv 6363  df-1st 7689  df-2nd 7690  df-1o 8102  df-dju 9330
This theorem is referenced by:  updjudhcoinlf  9361  updjudhcoinrg  9362  updjud  9363
  Copyright terms: Public domain W3C validator