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

Theorem tgjustf 26834
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 5731 . . 3 Rel {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}
2 ancom 461 . . . . . 6 ((𝑥𝐴𝑦𝐴) ↔ (𝑦𝐴𝑥𝐴))
3 eqcom 2745 . . . . . 6 ((𝐹𝑥) = (𝐹𝑦) ↔ (𝐹𝑦) = (𝐹𝑥))
42, 3anbi12i 627 . . . . 5 (((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ↔ ((𝑦𝐴𝑥𝐴) ∧ (𝐹𝑦) = (𝐹𝑥)))
5 simpl 483 . . . . . . . 8 ((𝑢 = 𝑥𝑣 = 𝑦) → 𝑢 = 𝑥)
65fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑦) → (𝐹𝑢) = (𝐹𝑥))
7 simpr 485 . . . . . . . 8 ((𝑢 = 𝑥𝑣 = 𝑦) → 𝑣 = 𝑦)
87fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑦) → (𝐹𝑣) = (𝐹𝑦))
96, 8eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑦) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑦)))
10 eqid 2738 . . . . . 6 {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}
119, 10brab2a 5680 . . . . 5 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ ((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)))
12 simpl 483 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑥) → 𝑢 = 𝑦)
1312fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑥) → (𝐹𝑢) = (𝐹𝑦))
14 simpr 485 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑥) → 𝑣 = 𝑥)
1514fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑥) → (𝐹𝑣) = (𝐹𝑥))
1613, 15eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑦𝑣 = 𝑥) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑦) = (𝐹𝑥)))
1716, 10brab2a 5680 . . . . 5 (𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥 ↔ ((𝑦𝐴𝑥𝐴) ∧ (𝐹𝑦) = (𝐹𝑥)))
184, 11, 173bitr4i 303 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
1918biimpi 215 . . 3 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
20 simplll 772 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → 𝑥𝐴)
21 simprlr 777 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → 𝑧𝐴)
22 simplr 766 . . . . . 6 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑥) = (𝐹𝑦))
23 simprr 770 . . . . . 6 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑦) = (𝐹𝑧))
2422, 23eqtrd 2778 . . . . 5 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → (𝐹𝑥) = (𝐹𝑧))
2520, 21, 24jca31 515 . . . 4 ((((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))) → ((𝑥𝐴𝑧𝐴) ∧ (𝐹𝑥) = (𝐹𝑧)))
26 simpl 483 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑧) → 𝑢 = 𝑦)
2726fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑧) → (𝐹𝑢) = (𝐹𝑦))
28 simpr 485 . . . . . . . 8 ((𝑢 = 𝑦𝑣 = 𝑧) → 𝑣 = 𝑧)
2928fveq2d 6778 . . . . . . 7 ((𝑢 = 𝑦𝑣 = 𝑧) → (𝐹𝑣) = (𝐹𝑧))
3027, 29eqeq12d 2754 . . . . . 6 ((𝑢 = 𝑦𝑣 = 𝑧) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑦) = (𝐹𝑧)))
3130, 10brab2a 5680 . . . . 5 (𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧 ↔ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧)))
3211, 31anbi12i 627 . . . 4 ((𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧) ↔ (((𝑥𝐴𝑦𝐴) ∧ (𝐹𝑥) = (𝐹𝑦)) ∧ ((𝑦𝐴𝑧𝐴) ∧ (𝐹𝑦) = (𝐹𝑧))))
33 simpl 483 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑧) → 𝑢 = 𝑥)
3433fveq2d 6778 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑧) → (𝐹𝑢) = (𝐹𝑥))
35 simpr 485 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑧) → 𝑣 = 𝑧)
3635fveq2d 6778 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑧) → (𝐹𝑣) = (𝐹𝑧))
3734, 36eqeq12d 2754 . . . . 5 ((𝑢 = 𝑥𝑣 = 𝑧) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑧)))
3837, 10brab2a 5680 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧 ↔ ((𝑥𝐴𝑧𝐴) ∧ (𝐹𝑥) = (𝐹𝑧)))
3925, 32, 383imtr4i 292 . . 3 ((𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦𝑦{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧) → 𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑧)
40 eqid 2738 . . . . 5 (𝐹𝑥) = (𝐹𝑥)
4140biantru 530 . . . 4 ((𝑥𝐴𝑥𝐴) ↔ ((𝑥𝐴𝑥𝐴) ∧ (𝐹𝑥) = (𝐹𝑥)))
42 pm4.24 564 . . . 4 (𝑥𝐴 ↔ (𝑥𝐴𝑥𝐴))
43 simpl 483 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑥) → 𝑢 = 𝑥)
4443fveq2d 6778 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑥) → (𝐹𝑢) = (𝐹𝑥))
45 simpr 485 . . . . . . 7 ((𝑢 = 𝑥𝑣 = 𝑥) → 𝑣 = 𝑥)
4645fveq2d 6778 . . . . . 6 ((𝑢 = 𝑥𝑣 = 𝑥) → (𝐹𝑣) = (𝐹𝑥))
4744, 46eqeq12d 2754 . . . . 5 ((𝑢 = 𝑥𝑣 = 𝑥) → ((𝐹𝑢) = (𝐹𝑣) ↔ (𝐹𝑥) = (𝐹𝑥)))
4847, 10brab2a 5680 . . . 4 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥 ↔ ((𝑥𝐴𝑥𝐴) ∧ (𝐹𝑥) = (𝐹𝑥)))
4941, 42, 483bitr4i 303 . . 3 (𝑥𝐴𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑥)
501, 19, 39, 49iseri 8525 . 2 {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴
5111baib 536 . . 3 ((𝑥𝐴𝑦𝐴) → (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))
5251rgen2 3120 . 2 𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))
53 id 22 . . . 4 (𝐴𝑉𝐴𝑉)
54 simprll 776 . . . 4 ((𝐴𝑉 ∧ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))) → 𝑢𝐴)
55 simprlr 777 . . . 4 ((𝐴𝑉 ∧ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))) → 𝑣𝐴)
5653, 53, 54, 55opabex2 7897 . . 3 (𝐴𝑉 → {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∈ V)
57 ereq1 8505 . . . . 5 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → (𝑟 Er 𝐴 ↔ {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴))
58 simpl 483 . . . . . . . 8 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → 𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))})
5958breqd 5085 . . . . . . 7 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → (𝑥𝑟𝑦𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦))
6059bibi1d 344 . . . . . 6 ((𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∧ (𝑥𝐴𝑦𝐴)) → ((𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)) ↔ (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
61602ralbidva 3128 . . . . 5 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → (∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)) ↔ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
6257, 61anbi12d 631 . . . 4 (𝑟 = {⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} → ((𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) ↔ ({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6362spcegv 3536 . . 3 ({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} ∈ V → (({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6456, 63syl 17 . 2 (𝐴𝑉 → (({⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))} Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥{⟨𝑢, 𝑣⟩ ∣ ((𝑢𝐴𝑣𝐴) ∧ (𝐹𝑢) = (𝐹𝑣))}𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))) → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦)))))
6550, 52, 64mp2ani 695 1 (𝐴𝑉 → ∃𝑟(𝑟 Er 𝐴 ∧ ∀𝑥𝐴𝑦𝐴 (𝑥𝑟𝑦 ↔ (𝐹𝑥) = (𝐹𝑦))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  wral 3064  Vcvv 3432   class class class wbr 5074  {copab 5136  cfv 6433   Er wer 8495
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6391  df-fv 6441  df-er 8498
This theorem is referenced by:  tgjustc1  26836
  Copyright terms: Public domain W3C validator