Users' Mathboxes Mathbox for Peter Mazsa < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  dfrefrels2 Structured version   Visualization version   GIF version

Theorem dfrefrels2 36610
Description: Alternate definition of the class of reflexive relations. This is a 0-ary class constant, which is recommended for definitions (see the 1. Guideline at https://us.metamath.org/ileuni/mathbox.html). Proper classes (like I, see iprc 7747) are not elements of this (or any) class: if a class is an element of another class, it is not a proper class but a set, see elex 3448. So if we use 0-ary constant classes as our main definitions, they are valid only for sets, not for proper classes. For proper classes we use predicate-type definitions like df-refrel 36609. See also the comment of df-rels 36582.

Note that while elementhood in the class of relations cancels restriction of 𝑟 in dfrefrels2 36610, it keeps restriction of I: this is why the very similar definitions df-refs 36607, df-syms 36635 and df-trs 36665 diverge when we switch from (general) sets to relations in dfrefrels2 36610, dfsymrels2 36638 and dftrrels2 36668. (Contributed by Peter Mazsa, 20-Jul-2019.)

Assertion
Ref Expression
dfrefrels2 RefRels = {𝑟 ∈ Rels ∣ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ 𝑟}

Proof of Theorem dfrefrels2
StepHypRef Expression
1 df-refrels 36608 . 2 RefRels = ( Refs ∩ Rels )
2 df-refs 36607 . 2 Refs = {𝑟 ∣ ( I ∩ (dom 𝑟 × ran 𝑟)) S (𝑟 ∩ (dom 𝑟 × ran 𝑟))}
3 inex1g 5246 . . . . 5 (𝑟 ∈ V → (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ∈ V)
43elv 3436 . . . 4 (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ∈ V
5 brssr 36598 . . . 4 ((𝑟 ∩ (dom 𝑟 × ran 𝑟)) ∈ V → (( I ∩ (dom 𝑟 × ran 𝑟)) S (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ↔ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ (𝑟 ∩ (dom 𝑟 × ran 𝑟))))
64, 5ax-mp 5 . . 3 (( I ∩ (dom 𝑟 × ran 𝑟)) S (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ↔ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ (𝑟 ∩ (dom 𝑟 × ran 𝑟)))
7 elrels6 36587 . . . . . 6 (𝑟 ∈ V → (𝑟 ∈ Rels ↔ (𝑟 ∩ (dom 𝑟 × ran 𝑟)) = 𝑟))
87elv 3436 . . . . 5 (𝑟 ∈ Rels ↔ (𝑟 ∩ (dom 𝑟 × ran 𝑟)) = 𝑟)
98biimpi 215 . . . 4 (𝑟 ∈ Rels → (𝑟 ∩ (dom 𝑟 × ran 𝑟)) = 𝑟)
109sseq2d 3957 . . 3 (𝑟 ∈ Rels → (( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ↔ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ 𝑟))
116, 10syl5bb 282 . 2 (𝑟 ∈ Rels → (( I ∩ (dom 𝑟 × ran 𝑟)) S (𝑟 ∩ (dom 𝑟 × ran 𝑟)) ↔ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ 𝑟))
121, 2, 11abeqinbi 36372 1 RefRels = {𝑟 ∈ Rels ∣ ( I ∩ (dom 𝑟 × ran 𝑟)) ⊆ 𝑟}
Colors of variables: wff setvar class
Syntax hints:  wb 205   = wceq 1541  wcel 2109  {crab 3069  Vcvv 3430  cin 3890  wss 3891   class class class wbr 5078   I cid 5487   × cxp 5586  dom cdm 5588  ran crn 5589   Rels crels 36314   S cssr 36315   Refs crefs 36316   RefRels crefrels 36317
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-ral 3070  df-rex 3071  df-rab 3074  df-v 3432  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-op 4573  df-br 5079  df-opab 5141  df-xp 5594  df-rel 5595  df-cnv 5596  df-dm 5598  df-rn 5599  df-res 5600  df-rels 36582  df-ssr 36595  df-refs 36607  df-refrels 36608
This theorem is referenced by:  dfrefrels3  36611  elrefrels2  36614  refsymrels2  36658  refrelsredund4  36724
  Copyright terms: Public domain W3C validator