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

Theorem tgjustr 26254
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 8307 . . . . . . 7 (𝑅 Er 𝐴 → (𝐴𝑉𝑅 ∈ V))
21impcom 410 . . . . . 6 ((𝐴𝑉𝑅 Er 𝐴) → 𝑅 ∈ V)
3 ecexg 8287 . . . . . 6 (𝑅 ∈ V → [𝑢]𝑅 ∈ V)
42, 3syl 17 . . . . 5 ((𝐴𝑉𝑅 Er 𝐴) → [𝑢]𝑅 ∈ V)
54adantr 483 . . . 4 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑢𝐴) → [𝑢]𝑅 ∈ V)
65ralrimiva 3182 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑢𝐴 [𝑢]𝑅 ∈ V)
7 eqid 2821 . . . 4 (𝑢𝐴 ↦ [𝑢]𝑅) = (𝑢𝐴 ↦ [𝑢]𝑅)
87fnmpt 6483 . . 3 (∀𝑢𝐴 [𝑢]𝑅 ∈ V → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
96, 8syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴)
10 simpllr 774 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑅 Er 𝐴)
11 simpr 487 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → 𝑥𝐴)
1211adantr 483 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → 𝑥𝐴)
1310, 12erth 8332 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ [𝑥]𝑅 = [𝑦]𝑅))
14 eceq1 8321 . . . . . . . 8 (𝑢 = 𝑥 → [𝑢]𝑅 = [𝑥]𝑅)
15 ecelqsg 8346 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
162, 15sylan 582 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → [𝑥]𝑅 ∈ (𝐴 / 𝑅))
177, 14, 11, 16fvmptd3 6786 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
1817adantr 483 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = [𝑥]𝑅)
19 eceq1 8321 . . . . . . . 8 (𝑢 = 𝑦 → [𝑢]𝑅 = [𝑦]𝑅)
20 simpr 487 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → 𝑦𝐴)
21 ecelqsg 8346 . . . . . . . . 9 ((𝑅 ∈ V ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
222, 21sylan 582 . . . . . . . 8 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → [𝑦]𝑅 ∈ (𝐴 / 𝑅))
237, 19, 20, 22fvmptd3 6786 . . . . . . 7 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2423adantlr 713 . . . . . 6 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) = [𝑦]𝑅)
2518, 24eqeq12d 2837 . . . . 5 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦) ↔ [𝑥]𝑅 = [𝑦]𝑅))
2613, 25bitr4d 284 . . . 4 ((((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) ∧ 𝑦𝐴) → (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2726ralrimiva 3182 . . 3 (((𝐴𝑉𝑅 Er 𝐴) ∧ 𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
2827ralrimiva 3182 . 2 ((𝐴𝑉𝑅 Er 𝐴) → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
29 mptexg 6978 . . . 4 (𝐴𝑉 → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
3029adantr 483 . . 3 ((𝐴𝑉𝑅 Er 𝐴) → (𝑢𝐴 ↦ [𝑢]𝑅) ∈ V)
31 fneq1 6439 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (𝑓 Fn 𝐴 ↔ (𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴))
32 simpl 485 . . . . . . . . 9 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → 𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅))
3332fveq1d 6667 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥))
3432fveq1d 6667 . . . . . . . 8 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → (𝑓𝑦) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))
3533, 34eqeq12d 2837 . . . . . . 7 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑓𝑥) = (𝑓𝑦) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))
3635bibi2d 345 . . . . . 6 ((𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
37362ralbidva 3198 . . . . 5 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → (∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)) ↔ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))))
3831, 37anbi12d 632 . . . 4 (𝑓 = (𝑢𝐴 ↦ [𝑢]𝑅) → ((𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))) ↔ ((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦)))))
3938spcegv 3597 . . 3 ((𝑢𝐴 ↦ [𝑢]𝑅) ∈ V → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
4030, 39syl 17 . 2 ((𝐴𝑉𝑅 Er 𝐴) → (((𝑢𝐴 ↦ [𝑢]𝑅) Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑥) = ((𝑢𝐴 ↦ [𝑢]𝑅)‘𝑦))) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦)))))
419, 28, 40mp2and 697 1 ((𝐴𝑉𝑅 Er 𝐴) → ∃𝑓(𝑓 Fn 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝑓𝑥) = (𝑓𝑦))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wex 1776  wcel 2110  wral 3138  Vcvv 3495   class class class wbr 5059  cmpt 5139   Fn wfn 6345  cfv 6350   Er wer 8280  [cec 8281   / cqs 8282
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2156  ax-12 2172  ax-ext 2793  ax-rep 5183  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5322  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-reu 3145  df-rab 3147  df-v 3497  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-pw 4541  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4833  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5455  df-xp 5556  df-rel 5557  df-cnv 5558  df-co 5559  df-dm 5560  df-rn 5561  df-res 5562  df-ima 5563  df-iota 6309  df-fun 6352  df-fn 6353  df-f 6354  df-f1 6355  df-fo 6356  df-f1o 6357  df-fv 6358  df-er 8283  df-ec 8285  df-qs 8289
This theorem is referenced by:  tgjustc2  26256
  Copyright terms: Public domain W3C validator