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

Theorem tgjustr 26739
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 8480 . . . . . . 7 (𝑅 Er 𝐴 → (𝐴𝑉𝑅 ∈ V))
21impcom 407 . . . . . 6 ((𝐴𝑉𝑅 Er 𝐴) → 𝑅 ∈ V)
3 ecexg 8460 . . . . . 6 (𝑅 ∈ V → [𝑢]𝑅 ∈ V)
42, 3syl 17 . . . . 5 ((𝐴𝑉𝑅 Er 𝐴) → [𝑢]𝑅 ∈ V)
54adantr 480 . . . 4 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑢𝐴) → [𝑢]𝑅 ∈ V)
65ralrimiva 3107 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑢𝐴 [𝑢]𝑅 ∈ V)
7 eqid 2738 . . . 4 (𝑢𝐴 ↦ [𝑢]𝑅) = (𝑢𝐴 ↦ [𝑢]𝑅)
87fnmpt 6557 . . 3 (∀𝑢𝐴 [𝑢]𝑅 ∈ V → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
96, 8syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
10 simpllr 772 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑅 Er 𝐴)
11 simpr 484 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → 𝑥𝐴)
1211adantr 480 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑥𝐴)
1310, 12erth 8505 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ [𝑥]𝑅 = [𝑦]𝑅))
14 eceq1 8494 . . . . . . . 8 (𝑢 = 𝑥 → [𝑢]𝑅 = [𝑥]𝑅)
15 ecelqsg 8519 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
162, 15sylan 579 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
177, 14, 11, 16fvmptd3 6880 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
1817adantr 480 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
19 eceq1 8494 . . . . . . . 8 (𝑢 = 𝑦 → [𝑢]𝑅 = [𝑦]𝑅)
20 simpr 484 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → 𝑦𝐴)
21 ecelqsg 8519 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
222, 21sylan 579 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
237, 19, 20, 22fvmptd3 6880 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2423adantlr 711 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2518, 24eqeq12d 2754 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) ↔ [𝑥]𝑅 = [𝑦]𝑅))
2613, 25bitr4d 281 . . . 4 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2726ralrimiva 3107 . . 3 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2827ralrimiva 3107 . 2 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
29 mptexg 7079 . . . 4 (𝐴𝑉 → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
3029adantr 480 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
31 fneq1 6508 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (𝑓 Fn 𝐴 ↔ (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴))
32 simpl 482 . . . . . . . . 9 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → 𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅))
3332fveq1d 6758 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥))
3432fveq1d 6758 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑦) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))
3533, 34eqeq12d 2754 . . . . . . 7 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑓𝑥) = (𝑓𝑦) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
3635bibi2d 342 . . . . . 6 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
37362ralbidva 3121 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
3831, 37anbi12d 630 . . . 4 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → ((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))))
3938spcegv 3526 . . 3 ((𝑢𝐴 ↦ [𝑢]𝑅) ∈ V → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
4030, 39syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
419, 28, 40mp2and 695 1 ((𝐴𝑉𝑅 Er 𝐴) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  wral 3063  Vcvv 3422   class class class wbr 5070  cmpt 5153   Fn wfn 6413  cfv 6418   Er wer 8453  [cec 8454   / cqs 8455
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-er 8456  df-ec 8458  df-qs 8462
This theorem is referenced by:  tgjustc2  26741
  Copyright terms: Public domain W3C validator