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 34092
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 6905 . . . . 5 (𝐹𝐷) ∈ V
21dfpred3 6312 . . . 4 Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)}
3 elrabi 3678 . . . . . . . . . . 11 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} → 𝑢𝐶)
43anim1i 616 . . . . . . . . . 10 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢) = 𝑣))
54reximi2 3080 . . . . . . . . 9 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → ∃𝑢𝐶 (𝐹𝑢) = 𝑣)
6 fnrelpredd.1 . . . . . . . . . 10 (𝜑𝐹 Fn 𝐴)
7 fnrelpredd.3 . . . . . . . . . 10 (𝜑𝐶𝐴)
86, 7fvelimabd 6966 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) ↔ ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
95, 8imbitrrid 245 . . . . . . . 8 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣 ∈ (𝐹𝐶)))
10 fveq2 6892 . . . . . . . . . . . 12 (𝑥 = 𝑢 → (𝐹𝑥) = (𝐹𝑢))
1110breq1d 5159 . . . . . . . . . . 11 (𝑥 = 𝑢 → ((𝐹𝑥)𝑆(𝐹𝐷) ↔ (𝐹𝑢)𝑆(𝐹𝐷)))
1211elrab 3684 . . . . . . . . . 10 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ↔ (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)))
13 breq1 5152 . . . . . . . . . . . 12 ((𝐹𝑢) = 𝑣 → ((𝐹𝑢)𝑆(𝐹𝐷) ↔ 𝑣𝑆(𝐹𝐷)))
1413biimpac 480 . . . . . . . . . . 11 (((𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1514adantll 713 . . . . . . . . . 10 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1612, 15sylanb 582 . . . . . . . . 9 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1716rexlimiva 3148 . . . . . . . 8 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣𝑆(𝐹𝐷))
189, 17jca2 515 . . . . . . 7 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
198biimpd 228 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
2019adantrd 493 . . . . . . . 8 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
21 simpl 484 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶)
2221a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶))
2313biimprcd 249 . . . . . . . . . . . . 13 (𝑣𝑆(𝐹𝐷) → ((𝐹𝑢) = 𝑣 → (𝐹𝑢)𝑆(𝐹𝐷)))
2423adantld 492 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢)𝑆(𝐹𝐷)))
25 simpr 486 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣)
2625a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣))
2722, 24, 263jcad 1130 . . . . . . . . . . 11 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣)))
2812biimpri 227 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) → 𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
2928anim1i 616 . . . . . . . . . . . 12 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
30293impa 1111 . . . . . . . . . . 11 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
3127, 30syl6 35 . . . . . . . . . 10 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣)))
3231reximdv2 3165 . . . . . . . . 9 (𝑣𝑆(𝐹𝐷) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3332adantl 483 . . . . . . . 8 ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3420, 33sylcom 30 . . . . . . 7 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3518, 34impbid 211 . . . . . 6 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 ↔ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
3635abbidv 2802 . . . . 5 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))})
37 df-rab 3434 . . . . 5 {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))}
3836, 37eqtr4di 2791 . . . 4 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)})
392, 38eqtr4id 2792 . . 3 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
40 fnfun 6650 . . . . 5 (𝐹 Fn 𝐴 → Fun 𝐹)
416, 40syl 17 . . . 4 (𝜑 → Fun 𝐹)
42 ssrab2 4078 . . . . . 6 {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐶
4342, 7sstrid 3994 . . . . 5 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐴)
446fndmd 6655 . . . . 5 (𝜑 → dom 𝐹 = 𝐴)
4543, 44sseqtrrd 4024 . . . 4 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹)
46 dfimafn 6955 . . . 4 ((Fun 𝐹 ∧ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹) → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4741, 45, 46syl2anc 585 . . 3 (𝜑 → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4839, 47eqtr4d 2776 . 2 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
49 fnrelpredd.4 . . . . 5 (𝜑𝐷𝐴)
50 dfpred3g 6313 . . . . 5 (𝐷𝐴 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
5149, 50syl 17 . . . 4 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
527sselda 3983 . . . . . 6 ((𝜑𝑥𝐶) → 𝑥𝐴)
53 fnrelpredd.2 . . . . . . . 8 (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
5453r19.21bi 3249 . . . . . . 7 ((𝜑𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
55 breq2 5153 . . . . . . . . . . 11 (𝑦 = 𝐷 → (𝑥𝑅𝑦𝑥𝑅𝐷))
56 fveq2 6892 . . . . . . . . . . . 12 (𝑦 = 𝐷 → (𝐹𝑦) = (𝐹𝐷))
5756breq2d 5161 . . . . . . . . . . 11 (𝑦 = 𝐷 → ((𝐹𝑥)𝑆(𝐹𝑦) ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
5855, 57bibi12d 346 . . . . . . . . . 10 (𝑦 = 𝐷 → ((𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) ↔ (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
5958rspcv 3609 . . . . . . . . 9 (𝐷𝐴 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6049, 59syl 17 . . . . . . . 8 (𝜑 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6160adantr 482 . . . . . . 7 ((𝜑𝑥𝐴) → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6254, 61mpd 15 . . . . . 6 ((𝜑𝑥𝐴) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6352, 62syldan 592 . . . . 5 ((𝜑𝑥𝐶) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6463rabbidva 3440 . . . 4 (𝜑 → {𝑥𝐶𝑥𝑅𝐷} = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6551, 64eqtrd 2773 . . 3 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6665imaeq2d 6060 . 2 (𝜑 → (𝐹 “ Pred(𝑅, 𝐶, 𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
6748, 66eqtr4d 2776 1 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ Pred(𝑅, 𝐶, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 397  w3a 1088   = wceq 1542  wcel 2107  {cab 2710  wral 3062  wrex 3071  {crab 3433  wss 3949   class class class wbr 5149  dom cdm 5677  cima 5680  Predcpred 6300  Fun wfun 6538   Fn wfn 6539  cfv 6544
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 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-12 2172  ax-ext 2704  ax-sep 5300  ax-nul 5307  ax-pr 5428
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3434  df-v 3477  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-br 5150  df-opab 5212  df-id 5575  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-iota 6496  df-fun 6546  df-fn 6547  df-fv 6552
This theorem is referenced by:  cardpred  34093
  Copyright terms: Public domain W3C validator