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

Theorem tgjustf 26738
Description: Given any function 𝐹, equality of the image by 𝐹 is an equivalence relation. (Contributed by Thierry Arnoux, 25-Jan-2023.)
Assertion
Ref Expression
tgjustf (𝐴𝑉 → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
Distinct variable groups:   𝐴,𝑟,𝑥,𝑦   𝐹,𝑟,𝑥,𝑦
Allowed substitution hints:   𝑉(𝑥,𝑦,𝑟)

Proof of Theorem tgjustf
Dummy variables 𝑢 𝑣 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 relopabv 5720 . . 3 Rel {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}
2 ancom 460 . . . . . 6 ((𝑥𝐴𝑦𝐴) ↔ (𝑦𝐴𝑥𝐴))
3 eqcom 2745 . . . . . 6 ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑦) = (𝐹𝑥))
42, 3anbi12i 626 . . . . 5 (((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ↔ ((𝑦𝐴𝑥𝐴) ∧ (𝐹𝑦) = (𝐹𝑥)))
5 simpl 482 . . . . . . . 8 ((𝑢 = 𝑥𝑣 = 𝑦) → 𝑢 = 𝑥)
65fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑦) → (𝐹𝑢) = (𝐹𝑥))
7 simpr 484 . . . . . . . 8 ((𝑢 = 𝑥𝑣 = 𝑦) → 𝑣 = 𝑦)
87fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑦) → (𝐹𝑣) = (𝐹𝑦))
96, 8eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑦) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑦)))
10 eqid 2738 . . . . . 6 {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}
119, 10brab2a 5670 . . . . 5 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ ((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)))
12 simpl 482 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑥) → 𝑢 = 𝑦)
1312fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑥) → (𝐹𝑢) = (𝐹𝑦))
14 simpr 484 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑥) → 𝑣 = 𝑥)
1514fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑥) → (𝐹𝑣) = (𝐹𝑥))
1613, 15eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑦𝑣 = 𝑥) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑦) = (𝐹𝑥)))
1716, 10brab2a 5670 . . . . 5 (𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥 ↔ ((𝑦𝐴𝑥𝐴) ∧ (𝐹𝑦) = (𝐹𝑥)))
184, 11, 173bitr4i 302 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
1918biimpi 215 . . 3 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
20 simplll 771 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → 𝑥𝐴)
21 simprlr 776 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → 𝑧𝐴)
22 simplr 765 . . . . . 6 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑥) = (𝐹𝑦))
23 simprr 769 . . . . . 6 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑦) = (𝐹𝑧))
2422, 23eqtrd 2778 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑥) = (𝐹𝑧))
2520, 21, 24jca31 514 . . . 4 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → ((𝑥𝐴𝑧𝐴) ∧ (𝐹𝑥) = (𝐹𝑧)))
26 simpl 482 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑧) → 𝑢 = 𝑦)
2726fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑧) → (𝐹𝑢) = (𝐹𝑦))
28 simpr 484 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑧) → 𝑣 = 𝑧)
2928fveq2d 6760 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑧) → (𝐹𝑣) = (𝐹𝑧))
3027, 29eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑦𝑣 = 𝑧) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑦) = (𝐹𝑧)))
3130, 10brab2a 5670 . . . . 5 (𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧 ↔ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧)))
3211, 31anbi12i 626 . . . 4 ((𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧) ↔ (((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))))
33 simpl 482 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑧) → 𝑢 = 𝑥)
3433fveq2d 6760 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑧) → (𝐹𝑢) = (𝐹𝑥))
35 simpr 484 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑧) → 𝑣 = 𝑧)
3635fveq2d 6760 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑧) → (𝐹𝑣) = (𝐹𝑧))
3734, 36eqeq12d 2754 . . . . 5 ((𝑢 = 𝑥𝑣 = 𝑧) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑧)))
3837, 10brab2a 5670 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧 ↔ ((𝑥𝐴𝑧𝐴) ∧ (𝐹𝑥) = (𝐹𝑧)))
3925, 32, 383imtr4i 291 . . 3 ((𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧) → 𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧)
40 eqid 2738 . . . . 5 (𝐹𝑥) = (𝐹𝑥)
4140biantru 529 . . . 4 ((𝑥𝐴𝑥𝐴) ↔ ((𝑥𝐴𝑥𝐴) ∧ (𝐹𝑥) = (𝐹𝑥)))
42 pm4.24 563 . . . 4 (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐴))
43 simpl 482 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑥) → 𝑢 = 𝑥)
4443fveq2d 6760 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑥) → (𝐹𝑢) = (𝐹𝑥))
45 simpr 484 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑥) → 𝑣 = 𝑥)
4645fveq2d 6760 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑥) → (𝐹𝑣) = (𝐹𝑥))
4744, 46eqeq12d 2754 . . . . 5 ((𝑢 = 𝑥𝑣 = 𝑥) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑥)))
4847, 10brab2a 5670 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥 ↔ ((𝑥𝐴𝑥𝐴) ∧ (𝐹𝑥) = (𝐹𝑥)))
4941, 42, 483bitr4i 302 . . 3 (𝑥𝐴𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
501, 19, 39, 49iseri 8483 . 2 {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴
5111baib 535 . . 3 ((𝑥𝐴𝑦𝐴) → (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))
5251rgen2 3126 . 2 𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))
53 id 22 . . . 4 (𝐴𝑉𝐴𝑉)
54 simprll 775 . . . 4 ((𝐴𝑉 ∧ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))) → 𝑢𝐴)
55 simprlr 776 . . . 4 ((𝐴𝑉 ∧ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))) → 𝑣𝐴)
5653, 53, 54, 55opabex2 7870 . . 3 (𝐴𝑉 → {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∈ V)
57 ereq1 8463 . . . . 5 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → (𝑟 Er 𝐴 ↔ {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴))
58 simpl 482 . . . . . . . 8 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → 𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))})
5958breqd 5081 . . . . . . 7 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝑟𝑦𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦))
6059bibi1d 343 . . . . . 6 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)) ↔ (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
61602ralbidva 3121 . . . . 5 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → (∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)) ↔ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
6257, 61anbi12d 630 . . . 4 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → ((𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) ↔ ({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6362spcegv 3526 . . 3 ({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∈ V → (({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6456, 63syl 17 . 2 (𝐴𝑉 → (({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6550, 52, 64mp2ani 694 1 (𝐴𝑉 → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
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  {copab 5132  cfv 6418   Er wer 8453
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-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-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  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-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fv 6426  df-er 8456
This theorem is referenced by:  tgjustc1  26740
  Copyright terms: Public domain W3C validator