Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > updjudhf | Structured version Visualization version GIF version |
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.) |
Ref | Expression |
---|---|
updjud.f | ⊢ (𝜑 → 𝐹:𝐴⟶𝐶) |
updjud.g | ⊢ (𝜑 → 𝐺:𝐵⟶𝐶) |
updjudhf.h | ⊢ 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥)))) |
Ref | Expression |
---|---|
updjudhf | ⊢ (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | eldju2ndl 9682 | . . . . . 6 ⊢ ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) = ∅) → (2nd ‘𝑥) ∈ 𝐴) | |
2 | 1 | ex 413 | . . . . 5 ⊢ (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) = ∅ → (2nd ‘𝑥) ∈ 𝐴)) |
3 | updjud.f | . . . . . 6 ⊢ (𝜑 → 𝐹:𝐴⟶𝐶) | |
4 | ffvelrn 6959 | . . . . . . 7 ⊢ ((𝐹:𝐴⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐴) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶) | |
5 | 4 | ex 413 | . . . . . 6 ⊢ (𝐹:𝐴⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)) |
6 | 3, 5 | syl 17 | . . . . 5 ⊢ (𝜑 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)) |
7 | 2, 6 | sylan9r 509 | . . . 4 ⊢ ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) = ∅ → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)) |
8 | 7 | imp 407 | . . 3 ⊢ (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ (1st ‘𝑥) = ∅) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶) |
9 | df-ne 2944 | . . . . 5 ⊢ ((1st ‘𝑥) ≠ ∅ ↔ ¬ (1st ‘𝑥) = ∅) | |
10 | eldju2ndr 9683 | . . . . . . 7 ⊢ ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) ≠ ∅) → (2nd ‘𝑥) ∈ 𝐵) | |
11 | 10 | ex 413 | . . . . . 6 ⊢ (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) ≠ ∅ → (2nd ‘𝑥) ∈ 𝐵)) |
12 | updjud.g | . . . . . . 7 ⊢ (𝜑 → 𝐺:𝐵⟶𝐶) | |
13 | ffvelrn 6959 | . . . . . . . 8 ⊢ ((𝐺:𝐵⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐵) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶) | |
14 | 13 | ex 413 | . . . . . . 7 ⊢ (𝐺:𝐵⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)) |
15 | 12, 14 | syl 17 | . . . . . 6 ⊢ (𝜑 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)) |
16 | 11, 15 | sylan9r 509 | . . . . 5 ⊢ ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) ≠ ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)) |
17 | 9, 16 | syl5bir 242 | . . . 4 ⊢ ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → (¬ (1st ‘𝑥) = ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)) |
18 | 17 | imp 407 | . . 3 ⊢ (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ ¬ (1st ‘𝑥) = ∅) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶) |
19 | 8, 18 | ifclda 4494 | . 2 ⊢ ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) ∈ 𝐶) |
20 | updjudhf.h | . 2 ⊢ 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥)))) | |
21 | 19, 20 | fmptd 6988 | 1 ⊢ (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶) |
Colors of variables: wff setvar class |
Syntax hints: ¬ wn 3 → wi 4 ∧ wa 396 = wceq 1539 ∈ wcel 2106 ≠ wne 2943 ∅c0 4256 ifcif 4459 ↦ cmpt 5157 ⟶wf 6429 ‘cfv 6433 1st c1st 7829 2nd c2nd 7830 ⊔ cdju 9656 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1798 ax-4 1812 ax-5 1913 ax-6 1971 ax-7 2011 ax-8 2108 ax-9 2116 ax-10 2137 ax-11 2154 ax-12 2171 ax-ext 2709 ax-sep 5223 ax-nul 5230 ax-pr 5352 ax-un 7588 |
This theorem depends on definitions: df-bi 206 df-an 397 df-or 845 df-3an 1088 df-tru 1542 df-fal 1552 df-ex 1783 df-nf 1787 df-sb 2068 df-mo 2540 df-eu 2569 df-clab 2716 df-cleq 2730 df-clel 2816 df-nfc 2889 df-ne 2944 df-ral 3069 df-rex 3070 df-rab 3073 df-v 3434 df-dif 3890 df-un 3892 df-in 3894 df-ss 3904 df-nul 4257 df-if 4460 df-sn 4562 df-pr 4564 df-op 4568 df-uni 4840 df-br 5075 df-opab 5137 df-mpt 5158 df-id 5489 df-xp 5595 df-rel 5596 df-cnv 5597 df-co 5598 df-dm 5599 df-rn 5600 df-res 5601 df-ima 5602 df-suc 6272 df-iota 6391 df-fun 6435 df-fn 6436 df-f 6437 df-fv 6441 df-1st 7831 df-2nd 7832 df-1o 8297 df-dju 9659 |
This theorem is referenced by: updjudhcoinlf 9690 updjudhcoinrg 9691 updjud 9692 |
Copyright terms: Public domain | W3C validator |