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

Theorem fnrelpredd 32961
Description: A function that preserves a relation also preserves predecessors. (Contributed by BTernaryTau, 16-Jul-2024.)
Hypotheses
Ref Expression
fnrelpredd.1 (𝜑𝐹 Fn 𝐴)
fnrelpredd.2 (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
fnrelpredd.3 (𝜑𝐶𝐴)
fnrelpredd.4 (𝜑𝐷𝐴)
Assertion
Ref Expression
fnrelpredd (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ Pred(𝑅, 𝐶, 𝐷)))
Distinct variable groups:   𝑦,𝐴   𝜑,𝑥   𝑥,𝐷,𝑦   𝑥,𝑅,𝑦   𝑥,𝑆,𝑦   𝑥,𝐹,𝑦   𝑥,𝐶
Allowed substitution hints:   𝜑(𝑦)   𝐴(𝑥)   𝐶(𝑦)

Proof of Theorem fnrelpredd
Dummy variables 𝑣 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fvex 6769 . . . . 5 (𝐹𝐷) ∈ V
21dfpred3 6202 . . . 4 Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)}
3 elrabi 3611 . . . . . . . . . . 11 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} → 𝑢𝐶)
43anim1i 614 . . . . . . . . . 10 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢) = 𝑣))
54reximi2 3171 . . . . . . . . 9 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → ∃𝑢𝐶 (𝐹𝑢) = 𝑣)
6 fnrelpredd.1 . . . . . . . . . 10 (𝜑𝐹 Fn 𝐴)
7 fnrelpredd.3 . . . . . . . . . 10 (𝜑𝐶𝐴)
86, 7fvelimabd 6824 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) ↔ ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
95, 8syl5ibr 245 . . . . . . . 8 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣 ∈ (𝐹𝐶)))
10 fveq2 6756 . . . . . . . . . . . 12 (𝑥 = 𝑢 → (𝐹𝑥) = (𝐹𝑢))
1110breq1d 5080 . . . . . . . . . . 11 (𝑥 = 𝑢 → ((𝐹𝑥)𝑆(𝐹𝐷) ↔ (𝐹𝑢)𝑆(𝐹𝐷)))
1211elrab 3617 . . . . . . . . . 10 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ↔ (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)))
13 breq1 5073 . . . . . . . . . . . 12 ((𝐹𝑢) = 𝑣 → ((𝐹𝑢)𝑆(𝐹𝐷) ↔ 𝑣𝑆(𝐹𝐷)))
1413biimpac 478 . . . . . . . . . . 11 (((𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1514adantll 710 . . . . . . . . . 10 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1612, 15sylanb 580 . . . . . . . . 9 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1716rexlimiva 3209 . . . . . . . 8 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣𝑆(𝐹𝐷))
189, 17jca2 513 . . . . . . 7 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
198biimpd 228 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
2019adantrd 491 . . . . . . . 8 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
21 simpl 482 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶)
2221a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶))
2313biimprcd 249 . . . . . . . . . . . . 13 (𝑣𝑆(𝐹𝐷) → ((𝐹𝑢) = 𝑣 → (𝐹𝑢)𝑆(𝐹𝐷)))
2423adantld 490 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢)𝑆(𝐹𝐷)))
25 simpr 484 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣)
2625a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣))
2722, 24, 263jcad 1127 . . . . . . . . . . 11 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣)))
2812biimpri 227 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) → 𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
2928anim1i 614 . . . . . . . . . . . 12 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
30293impa 1108 . . . . . . . . . . 11 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
3127, 30syl6 35 . . . . . . . . . 10 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣)))
3231reximdv2 3198 . . . . . . . . 9 (𝑣𝑆(𝐹𝐷) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3332adantl 481 . . . . . . . 8 ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3420, 33sylcom 30 . . . . . . 7 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3518, 34impbid 211 . . . . . 6 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 ↔ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
3635abbidv 2808 . . . . 5 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))})
37 df-rab 3072 . . . . 5 {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))}
3836, 37eqtr4di 2797 . . . 4 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)})
392, 38eqtr4id 2798 . . 3 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
40 fnfun 6517 . . . . 5 (𝐹 Fn 𝐴 → Fun 𝐹)
416, 40syl 17 . . . 4 (𝜑 → Fun 𝐹)
42 ssrab2 4009 . . . . . 6 {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐶
4342, 7sstrid 3928 . . . . 5 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐴)
446fndmd 6522 . . . . 5 (𝜑 → dom 𝐹 = 𝐴)
4543, 44sseqtrrd 3958 . . . 4 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹)
46 dfimafn 6814 . . . 4 ((Fun 𝐹 ∧ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹) → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4741, 45, 46syl2anc 583 . . 3 (𝜑 → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4839, 47eqtr4d 2781 . 2 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
49 fnrelpredd.4 . . . . 5 (𝜑𝐷𝐴)
50 dfpred3g 6203 . . . . 5 (𝐷𝐴 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
5149, 50syl 17 . . . 4 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
527sselda 3917 . . . . . 6 ((𝜑𝑥𝐶) → 𝑥𝐴)
53 fnrelpredd.2 . . . . . . . 8 (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
5453r19.21bi 3132 . . . . . . 7 ((𝜑𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
55 breq2 5074 . . . . . . . . . . 11 (𝑦 = 𝐷 → (𝑥𝑅𝑦𝑥𝑅𝐷))
56 fveq2 6756 . . . . . . . . . . . 12 (𝑦 = 𝐷 → (𝐹𝑦) = (𝐹𝐷))
5756breq2d 5082 . . . . . . . . . . 11 (𝑦 = 𝐷 → ((𝐹𝑥)𝑆(𝐹𝑦) ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
5855, 57bibi12d 345 . . . . . . . . . 10 (𝑦 = 𝐷 → ((𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) ↔ (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
5958rspcv 3547 . . . . . . . . 9 (𝐷𝐴 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6049, 59syl 17 . . . . . . . 8 (𝜑 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6160adantr 480 . . . . . . 7 ((𝜑𝑥𝐴) → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6254, 61mpd 15 . . . . . 6 ((𝜑𝑥𝐴) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6352, 62syldan 590 . . . . 5 ((𝜑𝑥𝐶) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6463rabbidva 3402 . . . 4 (𝜑 → {𝑥𝐶𝑥𝑅𝐷} = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6551, 64eqtrd 2778 . . 3 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6665imaeq2d 5958 . 2 (𝜑 → (𝐹 “ Pred(𝑅, 𝐶, 𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
6748, 66eqtr4d 2781 1 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ Pred(𝑅, 𝐶, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  {cab 2715  wral 3063  wrex 3064  {crab 3067  wss 3883   class class class wbr 5070  dom cdm 5580  cima 5583  Predcpred 6190  Fun wfun 6412   Fn wfn 6413  cfv 6418
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-pr 5347
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-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-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  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-pred 6191  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426
This theorem is referenced by:  cardpred  32962
  Copyright terms: Public domain W3C validator