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 32774
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 6730 . . . . 5 (𝐹𝐷) ∈ V
21dfpred3 6170 . . . 4 Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)}
3 elrabi 3596 . . . . . . . . . . 11 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} → 𝑢𝐶)
43anim1i 618 . . . . . . . . . 10 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢) = 𝑣))
54reximi2 3167 . . . . . . . . 9 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → ∃𝑢𝐶 (𝐹𝑢) = 𝑣)
6 fnrelpredd.1 . . . . . . . . . 10 (𝜑𝐹 Fn 𝐴)
7 fnrelpredd.3 . . . . . . . . . 10 (𝜑𝐶𝐴)
86, 7fvelimabd 6785 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) ↔ ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
95, 8syl5ibr 249 . . . . . . . 8 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣 ∈ (𝐹𝐶)))
10 fveq2 6717 . . . . . . . . . . . 12 (𝑥 = 𝑢 → (𝐹𝑥) = (𝐹𝑢))
1110breq1d 5063 . . . . . . . . . . 11 (𝑥 = 𝑢 → ((𝐹𝑥)𝑆(𝐹𝐷) ↔ (𝐹𝑢)𝑆(𝐹𝐷)))
1211elrab 3602 . . . . . . . . . 10 (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ↔ (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)))
13 breq1 5056 . . . . . . . . . . . 12 ((𝐹𝑢) = 𝑣 → ((𝐹𝑢)𝑆(𝐹𝐷) ↔ 𝑣𝑆(𝐹𝐷)))
1413biimpac 482 . . . . . . . . . . 11 (((𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1514adantll 714 . . . . . . . . . 10 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1612, 15sylanb 584 . . . . . . . . 9 ((𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣) → 𝑣𝑆(𝐹𝐷))
1716rexlimiva 3200 . . . . . . . 8 (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣𝑣𝑆(𝐹𝐷))
189, 17jca2 517 . . . . . . 7 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 → (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
198biimpd 232 . . . . . . . . 9 (𝜑 → (𝑣 ∈ (𝐹𝐶) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
2019adantrd 495 . . . . . . . 8 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢𝐶 (𝐹𝑢) = 𝑣))
21 simpl 486 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶)
2221a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → 𝑢𝐶))
2313biimprcd 253 . . . . . . . . . . . . 13 (𝑣𝑆(𝐹𝐷) → ((𝐹𝑢) = 𝑣 → (𝐹𝑢)𝑆(𝐹𝐷)))
2423adantld 494 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢)𝑆(𝐹𝐷)))
25 simpr 488 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣)
2625a1i 11 . . . . . . . . . . . 12 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝐹𝑢) = 𝑣))
2722, 24, 263jcad 1131 . . . . . . . . . . 11 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣)))
2812biimpri 231 . . . . . . . . . . . . 13 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) → 𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
2928anim1i 618 . . . . . . . . . . . 12 (((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷)) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
30293impa 1112 . . . . . . . . . . 11 ((𝑢𝐶 ∧ (𝐹𝑢)𝑆(𝐹𝐷) ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣))
3127, 30syl6 35 . . . . . . . . . 10 (𝑣𝑆(𝐹𝐷) → ((𝑢𝐶 ∧ (𝐹𝑢) = 𝑣) → (𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ∧ (𝐹𝑢) = 𝑣)))
3231reximdv2 3190 . . . . . . . . 9 (𝑣𝑆(𝐹𝐷) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3332adantl 485 . . . . . . . 8 ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → (∃𝑢𝐶 (𝐹𝑢) = 𝑣 → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3420, 33sylcom 30 . . . . . . 7 (𝜑 → ((𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷)) → ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣))
3518, 34impbid 215 . . . . . 6 (𝜑 → (∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣 ↔ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))))
3635abbidv 2807 . . . . 5 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))})
37 df-rab 3070 . . . . 5 {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)} = {𝑣 ∣ (𝑣 ∈ (𝐹𝐶) ∧ 𝑣𝑆(𝐹𝐷))}
3836, 37eqtr4di 2796 . . . 4 (𝜑 → {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣} = {𝑣 ∈ (𝐹𝐶) ∣ 𝑣𝑆(𝐹𝐷)})
392, 38eqtr4id 2797 . . 3 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
40 fnfun 6479 . . . . 5 (𝐹 Fn 𝐴 → Fun 𝐹)
416, 40syl 17 . . . 4 (𝜑 → Fun 𝐹)
42 ssrab2 3993 . . . . . 6 {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐶
4342, 7sstrid 3912 . . . . 5 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ 𝐴)
446fndmd 6483 . . . . 5 (𝜑 → dom 𝐹 = 𝐴)
4543, 44sseqtrrd 3942 . . . 4 (𝜑 → {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹)
46 dfimafn 6775 . . . 4 ((Fun 𝐹 ∧ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} ⊆ dom 𝐹) → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4741, 45, 46syl2anc 587 . . 3 (𝜑 → (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}) = {𝑣 ∣ ∃𝑢 ∈ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)} (𝐹𝑢) = 𝑣})
4839, 47eqtr4d 2780 . 2 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
49 fnrelpredd.4 . . . . 5 (𝜑𝐷𝐴)
50 dfpred3g 6171 . . . . 5 (𝐷𝐴 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
5149, 50syl 17 . . . 4 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶𝑥𝑅𝐷})
527sselda 3901 . . . . . 6 ((𝜑𝑥𝐶) → 𝑥𝐴)
53 fnrelpredd.2 . . . . . . . 8 (𝜑 → ∀𝑥𝐴𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
5453r19.21bi 3130 . . . . . . 7 ((𝜑𝑥𝐴) → ∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)))
55 breq2 5057 . . . . . . . . . . 11 (𝑦 = 𝐷 → (𝑥𝑅𝑦𝑥𝑅𝐷))
56 fveq2 6717 . . . . . . . . . . . 12 (𝑦 = 𝐷 → (𝐹𝑦) = (𝐹𝐷))
5756breq2d 5065 . . . . . . . . . . 11 (𝑦 = 𝐷 → ((𝐹𝑥)𝑆(𝐹𝑦) ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
5855, 57bibi12d 349 . . . . . . . . . 10 (𝑦 = 𝐷 → ((𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) ↔ (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
5958rspcv 3532 . . . . . . . . 9 (𝐷𝐴 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6049, 59syl 17 . . . . . . . 8 (𝜑 → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6160adantr 484 . . . . . . 7 ((𝜑𝑥𝐴) → (∀𝑦𝐴 (𝑥𝑅𝑦 ↔ (𝐹𝑥)𝑆(𝐹𝑦)) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷))))
6254, 61mpd 15 . . . . . 6 ((𝜑𝑥𝐴) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6352, 62syldan 594 . . . . 5 ((𝜑𝑥𝐶) → (𝑥𝑅𝐷 ↔ (𝐹𝑥)𝑆(𝐹𝐷)))
6463rabbidva 3388 . . . 4 (𝜑 → {𝑥𝐶𝑥𝑅𝐷} = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6551, 64eqtrd 2777 . . 3 (𝜑 → Pred(𝑅, 𝐶, 𝐷) = {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)})
6665imaeq2d 5929 . 2 (𝜑 → (𝐹 “ Pred(𝑅, 𝐶, 𝐷)) = (𝐹 “ {𝑥𝐶 ∣ (𝐹𝑥)𝑆(𝐹𝐷)}))
6748, 66eqtr4d 2780 1 (𝜑 → Pred(𝑆, (𝐹𝐶), (𝐹𝐷)) = (𝐹 “ Pred(𝑅, 𝐶, 𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1089   = wceq 1543  wcel 2110  {cab 2714  wral 3061  wrex 3062  {crab 3065  wss 3866   class class class wbr 5053  dom cdm 5551  cima 5554  Predcpred 6159  Fun wfun 6374   Fn wfn 6375  cfv 6380
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-id 5455  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-rn 5562  df-res 5563  df-ima 5564  df-pred 6160  df-iota 6338  df-fun 6382  df-fn 6383  df-fv 6388
This theorem is referenced by:  cardpred  32775
  Copyright terms: Public domain W3C validator