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

Theorem tgjustr 26519
Description: Given any equivalence relation 𝑅, one can define a function 𝑓 such that all elements of an equivalence classe of 𝑅 have the same image by 𝑓. (Contributed by Thierry Arnoux, 25-Jan-2023.)
Assertion
Ref Expression
tgjustr ((𝐴𝑉𝑅 Er 𝐴) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))))
Distinct variable groups:   𝐴,𝑓,𝑥,𝑦   𝑅,𝑓,𝑥,𝑦   𝑥,𝑉,𝑦
Allowed substitution hint:   𝑉(𝑓)

Proof of Theorem tgjustr
Dummy variable 𝑢 is distinct from all other variables.
StepHypRef Expression
1 erex 8393 . . . . . . 7 (𝑅 Er 𝐴 → (𝐴𝑉𝑅 ∈ V))
21impcom 411 . . . . . 6 ((𝐴𝑉𝑅 Er 𝐴) → 𝑅 ∈ V)
3 ecexg 8373 . . . . . 6 (𝑅 ∈ V → [𝑢]𝑅 ∈ V)
42, 3syl 17 . . . . 5 ((𝐴𝑉𝑅 Er 𝐴) → [𝑢]𝑅 ∈ V)
54adantr 484 . . . 4 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑢𝐴) → [𝑢]𝑅 ∈ V)
65ralrimiva 3095 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑢𝐴 [𝑢]𝑅 ∈ V)
7 eqid 2736 . . . 4 (𝑢𝐴 ↦ [𝑢]𝑅) = (𝑢𝐴 ↦ [𝑢]𝑅)
87fnmpt 6496 . . 3 (∀𝑢𝐴 [𝑢]𝑅 ∈ V → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
96, 8syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
10 simpllr 776 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑅 Er 𝐴)
11 simpr 488 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → 𝑥𝐴)
1211adantr 484 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑥𝐴)
1310, 12erth 8418 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ [𝑥]𝑅 = [𝑦]𝑅))
14 eceq1 8407 . . . . . . . 8 (𝑢 = 𝑥 → [𝑢]𝑅 = [𝑥]𝑅)
15 ecelqsg 8432 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
162, 15sylan 583 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
177, 14, 11, 16fvmptd3 6819 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
1817adantr 484 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
19 eceq1 8407 . . . . . . . 8 (𝑢 = 𝑦 → [𝑢]𝑅 = [𝑦]𝑅)
20 simpr 488 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → 𝑦𝐴)
21 ecelqsg 8432 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
222, 21sylan 583 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
237, 19, 20, 22fvmptd3 6819 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2423adantlr 715 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2518, 24eqeq12d 2752 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) ↔ [𝑥]𝑅 = [𝑦]𝑅))
2613, 25bitr4d 285 . . . 4 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2726ralrimiva 3095 . . 3 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2827ralrimiva 3095 . 2 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
29 mptexg 7015 . . . 4 (𝐴𝑉 → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
3029adantr 484 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
31 fneq1 6448 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (𝑓 Fn 𝐴 ↔ (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴))
32 simpl 486 . . . . . . . . 9 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → 𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅))
3332fveq1d 6697 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥))
3432fveq1d 6697 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑦) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))
3533, 34eqeq12d 2752 . . . . . . 7 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑓𝑥) = (𝑓𝑦) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
3635bibi2d 346 . . . . . 6 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
37362ralbidva 3109 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
3831, 37anbi12d 634 . . . 4 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → ((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))))
3938spcegv 3502 . . 3 ((𝑢𝐴 ↦ [𝑢]𝑅) ∈ V → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
4030, 39syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
419, 28, 40mp2and 699 1 ((𝐴𝑉𝑅 Er 𝐴) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1543  wex 1787  wcel 2112  wral 3051  Vcvv 3398   class class class wbr 5039  cmpt 5120   Fn wfn 6353  cfv 6358   Er wer 8366  [cec 8367   / cqs 8368
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-rep 5164  ax-sep 5177  ax-nul 5184  ax-pow 5243  ax-pr 5307  ax-un 7501
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-ne 2933  df-ral 3056  df-rex 3057  df-reu 3058  df-rab 3060  df-v 3400  df-sbc 3684  df-csb 3799  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-nul 4224  df-if 4426  df-pw 4501  df-sn 4528  df-pr 4530  df-op 4534  df-uni 4806  df-iun 4892  df-br 5040  df-opab 5102  df-mpt 5121  df-id 5440  df-xp 5542  df-rel 5543  df-cnv 5544  df-co 5545  df-dm 5546  df-rn 5547  df-res 5548  df-ima 5549  df-iota 6316  df-fun 6360  df-fn 6361  df-f 6362  df-f1 6363  df-fo 6364  df-f1o 6365  df-fv 6366  df-er 8369  df-ec 8371  df-qs 8375
This theorem is referenced by:  tgjustc2  26521
  Copyright terms: Public domain W3C validator