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

Theorem updjudhf 9993
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 9986 . . . . . 6 ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) = ∅) → (2nd ‘𝑥) ∈ 𝐴)
21ex 418 . . . . 5 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) = ∅ → (2nd ‘𝑥) ∈ 𝐴))
3 updjud.f . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐶)
4 ffvelcdm 7073 . . . . . . 7 ((𝐹:𝐴⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐴) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)
54ex 418 . . . . . 6 (𝐹:𝐴⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
63, 5syl 18 . . . . 5 (𝜑 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
72, 6sylan9r 518 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) = ∅ → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
87imp 412 . . 3 (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ (1st ‘𝑥) = ∅) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)
9 df-ne 2957 . . . . 5 ((1st ‘𝑥) ≠ ∅ ↔ ¬ (1st ‘𝑥) = ∅)
10 eldju2ndr 9987 . . . . . . 7 ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) ≠ ∅) → (2nd ‘𝑥) ∈ 𝐵)
1110ex 418 . . . . . 6 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) ≠ ∅ → (2nd ‘𝑥) ∈ 𝐵))
12 updjud.g . . . . . . 7 (𝜑 → 𝐺:𝐵⟶𝐶)
13 ffvelcdm 7073 . . . . . . . 8 ((𝐺:𝐵⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐵) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)
1413ex 418 . . . . . . 7 (𝐺:𝐵⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1512, 14syl 18 . . . . . 6 (𝜑 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1611, 15sylan9r 518 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) ≠ ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
179, 16biimtrrid 246 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → (¬ (1st ‘𝑥) = ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1817imp 412 . . 3 (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ ¬ (1st ‘𝑥) = ∅) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)
198, 18ifclda 4518 . 2 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) ∈ 𝐶)
20 updjudhf.h . 2 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))))
2119, 20fmptd 7106 1 (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2145   ≠ wne 2956  ∅c0 4279  ifcif 4482   ↦ cmpt 5186  ⟶wf 6527  ‘cfv 6531  1st c1st 7988  2nd c2nd 7989   ⊔ cdju 9960
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  ax-un 7740
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-rab 3414  df-v 3453  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-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-fv 6539  df-1st 7990  df-2nd 7991  df-1o 8460  df-dju 9963
This theorem is used by:  updjudhcoinlf  9994  updjudhcoinrg  9995  updjud  9996
  Copyright terms: Public domain W3C validator