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

Theorem updjudhcoinrg 7058
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 7056 . . . 4 (𝜑𝐻:(𝐴𝐵)⟶𝐶)
5 ffn 5347 . . . 4 (𝐻:(𝐴𝐵)⟶𝐶𝐻 Fn (𝐴𝐵))
64, 5syl 14 . . 3 (𝜑𝐻 Fn (𝐴𝐵))
7 inrresf1 7039 . . . 4 (inr ↾ 𝐵):𝐵1-1→(𝐴𝐵)
8 f1fn 5405 . . . 4 ((inr ↾ 𝐵):𝐵1-1→(𝐴𝐵) → (inr ↾ 𝐵) Fn 𝐵)
97, 8mp1i 10 . . 3 (𝜑 → (inr ↾ 𝐵) Fn 𝐵)
10 f1f 5403 . . . . 5 ((inr ↾ 𝐵):𝐵1-1→(𝐴𝐵) → (inr ↾ 𝐵):𝐵⟶(𝐴𝐵))
117, 10ax-mp 5 . . . 4 (inr ↾ 𝐵):𝐵⟶(𝐴𝐵)
12 frn 5356 . . . 4 ((inr ↾ 𝐵):𝐵⟶(𝐴𝐵) → ran (inr ↾ 𝐵) ⊆ (𝐴𝐵))
1311, 12mp1i 10 . . 3 (𝜑 → ran (inr ↾ 𝐵) ⊆ (𝐴𝐵))
14 fnco 5306 . . 3 ((𝐻 Fn (𝐴𝐵) ∧ (inr ↾ 𝐵) Fn 𝐵 ∧ ran (inr ↾ 𝐵) ⊆ (𝐴𝐵)) → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
156, 9, 13, 14syl3anc 1233 . 2 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) Fn 𝐵)
16 ffn 5347 . . 3 (𝐺:𝐵𝐶𝐺 Fn 𝐵)
172, 16syl 14 . 2 (𝜑𝐺 Fn 𝐵)
18 fvco2 5565 . . . 4 (((inr ↾ 𝐵) Fn 𝐵𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
199, 18sylan 281 . . 3 ((𝜑𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐻‘((inr ↾ 𝐵)‘𝑏)))
20 fvres 5520 . . . . . 6 (𝑏𝐵 → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
2120adantl 275 . . . . 5 ((𝜑𝑏𝐵) → ((inr ↾ 𝐵)‘𝑏) = (inr‘𝑏))
2221fveq2d 5500 . . . 4 ((𝜑𝑏𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐻‘(inr‘𝑏)))
233a1i 9 . . . . 5 ((𝜑𝑏𝐵) → 𝐻 = (𝑥 ∈ (𝐴𝐵) ↦ if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥)))))
24 fveq2 5496 . . . . . . . . 9 (𝑥 = (inr‘𝑏) → (1st𝑥) = (1st ‘(inr‘𝑏)))
2524eqeq1d 2179 . . . . . . . 8 (𝑥 = (inr‘𝑏) → ((1st𝑥) = ∅ ↔ (1st ‘(inr‘𝑏)) = ∅))
26 fveq2 5496 . . . . . . . . 9 (𝑥 = (inr‘𝑏) → (2nd𝑥) = (2nd ‘(inr‘𝑏)))
2726fveq2d 5500 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐹‘(2nd𝑥)) = (𝐹‘(2nd ‘(inr‘𝑏))))
2826fveq2d 5500 . . . . . . . 8 (𝑥 = (inr‘𝑏) → (𝐺‘(2nd𝑥)) = (𝐺‘(2nd ‘(inr‘𝑏))))
2925, 27, 28ifbieq12d 3552 . . . . . . 7 (𝑥 = (inr‘𝑏) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
3029adantl 275 . . . . . 6 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))))
31 1stinr 7053 . . . . . . . . . 10 (𝑏𝐵 → (1st ‘(inr‘𝑏)) = 1o)
32 1n0 6411 . . . . . . . . . . . 12 1o ≠ ∅
3332neii 2342 . . . . . . . . . . 11 ¬ 1o = ∅
34 eqeq1 2177 . . . . . . . . . . 11 ((1st ‘(inr‘𝑏)) = 1o → ((1st ‘(inr‘𝑏)) = ∅ ↔ 1o = ∅))
3533, 34mtbiri 670 . . . . . . . . . 10 ((1st ‘(inr‘𝑏)) = 1o → ¬ (1st ‘(inr‘𝑏)) = ∅)
3631, 35syl 14 . . . . . . . . 9 (𝑏𝐵 → ¬ (1st ‘(inr‘𝑏)) = ∅)
3736adantl 275 . . . . . . . 8 ((𝜑𝑏𝐵) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3837adantr 274 . . . . . . 7 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → ¬ (1st ‘(inr‘𝑏)) = ∅)
3938iffalsed 3536 . . . . . 6 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st ‘(inr‘𝑏)) = ∅, (𝐹‘(2nd ‘(inr‘𝑏))), (𝐺‘(2nd ‘(inr‘𝑏)))) = (𝐺‘(2nd ‘(inr‘𝑏))))
4030, 39eqtrd 2203 . . . . 5 (((𝜑𝑏𝐵) ∧ 𝑥 = (inr‘𝑏)) → if((1st𝑥) = ∅, (𝐹‘(2nd𝑥)), (𝐺‘(2nd𝑥))) = (𝐺‘(2nd ‘(inr‘𝑏))))
41 djurcl 7029 . . . . . 6 (𝑏𝐵 → (inr‘𝑏) ∈ (𝐴𝐵))
4241adantl 275 . . . . 5 ((𝜑𝑏𝐵) → (inr‘𝑏) ∈ (𝐴𝐵))
432adantr 274 . . . . . 6 ((𝜑𝑏𝐵) → 𝐺:𝐵𝐶)
44 2ndinr 7054 . . . . . . . 8 (𝑏𝐵 → (2nd ‘(inr‘𝑏)) = 𝑏)
4544adantl 275 . . . . . . 7 ((𝜑𝑏𝐵) → (2nd ‘(inr‘𝑏)) = 𝑏)
46 simpr 109 . . . . . . 7 ((𝜑𝑏𝐵) → 𝑏𝐵)
4745, 46eqeltrd 2247 . . . . . 6 ((𝜑𝑏𝐵) → (2nd ‘(inr‘𝑏)) ∈ 𝐵)
4843, 47ffvelrnd 5632 . . . . 5 ((𝜑𝑏𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) ∈ 𝐶)
4923, 40, 42, 48fvmptd 5577 . . . 4 ((𝜑𝑏𝐵) → (𝐻‘(inr‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
5022, 49eqtrd 2203 . . 3 ((𝜑𝑏𝐵) → (𝐻‘((inr ↾ 𝐵)‘𝑏)) = (𝐺‘(2nd ‘(inr‘𝑏))))
5145fveq2d 5500 . . 3 ((𝜑𝑏𝐵) → (𝐺‘(2nd ‘(inr‘𝑏))) = (𝐺𝑏))
5219, 50, 513eqtrd 2207 . 2 ((𝜑𝑏𝐵) → ((𝐻 ∘ (inr ↾ 𝐵))‘𝑏) = (𝐺𝑏))
5315, 17, 52eqfnfvd 5596 1 (𝜑 → (𝐻 ∘ (inr ↾ 𝐵)) = 𝐺)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103   = wceq 1348  wcel 2141  wss 3121  c0 3414  ifcif 3526  cmpt 4050  ran crn 4612  cres 4613  ccom 4615   Fn wfn 5193  wf 5194  1-1wf1 5195  cfv 5198  1st c1st 6117  2nd c2nd 6118  1oc1o 6388  cdju 7014  inrcinr 7023
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418
This theorem depends on definitions:  df-bi 116  df-dc 830  df-3an 975  df-tru 1351  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-ral 2453  df-rex 2454  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-iord 4351  df-on 4353  df-suc 4356  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-1st 6119  df-2nd 6120  df-1o 6395  df-dju 7015  df-inl 7024  df-inr 7025
This theorem is referenced by:  updjud  7059
  Copyright terms: Public domain W3C validator