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

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

Proof of Theorem updjudhcoinlf
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 10068 . . . 4 (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶)
54ffnd 6758 . . 3 (𝜑 → 𝐻 Fn (𝐴 ⊔ 𝐵))
6 inlresf 10051 . . . 4 (inl ↾ 𝐴):𝐴⟶(𝐴 ⊔ 𝐵)
7 ffn 6757 . . . 4 ((inl ↾ 𝐴):𝐴⟶(𝐴 ⊔ 𝐵) → (inl ↾ 𝐴) Fn 𝐴)
86, 7mp1i 14 . . 3 (𝜑 → (inl ↾ 𝐴) Fn 𝐴)
9 frn 6765 . . . 4 ((inl ↾ 𝐴):𝐴⟶(𝐴 ⊔ 𝐵) → ran (inl ↾ 𝐴) ⊆ (𝐴 ⊔ 𝐵))
106, 9mp1i 14 . . 3 (𝜑 → ran (inl ↾ 𝐴) ⊆ (𝐴 ⊔ 𝐵))
11 fnco 6703 . . 3 ((𝐻 Fn (𝐴 ⊔ 𝐵) ∧ (inl ↾ 𝐴) Fn 𝐴 ∧ ran (inl ↾ 𝐴) ⊆ (𝐴 ⊔ 𝐵)) → (𝐻 ∘ (inl ↾ 𝐴)) Fn 𝐴)
125, 8, 10, 11syl3anc 1401 . 2 (𝜑 → (𝐻 ∘ (inl ↾ 𝐴)) Fn 𝐴)
131ffnd 6758 . 2 (𝜑 → 𝐹 Fn 𝐴)
14 fvco2 7031 . . . 4 (((inl ↾ 𝐴) Fn 𝐴 ∧ 𝑎 ∈ 𝐴) → ((𝐻 ∘ (inl ↾ 𝐴))‘𝑎) = (𝐻‘((inl ↾ 𝐴)‘𝑎)))
158, 14sylan 592 . . 3 ((𝜑 ∧ 𝑎 ∈ 𝐴) → ((𝐻 ∘ (inl ↾ 𝐴))‘𝑎) = (𝐻‘((inl ↾ 𝐴)‘𝑎)))
16 fvres 6953 . . . . . 6 (𝑎 ∈ 𝐴 → ((inl ↾ 𝐴)‘𝑎) = (inl‘𝑎))
1716adantl 487 . . . . 5 ((𝜑 ∧ 𝑎 ∈ 𝐴) → ((inl ↾ 𝐴)‘𝑎) = (inl‘𝑎))
1817fveq2d 6938 . . . 4 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (𝐻‘((inl ↾ 𝐴)‘𝑎)) = (𝐻‘(inl‘𝑎)))
19 fveqeq2 6943 . . . . . . . 8 (𝑥 = (inl‘𝑎) → ((1st ‘𝑥) = ∅ ↔ (1st ‘(inl‘𝑎)) = ∅))
20 2fveq3 6939 . . . . . . . 8 (𝑥 = (inl‘𝑎) → (𝐹‘(2nd ‘𝑥)) = (𝐹‘(2nd ‘(inl‘𝑎))))
21 2fveq3 6939 . . . . . . . 8 (𝑥 = (inl‘𝑎) → (𝐺‘(2nd ‘𝑥)) = (𝐺‘(2nd ‘(inl‘𝑎))))
2219, 20, 21ifbieq12d 4521 . . . . . . 7 (𝑥 = (inl‘𝑎) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inl‘𝑎)) = ∅, (𝐹‘(2nd ‘(inl‘𝑎))), (𝐺‘(2nd ‘(inl‘𝑎)))))
2322adantl 487 . . . . . 6 (((𝜑 ∧ 𝑎 ∈ 𝐴) ∧ 𝑥 = (inl‘𝑎)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inl‘𝑎)) = ∅, (𝐹‘(2nd ‘(inl‘𝑎))), (𝐺‘(2nd ‘(inl‘𝑎)))))
24 1stinl 10064 . . . . . . . . 9 (𝑎 ∈ 𝐴 → (1st ‘(inl‘𝑎)) = ∅)
2524adantl 487 . . . . . . . 8 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (1st ‘(inl‘𝑎)) = ∅)
2625adantr 486 . . . . . . 7 (((𝜑 ∧ 𝑎 ∈ 𝐴) ∧ 𝑥 = (inl‘𝑎)) → (1st ‘(inl‘𝑎)) = ∅)
2726iftrued 4500 . . . . . 6 (((𝜑 ∧ 𝑎 ∈ 𝐴) ∧ 𝑥 = (inl‘𝑎)) → if((1st ‘(inl‘𝑎)) = ∅, (𝐹‘(2nd ‘(inl‘𝑎))), (𝐺‘(2nd ‘(inl‘𝑎)))) = (𝐹‘(2nd ‘(inl‘𝑎))))
2823, 27eqtrd 2809 . . . . 5 (((𝜑 ∧ 𝑎 ∈ 𝐴) ∧ 𝑥 = (inl‘𝑎)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = (𝐹‘(2nd ‘(inl‘𝑎))))
29 djulcl 10047 . . . . . 6 (𝑎 ∈ 𝐴 → (inl‘𝑎) ∈ (𝐴 ⊔ 𝐵))
3029adantl 487 . . . . 5 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (inl‘𝑎) ∈ (𝐴 ⊔ 𝐵))
311adantr 486 . . . . . 6 ((𝜑 ∧ 𝑎 ∈ 𝐴) → 𝐹:𝐴⟶𝐶)
32 2ndinl 10065 . . . . . . . 8 (𝑎 ∈ 𝐴 → (2nd ‘(inl‘𝑎)) = 𝑎)
3332adantl 487 . . . . . . 7 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (2nd ‘(inl‘𝑎)) = 𝑎)
34 simpr 490 . . . . . . 7 ((𝜑 ∧ 𝑎 ∈ 𝐴) → 𝑎 ∈ 𝐴)
3533, 34eqeltrd 2875 . . . . . 6 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (2nd ‘(inl‘𝑎)) ∈ 𝐴)
3631, 35ffvelcdmd 7135 . . . . 5 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (𝐹‘(2nd ‘(inl‘𝑎))) ∈ 𝐶)
373, 28, 30, 36fvmptd2 7051 . . . 4 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (𝐻‘(inl‘𝑎)) = (𝐹‘(2nd ‘(inl‘𝑎))))
3818, 37eqtrd 2809 . . 3 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (𝐻‘((inl ↾ 𝐴)‘𝑎)) = (𝐹‘(2nd ‘(inl‘𝑎))))
3933fveq2d 6938 . . 3 ((𝜑 ∧ 𝑎 ∈ 𝐴) → (𝐹‘(2nd ‘(inl‘𝑎))) = (𝐹‘𝑎))
4015, 38, 393eqtrd 2813 . 2 ((𝜑 ∧ 𝑎 ∈ 𝐴) → ((𝐻 ∘ (inl ↾ 𝐴))‘𝑎) = (𝐹‘𝑎))
4112, 13, 40eqfnfvd 7081 1 (𝜑 → (𝐻 ∘ (inl ↾ 𝐴)) = 𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1572   ∈ wcel 2156   ⊆ wss 3907  ∅c0 4288  ifcif 4492   ↦ cmpt 5200  ran crn 5667   ↾ cres 5668   ∘ ccom 5670   Fn wfn 6574  ⟶wf 6575  ‘cfv 6579  1st c1st 8052  2nd c2nd 8053   ⊔ cdju 10035  inlcinl 10036
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-10 2189  ax-11 2206  ax-12 2225  ax-ext 2746  ax-sep 5263  ax-nul 5274  ax-pr 5406  ax-un 7802
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1819  df-nf 1823  df-sb 2110  df-mo 2576  df-eu 2606  df-clab 2753  df-cleq 2766  df-clel 2850  df-nfc 2924  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-sbc 3750  df-csb 3859  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-br 5117  df-opab 5182  df-mpt 5201  df-id 5561  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-suc 6407  df-iota 6533  df-fun 6581  df-fn 6582  df-f 6583  df-f1 6584  df-fo 6585  df-f1o 6586  df-fv 6587  df-1st 8054  df-2nd 8055  df-1o 8533  df-dju 10038  df-inl 10039
This theorem is used by:  updjud  10071
  Copyright terms: Public domain W3C validator