MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  gsumbagdiaglem Structured version   Visualization version   GIF version

Theorem gsumbagdiaglem 21054
Description: Lemma for gsumbagdiag 21055. (Contributed by Mario Carneiro, 5-Jan-2015.) Remove a sethood hypothesis. (Revised by SN, 6-Aug-2024.)
Hypotheses
Ref Expression
gsumbagdiag.d 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
gsumbagdiag.s 𝑆 = {𝑦𝐷𝑦r𝐹}
gsumbagdiag.f (𝜑𝐹𝐷)
Assertion
Ref Expression
gsumbagdiaglem ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑌𝑆𝑋 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑌)}))
Distinct variable groups:   𝑥,𝐷   𝑦,𝐷   𝑓,𝐹   𝑥,𝐹   𝑦,𝐹   𝑓,𝐼   𝑓,𝑋   𝑥,𝑋   𝑦,𝑋   𝑓,𝑌   𝑥,𝑌   𝑦,𝑌
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑓)   𝐷(𝑓)   𝑆(𝑥,𝑦,𝑓)   𝐼(𝑥,𝑦)

Proof of Theorem gsumbagdiaglem
Dummy variables 𝑢 𝑣 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simprr 769 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})
2 breq1 5073 . . . . . 6 (𝑥 = 𝑌 → (𝑥r ≤ (𝐹f𝑋) ↔ 𝑌r ≤ (𝐹f𝑋)))
32elrab 3617 . . . . 5 (𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)} ↔ (𝑌𝐷𝑌r ≤ (𝐹f𝑋)))
41, 3sylib 217 . . . 4 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑌𝐷𝑌r ≤ (𝐹f𝑋)))
54simpld 494 . . 3 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌𝐷)
64simprd 495 . . . 4 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌r ≤ (𝐹f𝑋))
7 gsumbagdiag.f . . . . . . 7 (𝜑𝐹𝐷)
87adantr 480 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝐹𝐷)
9 simprl 767 . . . . . . . . 9 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋𝑆)
10 breq1 5073 . . . . . . . . . 10 (𝑦 = 𝑋 → (𝑦r𝐹𝑋r𝐹))
11 gsumbagdiag.s . . . . . . . . . 10 𝑆 = {𝑦𝐷𝑦r𝐹}
1210, 11elrab2 3620 . . . . . . . . 9 (𝑋𝑆 ↔ (𝑋𝐷𝑋r𝐹))
139, 12sylib 217 . . . . . . . 8 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑋𝐷𝑋r𝐹))
1413simpld 494 . . . . . . 7 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋𝐷)
15 gsumbagdiag.d . . . . . . . 8 𝐷 = {𝑓 ∈ (ℕ0m 𝐼) ∣ (𝑓 “ ℕ) ∈ Fin}
1615psrbagf 21031 . . . . . . 7 (𝑋𝐷𝑋:𝐼⟶ℕ0)
1714, 16syl 17 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋:𝐼⟶ℕ0)
1813simprd 495 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋r𝐹)
1915psrbagcon 21043 . . . . . 6 ((𝐹𝐷𝑋:𝐼⟶ℕ0𝑋r𝐹) → ((𝐹f𝑋) ∈ 𝐷 ∧ (𝐹f𝑋) ∘r𝐹))
208, 17, 18, 19syl3anc 1369 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → ((𝐹f𝑋) ∈ 𝐷 ∧ (𝐹f𝑋) ∘r𝐹))
2120simprd 495 . . . 4 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝐹f𝑋) ∘r𝐹)
2215psrbagf 21031 . . . . . . . 8 (𝐹𝐷𝐹:𝐼⟶ℕ0)
238, 22syl 17 . . . . . . 7 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝐹:𝐼⟶ℕ0)
2423ffnd 6585 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝐹 Fn 𝐼)
258, 24fndmexd 7727 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝐼 ∈ V)
2615psrbagf 21031 . . . . . 6 (𝑌𝐷𝑌:𝐼⟶ℕ0)
275, 26syl 17 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌:𝐼⟶ℕ0)
2820simpld 494 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝐹f𝑋) ∈ 𝐷)
2915psrbagf 21031 . . . . . 6 ((𝐹f𝑋) ∈ 𝐷 → (𝐹f𝑋):𝐼⟶ℕ0)
3028, 29syl 17 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝐹f𝑋):𝐼⟶ℕ0)
31 nn0re 12172 . . . . . . 7 (𝑢 ∈ ℕ0𝑢 ∈ ℝ)
32 nn0re 12172 . . . . . . 7 (𝑣 ∈ ℕ0𝑣 ∈ ℝ)
33 nn0re 12172 . . . . . . 7 (𝑤 ∈ ℕ0𝑤 ∈ ℝ)
34 letr 10999 . . . . . . 7 ((𝑢 ∈ ℝ ∧ 𝑣 ∈ ℝ ∧ 𝑤 ∈ ℝ) → ((𝑢𝑣𝑣𝑤) → 𝑢𝑤))
3531, 32, 33, 34syl3an 1158 . . . . . 6 ((𝑢 ∈ ℕ0𝑣 ∈ ℕ0𝑤 ∈ ℕ0) → ((𝑢𝑣𝑣𝑤) → 𝑢𝑤))
3635adantl 481 . . . . 5 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ (𝑢 ∈ ℕ0𝑣 ∈ ℕ0𝑤 ∈ ℕ0)) → ((𝑢𝑣𝑣𝑤) → 𝑢𝑤))
3725, 27, 30, 23, 36caoftrn 7549 . . . 4 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → ((𝑌r ≤ (𝐹f𝑋) ∧ (𝐹f𝑋) ∘r𝐹) → 𝑌r𝐹))
386, 21, 37mp2and 695 . . 3 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌r𝐹)
39 breq1 5073 . . . 4 (𝑦 = 𝑌 → (𝑦r𝐹𝑌r𝐹))
4039, 11elrab2 3620 . . 3 (𝑌𝑆 ↔ (𝑌𝐷𝑌r𝐹))
415, 38, 40sylanbrc 582 . 2 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌𝑆)
42 breq1 5073 . . 3 (𝑥 = 𝑋 → (𝑥r ≤ (𝐹f𝑌) ↔ 𝑋r ≤ (𝐹f𝑌)))
4317ffvelrnda 6943 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝑋𝑧) ∈ ℕ0)
4427ffvelrnda 6943 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝑌𝑧) ∈ ℕ0)
4523ffvelrnda 6943 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝐹𝑧) ∈ ℕ0)
46 nn0re 12172 . . . . . . . 8 ((𝑋𝑧) ∈ ℕ0 → (𝑋𝑧) ∈ ℝ)
47 nn0re 12172 . . . . . . . 8 ((𝑌𝑧) ∈ ℕ0 → (𝑌𝑧) ∈ ℝ)
48 nn0re 12172 . . . . . . . 8 ((𝐹𝑧) ∈ ℕ0 → (𝐹𝑧) ∈ ℝ)
49 leaddsub2 11382 . . . . . . . . 9 (((𝑋𝑧) ∈ ℝ ∧ (𝑌𝑧) ∈ ℝ ∧ (𝐹𝑧) ∈ ℝ) → (((𝑋𝑧) + (𝑌𝑧)) ≤ (𝐹𝑧) ↔ (𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧))))
50 leaddsub 11381 . . . . . . . . 9 (((𝑋𝑧) ∈ ℝ ∧ (𝑌𝑧) ∈ ℝ ∧ (𝐹𝑧) ∈ ℝ) → (((𝑋𝑧) + (𝑌𝑧)) ≤ (𝐹𝑧) ↔ (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
5149, 50bitr3d 280 . . . . . . . 8 (((𝑋𝑧) ∈ ℝ ∧ (𝑌𝑧) ∈ ℝ ∧ (𝐹𝑧) ∈ ℝ) → ((𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧)) ↔ (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
5246, 47, 48, 51syl3an 1158 . . . . . . 7 (((𝑋𝑧) ∈ ℕ0 ∧ (𝑌𝑧) ∈ ℕ0 ∧ (𝐹𝑧) ∈ ℕ0) → ((𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧)) ↔ (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
5343, 44, 45, 52syl3anc 1369 . . . . . 6 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → ((𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧)) ↔ (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
5453ralbidva 3119 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (∀𝑧𝐼 (𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧)) ↔ ∀𝑧𝐼 (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
55 ovexd 7290 . . . . . 6 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → ((𝐹𝑧) − (𝑋𝑧)) ∈ V)
5627feqmptd 6819 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌 = (𝑧𝐼 ↦ (𝑌𝑧)))
5717ffnd 6585 . . . . . . 7 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋 Fn 𝐼)
58 inidm 4149 . . . . . . 7 (𝐼𝐼) = 𝐼
59 eqidd 2739 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝐹𝑧) = (𝐹𝑧))
60 eqidd 2739 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝑋𝑧) = (𝑋𝑧))
6124, 57, 25, 25, 58, 59, 60offval 7520 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝐹f𝑋) = (𝑧𝐼 ↦ ((𝐹𝑧) − (𝑋𝑧))))
6225, 44, 55, 56, 61ofrfval2 7532 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑌r ≤ (𝐹f𝑋) ↔ ∀𝑧𝐼 (𝑌𝑧) ≤ ((𝐹𝑧) − (𝑋𝑧))))
63 ovexd 7290 . . . . . 6 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → ((𝐹𝑧) − (𝑌𝑧)) ∈ V)
6417feqmptd 6819 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋 = (𝑧𝐼 ↦ (𝑋𝑧)))
6527ffnd 6585 . . . . . . 7 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑌 Fn 𝐼)
66 eqidd 2739 . . . . . . 7 (((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) ∧ 𝑧𝐼) → (𝑌𝑧) = (𝑌𝑧))
6724, 65, 25, 25, 58, 59, 66offval 7520 . . . . . 6 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝐹f𝑌) = (𝑧𝐼 ↦ ((𝐹𝑧) − (𝑌𝑧))))
6825, 43, 63, 64, 67ofrfval2 7532 . . . . 5 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑋r ≤ (𝐹f𝑌) ↔ ∀𝑧𝐼 (𝑋𝑧) ≤ ((𝐹𝑧) − (𝑌𝑧))))
6954, 62, 683bitr4d 310 . . . 4 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑌r ≤ (𝐹f𝑋) ↔ 𝑋r ≤ (𝐹f𝑌)))
706, 69mpbid 231 . . 3 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋r ≤ (𝐹f𝑌))
7142, 14, 70elrabd 3619 . 2 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → 𝑋 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑌)})
7241, 71jca 511 1 ((𝜑 ∧ (𝑋𝑆𝑌 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑋)})) → (𝑌𝑆𝑋 ∈ {𝑥𝐷𝑥r ≤ (𝐹f𝑌)}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  wcel 2108  wral 3063  {crab 3067  Vcvv 3422   class class class wbr 5070  ccnv 5579  cima 5583  wf 6414  cfv 6418  (class class class)co 7255  f cof 7509  r cofr 7510  m cmap 8573  Fincfn 8691  cr 10801   + caddc 10805  cle 10941  cmin 11135  cn 11903  0cn0 12163
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-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511  df-ofr 7512  df-om 7688  df-1st 7804  df-2nd 7805  df-supp 7949  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-er 8456  df-map 8575  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164
This theorem is referenced by:  gsumbagdiag  21055  psrass1lem  21056
  Copyright terms: Public domain W3C validator