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

Theorem updjudhcoinrg 7433
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 7431 . . . 4 (𝜑 → 𝐻:(𝐴 ⊔ 𝐵)⟶𝐶)
5 ffn 5540 . . . 4 (𝐻:(𝐴 ⊔ 𝐵)⟶𝐶 → 𝐻 Fn (𝐴 ⊔ 𝐵))
64, 5syl 14 . . 3 (𝜑 → 𝐻 Fn (𝐴 ⊔ 𝐵))
7 inrresf1 7414 . . . 4 (inr ↾ 𝐵):𝐵–1-1→(𝐴 ⊔ 𝐵)
8 f1fn 5607 . . . 4 ((inr ↾ 𝐵):𝐵–1-1→(𝐴 ⊔ 𝐵) → (inr ↾ 𝐵) Fn 𝐵)
97, 8mp1i 10 . . 3 (𝜑 → (inr ↾ 𝐵) Fn 𝐵)
10 f1f 5605 . . . . 5 ((inr ↾ 𝐵):𝐵–1-1→(𝐴 ⊔ 𝐵) → (inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵))
117, 10ax-mp 5 . . . 4 (inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵)
12 frn 5549 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴 ⊔ 𝐵) → ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵))
1311, 12mp1i 10 . . 3 (𝜑 → ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵))
14 fnco 5498 . . 3 ((𝐻 Fn (𝐴 ⊔ 𝐵) ∧ (inr ↾ 𝐵) Fn 𝐵 ∧ ran (inr ↾ 𝐵) ⊆ (𝐴 ⊔ 𝐵)) → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
156, 9, 13, 14syl3anc 1278 . 2 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
16 ffn 5540 . . 3 (𝐺:𝐵⟶𝐶 → 𝐺 Fn 𝐵)
172, 16syl 14 . 2 (𝜑 → 𝐺 Fn 𝐵)
18 fvco2 5781 . . . 4 (((inr ↾ 𝐵) Fn 𝐵 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
199, 18sylan 283 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
20 fvres 5726 . . . . . 6 (𝑏 ∈ 𝐵 → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
2120adantl 277 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
2221fveq2d 5706 . . . 4 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐻‘(inr‘𝑏)))
233a1i 9 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → 𝐻 = (𝑥 ∈ (𝐴 ⊔ 𝐵) ↦ if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥)))))
24 fveq2 5702 . . . . . . . . 9 (𝑥 = (inr‘𝑏) → (1st ‘𝑥) = (1st ‘(inr‘𝑏)))
2524eqeq1d 2247 . . . . . . . 8 (𝑥 = (inr‘𝑏) → ((1st ‘𝑥) = ∅ ↔ (1st ‘(inr‘𝑏)) = ∅))
26 fveq2 5702 . . . . . . . . 9 (𝑥 = (inr‘𝑏) → (2nd ‘𝑥) = (2nd ‘(inr‘𝑏)))
2726fveq2d 5706 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐹‘(2nd ‘𝑥)) = (𝐹‘(2nd ‘(inr‘𝑏))))
2826fveq2d 5706 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐺‘(2nd ‘𝑥)) = (𝐺‘(2nd ‘(inr‘𝑏))))
2925, 27, 28ifbieq12d 3667 . . . . . . 7 (𝑥 = (inr‘𝑏) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
3029adantl 277 . . . . . 6 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
31 1stinr 7428 . . . . . . . . . 10 (𝑏 ∈ 𝐵 → (1st ‘(inr‘𝑏)) = 1o)
32 1n0 6715 . . . . . . . . . . . 12 1o ≠ ∅
3332neii 2422 . . . . . . . . . . 11 ¬ 1o = ∅
34 eqeq1 2245 . . . . . . . . . . 11 ((1st ‘(inr‘𝑏)) = 1o → ((1st ‘(inr‘𝑏)) = ∅ ↔ 1o = ∅))
3533, 34mtbiri 686 . . . . . . . . . 10 ((1st ‘(inr‘𝑏)) = 1o → ¬ (1st ‘(inr‘𝑏)) = ∅)
3631, 35syl 14 . . . . . . . . 9 (𝑏 ∈ 𝐵 → ¬ (1st ‘(inr‘𝑏)) = ∅)
3736adantl 277 . . . . . . . 8 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3837adantr 276 . . . . . . 7 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3938iffalsed 3650 . . . . . 6 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))) = (𝐺‘(2nd ‘(inr‘𝑏))))
4030, 39eqtrd 2271 . . . . 5 (((𝜑 ∧ 𝑏 ∈ 𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘𝑥) = ∅, (𝐹‘(2nd ‘𝑥)), (𝐺‘(2nd ‘𝑥))) = (𝐺‘(2nd ‘(inr‘𝑏))))
41 djurcl 7404 . . . . . 6 (𝑏 ∈ 𝐵 → (inr‘𝑏) ∈ (𝐴 ⊔ 𝐵))
4241adantl 277 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (inr‘𝑏) ∈ (𝐴 ⊔ 𝐵))
432adantr 276 . . . . . 6 ((𝜑 ∧ 𝑏 ∈ 𝐵) → 𝐺:𝐵⟶𝐶)
44 2ndinr 7429 . . . . . . . 8 (𝑏 ∈ 𝐵 → (2nd ‘(inr‘𝑏)) = 𝑏)
4544adantl 277 . . . . . . 7 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (2nd ‘(inr‘𝑏)) = 𝑏)
46 simpr 110 . . . . . . 7 ((𝜑 ∧ 𝑏 ∈ 𝐵) → 𝑏 ∈ 𝐵)
4745, 46eqeltrd 2315 . . . . . 6 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (2nd ‘(inr‘𝑏)) ∈ 𝐵)
4843, 47ffvelcdmd 5851 . . . . 5 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) ∈ 𝐶)
4923, 40, 42, 48fvmptd 5793 . . . 4 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘(inr‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
5022, 49eqtrd 2271 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
5145fveq2d 5706 . . 3 ((𝜑 ∧ 𝑏 ∈ 𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) = (𝐺‘𝑏))
5219, 50, 513eqtrd 2275 . 2 ((𝜑 ∧ 𝑏 ∈ 𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐺‘𝑏))
5315, 17, 52eqfnfvd 5816 1 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   = wceq 1402   ∈ wcel 2209   ⊆ wss 3220  ∅c0 3520  ifcif 3638   ↦ cmpt 4193  ran crn 4777   ↾ cres 4778   ∘ ccom 4780   Fn wfn 5379  ⟶wf 5380  –1-1→wf1 5381  ‘cfv 5384  1st c1st 6380  2nd c2nd 6381  1oc1o 6690   ⊔ cdju 7389  inrcinr 7398
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 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580
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 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-iord 4513  df-on 4515  df-suc 4518  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5344  df-fun 5386  df-fn 5387  df-f 5388  df-f1 5389  df-fo 5390  df-f1o 5391  df-fv 5392  df-1st 6382  df-2nd 6383  df-1o 6697  df-dju 7390  df-inl 7399  df-inr 7400
This theorem is used by:  updjud  7434
  Copyright terms: Public domain W3C validator