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

Theorem updjudhcoinrg 10014
Description: The composition of the mapping of an element of the disjoint union to the value of the corresponding function and the right injection equals the second function. (Contributed by AV, 27-Jun-2022.)
Hypotheses
Ref Expression
updjud.f (𝜑 → 𝐹:𝐴⟶𝐶)
updjud.g (𝜑 → 𝐺:𝐵⟶𝐶)
updjudhf.h 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))))
Assertion
Ref Expression
updjudhcoinrg (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝜑,𝑥   𝑥,𝐹   𝑥,𝐺
Allowed substitution hint:   𝐻(𝑥)

Proof of Theorem updjudhcoinrg
Dummy variable 𝑏 is distinct from all other variables.
StepHypRef Expression
1 updjud.f . . . . 5 (𝜑 → 𝐹:𝐴⟶𝐶)
2 updjud.g . . . . 5 (𝜑 → 𝐺:𝐵⟶𝐶)
3 updjudhf.h . . . . 5 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))))
41, 2, 3updjudhf 10012 . . . 4 (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶)
54ffnd 6710 . . 3 (𝜑 → 𝐻 Fn (𝐴 ⊔ 𝐵))
6 inrresf 9997 . . . 4 (inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵)
7 ffn 6709 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵) → (inr ↾ 𝐵) Fn 𝐵)
86, 7mp1i 14 . . 3 (𝜑 → (inr ↾ 𝐵) Fn 𝐵)
9 frn 6717 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵) → ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵))
106, 9mp1i 14 . . 3 (𝜑 → ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵))
11 fnco 6657 . . 3 ((𝐻 Fn (𝐴 ⊔ 𝐵) ∧ (inr ↾ 𝐵) Fn 𝐵 ∧ ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵)) → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
125, 8, 10, 11syl3anc 1398 . 2 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
132ffnd 6710 . 2 (𝜑 → 𝐺 Fn 𝐵)
14 fvco2 6982 . . . 4 (((inr ↾ 𝐵) Fn 𝐵 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
158, 14sylan 592 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
16 fvres 6904 . . . . . 6 (𝑏 ∈ 𝐵 → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
1716adantl 487 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
1817fveq2d 6889 . . . 4 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐻‘(inr‘𝑏)))
19 fveqeq2 6894 . . . . . . . 8 (𝑥 = (inr‘𝑏) → ((1st ‘𝑥) = ∅ ↔ (1st ‘(inr‘𝑏)) = ∅))
20 2fveq3 6890 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐹‘(2nd ‘𝑥)) = (𝐹‘(2nd ‘(inr‘𝑏))))
21 2fveq3 6890 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐺‘(2nd ‘𝑥)) = (𝐺‘(2nd ‘(inr‘𝑏))))
2219, 20, 21ifbieq12d 4510 . . . . . . 7 (𝑥 = (inr‘𝑏) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
2322adantl 487 . . . . . 6 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
24 1stinr 10010 . . . . . . . . . 10 (𝑏 ∈ 𝐵 → (1st ‘(inr‘𝑏)) = 1o)
25 1n0 8495 . . . . . . . . . . . 12 1o ≠ ∅
2625neii 2957 . . . . . . . . . . 11 ¬ 1o = ∅
27 eqeq1 2764 . . . . . . . . . . 11 ((1st ‘(inr‘𝑏)) = 1o → ((1st ‘(inr‘𝑏)) = ∅ ↔ 1o = ∅))
2826, 27mtbiri 330 . . . . . . . . . 10 ((1st ‘(inr‘𝑏)) = 1o → ¬ (1st ‘(inr‘𝑏)) = ∅)
2924, 28syl 18 . . . . . . . . 9 (𝑏 ∈ 𝐵 → ¬ (1st ‘(inr‘𝑏)) = ∅)
3029adantl 487 . . . . . . . 8 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3130adantr 486 . . . . . . 7 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3231iffalsed 4492 . . . . . 6 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))) = (𝐺‘(2nd ‘(inr‘𝑏))))
3323, 32eqtrd 2795 . . . . 5 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = (𝐺‘(2nd ‘(inr‘𝑏))))
34 djurcl 9992 . . . . . 6 (𝑏 ∈ 𝐵 → (inr‘𝑏) ∈ (𝐴 ⊔ 𝐵))
3534adantl 487 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (inr‘𝑏) ∈ (𝐴 ⊔ 𝐵))
362adantr 486 . . . . . 6 ((𝜑 ∧ 𝑏 ∈ 𝐵) → 𝐺:𝐵⟶𝐶)
37 2ndinr 10011 . . . . . . . 8 (𝑏 ∈ 𝐵 → (2nd ‘(inr‘𝑏)) = 𝑏)
3837adantl 487 . . . . . . 7 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (2nd ‘(inr‘𝑏)) = 𝑏)
39 simpr 490 . . . . . . 7 ((𝜑 ∧ 𝑏 ∈ 𝐵) → 𝑏 ∈ 𝐵)
4038, 39eqeltrd 2860 . . . . . 6 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (2nd ‘(inr‘𝑏)) ∈ 𝐵)
4136, 40ffvelcdmd 7085 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) ∈ 𝐶)
423, 33, 35, 41fvmptd2 7002 . . . 4 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘(inr‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
4318, 42eqtrd 2795 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
4438fveq2d 6889 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) = (𝐺‘𝑏))
4515, 43, 443eqtrd 2799 . 2 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐺‘𝑏))
4612, 13, 45eqfnfvd 7032 1 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144   ⊆ wss 3895  ∅c0 4278  ifcif 4481   ↦ cmpt 5185  ran crn 5651   ↾ cres 5652   ∘ ccom 5654   Fn wfn 6533  ⟶wf 6534  ‘cfv 6538  1st c1st 7999  2nd c2nd 8000  1oc1o 8469   ⊔ cdju 9979  inrcinr 9981
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-om 7878  df-1st 8001  df-2nd 8002  df-1o 8476  df-dju 9982  df-inr 9984
This theorem is used by:  updjud  10015
  Copyright terms: Public domain W3C validator