ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  updjudhf GIF version

Theorem updjudhf 7420
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 7413 . . . . . 6 ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) = ∅) → (2nd ‘𝑥) ∈ 𝐴)
21ex 115 . . . . 5 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) = ∅ → (2nd ‘𝑥) ∈ 𝐴))
3 updjud.f . . . . . 6 (𝜑 → 𝐹:𝐴⟶𝐶)
4 ffvelcdm 5841 . . . . . . 7 ((𝐹:𝐴⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐴) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)
54ex 115 . . . . . 6 (𝐹:𝐴⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
63, 5syl 14 . . . . 5 (𝜑 → ((2nd ‘𝑥) ∈ 𝐴 → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
72, 6sylan9r 414 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) = ∅ → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶))
87imp 124 . . 3 (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ (1st ‘𝑥) = ∅) → (𝐹‘(2nd ‘𝑥)) ∈ 𝐶)
9 df-ne 2421 . . . . 5 ((1st ‘𝑥) ≠ ∅ ↔ ¬ (1st ‘𝑥) = ∅)
10 eldju2ndr 7414 . . . . . . 7 ((𝑥 ∈ (𝐴 ⊔ 𝐵) ∧ (1st ‘𝑥) ≠ ∅) → (2nd ‘𝑥) ∈ 𝐵)
1110ex 115 . . . . . 6 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) ≠ ∅ → (2nd ‘𝑥) ∈ 𝐵))
12 updjud.g . . . . . . 7 (𝜑 → 𝐺:𝐵⟶𝐶)
13 ffvelcdm 5841 . . . . . . . 8 ((𝐺:𝐵⟶𝐶 ∧ (2nd ‘𝑥) ∈ 𝐵) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)
1413ex 115 . . . . . . 7 (𝐺:𝐵⟶𝐶 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1512, 14syl 14 . . . . . 6 (𝜑 → ((2nd ‘𝑥) ∈ 𝐵 → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1611, 15sylan9r 414 . . . . 5 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) ≠ ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
179, 16biimtrrid 153 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → (¬ (1st ‘𝑥) = ∅ → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶))
1817imp 124 . . 3 (((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) ∧ ¬ (1st ‘𝑥) = ∅) → (𝐺‘(2nd ‘𝑥)) ∈ 𝐶)
19 eldju1st 7412 . . . . . 6 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) = 1o))
20 1n0 6705 . . . . . . . 8 1o ≠ ∅
21 neeq1 2433 . . . . . . . 8 ((1st ‘𝑥) = 1o → ((1st ‘𝑥) ≠ ∅ ↔ 1o ≠ ∅))
2220, 21mpbiri 168 . . . . . . 7 ((1st ‘𝑥) = 1o → (1st ‘𝑥) ≠ ∅)
2322orim2i 773 . . . . . 6 (((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) = 1o) → ((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) ≠ ∅))
2419, 23syl 14 . . . . 5 (𝑥 ∈ (𝐴 ⊔ 𝐵) → ((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) ≠ ∅))
2524adantl 277 . . . 4 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → ((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) ≠ ∅))
26 dcne 2431 . . . 4 (DECID (1st ‘𝑥) = ∅ ↔ ((1st ‘𝑥) = ∅ ∨ (1st ‘𝑥) ≠ ∅))
2725, 26sylibr 134 . . 3 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → DECID (1st ‘𝑥) = ∅)
288, 18, 27ifcldadc 3670 . 2 ((𝜑 ∧ 𝑥 ∈ (𝐴 ⊔ 𝐵)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) ∈ 𝐶)
29 updjudhf.h . 2 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))))
3028, 29fmptd 5862 1 (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶)
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   ∨ wo 720  DECID wdc 846   = wceq 1402   ∈ wcel 2209   ≠ wne 2420  ∅c0 3520  ifcif 3638   ↦ cmpt 4192  ⟶wf 5373  ‘cfv 5377  1st c1st 6372  2nd c2nd 6373  1oc1o 6680   ⊔ cdju 7378
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-sep 4249  ax-nul 4259  ax-pow 4311  ax-pr 4346  ax-un 4578
This proof depends on definitions:  df-bi 117  df-dc 847  df-3an 1011  df-tru 1405  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-ral 2533  df-rex 2534  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-br 4131  df-opab 4193  df-mpt 4194  df-tr 4230  df-id 4438  df-iord 4511  df-on 4513  df-suc 4516  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-f1 5382  df-fo 5383  df-f1o 5384  df-fv 5385  df-1st 6374  df-2nd 6375  df-1o 6687  df-dju 7379  df-inl 7388  df-inr 7389
This theorem is used by:  updjudhcoinlf  7421  updjudhcoinrg  7422  updjud  7423
  Copyright terms: Public domain W3C validator