Intuitionistic Logic Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  ILE Home  >  Th. List  >  genpdflem GIF version

Theorem genpdflem 6811
 Description: Simplification of upper or lower cut expression. Lemma for genpdf 6812. (Contributed by Jim Kingdon, 30-Sep-2019.)
Hypotheses
Ref Expression
genpdflem.r ((𝜑𝑟𝐴) → 𝑟Q)
genpdflem.s ((𝜑𝑠𝐵) → 𝑠Q)
Assertion
Ref Expression
genpdflem (𝜑 → {𝑞Q ∣ ∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠))} = {𝑞Q ∣ ∃𝑟𝐴𝑠𝐵 𝑞 = (𝑟𝐺𝑠)})
Distinct variable groups:   𝐴,𝑠   𝜑,𝑞,𝑟,𝑠
Allowed substitution hints:   𝐴(𝑟,𝑞)   𝐵(𝑠,𝑟,𝑞)   𝐺(𝑠,𝑟,𝑞)

Proof of Theorem genpdflem
StepHypRef Expression
1 genpdflem.r . . . . . . . . 9 ((𝜑𝑟𝐴) → 𝑟Q)
21ex 113 . . . . . . . 8 (𝜑 → (𝑟𝐴𝑟Q))
32pm4.71rd 386 . . . . . . 7 (𝜑 → (𝑟𝐴 ↔ (𝑟Q𝑟𝐴)))
43anbi1d 453 . . . . . 6 (𝜑 → ((𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ ((𝑟Q𝑟𝐴) ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
54exbidv 1748 . . . . 5 (𝜑 → (∃𝑟(𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ ∃𝑟((𝑟Q𝑟𝐴) ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
6 3anass 924 . . . . . . . . . 10 ((𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ (𝑟𝐴 ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
76rexbii 2378 . . . . . . . . 9 (∃𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠Q (𝑟𝐴 ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
8 r19.42v 2516 . . . . . . . . 9 (∃𝑠Q (𝑟𝐴 ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
97, 8bitri 182 . . . . . . . 8 (∃𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
109rexbii 2378 . . . . . . 7 (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟Q (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
11 df-rex 2359 . . . . . . 7 (∃𝑟Q (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ ∃𝑟(𝑟Q ∧ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
1210, 11bitri 182 . . . . . 6 (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟(𝑟Q ∧ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
13 anass 393 . . . . . . 7 (((𝑟Q𝑟𝐴) ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ (𝑟Q ∧ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
1413exbii 1537 . . . . . 6 (∃𝑟((𝑟Q𝑟𝐴) ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))) ↔ ∃𝑟(𝑟Q ∧ (𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
1512, 14bitr4i 185 . . . . 5 (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟((𝑟Q𝑟𝐴) ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
165, 15syl6rbbr 197 . . . 4 (𝜑 → (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟(𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)))))
17 df-rex 2359 . . . 4 (∃𝑟𝐴𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟(𝑟𝐴 ∧ ∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
1816, 17syl6bbr 196 . . 3 (𝜑 → (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟𝐴𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
19 genpdflem.s . . . . . . . . . 10 ((𝜑𝑠𝐵) → 𝑠Q)
2019ex 113 . . . . . . . . 9 (𝜑 → (𝑠𝐵𝑠Q))
2120pm4.71rd 386 . . . . . . . 8 (𝜑 → (𝑠𝐵 ↔ (𝑠Q𝑠𝐵)))
2221anbi1d 453 . . . . . . 7 (𝜑 → ((𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ((𝑠Q𝑠𝐵) ∧ 𝑞 = (𝑟𝐺𝑠))))
2322exbidv 1748 . . . . . 6 (𝜑 → (∃𝑠(𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠((𝑠Q𝑠𝐵) ∧ 𝑞 = (𝑟𝐺𝑠))))
24 df-rex 2359 . . . . . . 7 (∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠(𝑠Q ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
25 anass 393 . . . . . . . 8 (((𝑠Q𝑠𝐵) ∧ 𝑞 = (𝑟𝐺𝑠)) ↔ (𝑠Q ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
2625exbii 1537 . . . . . . 7 (∃𝑠((𝑠Q𝑠𝐵) ∧ 𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠(𝑠Q ∧ (𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
2724, 26bitr4i 185 . . . . . 6 (∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠((𝑠Q𝑠𝐵) ∧ 𝑞 = (𝑟𝐺𝑠)))
2823, 27syl6rbbr 197 . . . . 5 (𝜑 → (∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠(𝑠𝐵𝑞 = (𝑟𝐺𝑠))))
29 df-rex 2359 . . . . 5 (∃𝑠𝐵 𝑞 = (𝑟𝐺𝑠) ↔ ∃𝑠(𝑠𝐵𝑞 = (𝑟𝐺𝑠)))
3028, 29syl6bbr 196 . . . 4 (𝜑 → (∃𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑠𝐵 𝑞 = (𝑟𝐺𝑠)))
3130rexbidv 2374 . . 3 (𝜑 → (∃𝑟𝐴𝑠Q (𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟𝐴𝑠𝐵 𝑞 = (𝑟𝐺𝑠)))
3218, 31bitrd 186 . 2 (𝜑 → (∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠)) ↔ ∃𝑟𝐴𝑠𝐵 𝑞 = (𝑟𝐺𝑠)))
3332rabbidv 2599 1 (𝜑 → {𝑞Q ∣ ∃𝑟Q𝑠Q (𝑟𝐴𝑠𝐵𝑞 = (𝑟𝐺𝑠))} = {𝑞Q ∣ ∃𝑟𝐴𝑠𝐵 𝑞 = (𝑟𝐺𝑠)})
 Colors of variables: wff set class Syntax hints:   → wi 4   ∧ wa 102   ∧ w3a 920   = wceq 1285  ∃wex 1422   ∈ wcel 1434  ∃wrex 2354  {crab 2357  (class class class)co 5563  Qcnq 6584 This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-5 1377  ax-7 1378  ax-gen 1379  ax-ie1 1423  ax-ie2 1424  ax-8 1436  ax-11 1438  ax-4 1441  ax-17 1460  ax-i9 1464  ax-ial 1468  ax-i5r 1469  ax-ext 2065 This theorem depends on definitions:  df-bi 115  df-3an 922  df-tru 1288  df-nf 1391  df-sb 1688  df-clab 2070  df-cleq 2076  df-ral 2358  df-rex 2359  df-rab 2362 This theorem is referenced by:  genpdf  6812
 Copyright terms: Public domain W3C validator