Metamath Proof Explorer


Theorem uzublem

Description: A set of reals, indexed by upper integers, is bound if and only if any upper part is bound. (Contributed by Glauco Siliprandi, 23-Oct-2021)

Ref Expression
Hypotheses uzublem.1 𝑗 𝜑
uzublem.2 𝑗 𝑋
uzublem.3 ( 𝜑𝑀 ∈ ℤ )
uzublem.4 𝑍 = ( ℤ𝑀 )
uzublem.5 ( 𝜑𝑌 ∈ ℝ )
uzublem.6 𝑊 = sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < )
uzublem.7 𝑋 = if ( 𝑊𝑌 , 𝑌 , 𝑊 )
uzublem.8 ( 𝜑𝐾𝑍 )
uzublem.9 ( ( 𝜑𝑗𝑍 ) → 𝐵 ∈ ℝ )
uzublem.10 ( 𝜑 → ∀ 𝑗 ∈ ( ℤ𝐾 ) 𝐵𝑌 )
Assertion uzublem ( 𝜑 → ∃ 𝑥 ∈ ℝ ∀ 𝑗𝑍 𝐵𝑥 )

Proof

Step Hyp Ref Expression
1 uzublem.1 𝑗 𝜑
2 uzublem.2 𝑗 𝑋
3 uzublem.3 ( 𝜑𝑀 ∈ ℤ )
4 uzublem.4 𝑍 = ( ℤ𝑀 )
5 uzublem.5 ( 𝜑𝑌 ∈ ℝ )
6 uzublem.6 𝑊 = sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < )
7 uzublem.7 𝑋 = if ( 𝑊𝑌 , 𝑌 , 𝑊 )
8 uzublem.8 ( 𝜑𝐾𝑍 )
9 uzublem.9 ( ( 𝜑𝑗𝑍 ) → 𝐵 ∈ ℝ )
10 uzublem.10 ( 𝜑 → ∀ 𝑗 ∈ ( ℤ𝐾 ) 𝐵𝑌 )
11 6 a1i ( 𝜑𝑊 = sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < ) )
12 ltso < Or ℝ
13 12 a1i ( 𝜑 → < Or ℝ )
14 fzfid ( 𝜑 → ( 𝑀 ... 𝐾 ) ∈ Fin )
15 4 eluzelz2 ( 𝐾𝑍𝐾 ∈ ℤ )
16 8 15 syl ( 𝜑𝐾 ∈ ℤ )
17 3 zred ( 𝜑𝑀 ∈ ℝ )
18 17 leidd ( 𝜑𝑀𝑀 )
19 8 4 eleqtrdi ( 𝜑𝐾 ∈ ( ℤ𝑀 ) )
20 eluzle ( 𝐾 ∈ ( ℤ𝑀 ) → 𝑀𝐾 )
21 19 20 syl ( 𝜑𝑀𝐾 )
22 3 16 3 18 21 elfzd ( 𝜑𝑀 ∈ ( 𝑀 ... 𝐾 ) )
23 22 ne0d ( 𝜑 → ( 𝑀 ... 𝐾 ) ≠ ∅ )
24 fzssuz ( 𝑀 ... 𝐾 ) ⊆ ( ℤ𝑀 )
25 4 eqcomi ( ℤ𝑀 ) = 𝑍
26 24 25 sseqtri ( 𝑀 ... 𝐾 ) ⊆ 𝑍
27 id ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) → 𝑗 ∈ ( 𝑀 ... 𝐾 ) )
28 26 27 sselid ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) → 𝑗𝑍 )
29 28 9 sylan2 ( ( 𝜑𝑗 ∈ ( 𝑀 ... 𝐾 ) ) → 𝐵 ∈ ℝ )
30 1 13 14 23 29 fisupclrnmpt ( 𝜑 → sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < ) ∈ ℝ )
31 11 30 eqeltrd ( 𝜑𝑊 ∈ ℝ )
32 5 31 ifcld ( 𝜑 → if ( 𝑊𝑌 , 𝑌 , 𝑊 ) ∈ ℝ )
33 7 32 eqeltrid ( 𝜑𝑋 ∈ ℝ )
34 9 adantr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝐵 ∈ ℝ )
35 5 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝑌 ∈ ℝ )
36 33 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝑋 ∈ ℝ )
37 10 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → ∀ 𝑗 ∈ ( ℤ𝐾 ) 𝐵𝑌 )
38 eqid ( ℤ𝐾 ) = ( ℤ𝐾 )
39 16 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝐾 ∈ ℤ )
40 4 eluzelz2 ( 𝑗𝑍𝑗 ∈ ℤ )
41 40 ad2antlr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝑗 ∈ ℤ )
42 simpr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝐾𝑗 )
43 38 39 41 42 eluzd ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝑗 ∈ ( ℤ𝐾 ) )
44 rspa ( ( ∀ 𝑗 ∈ ( ℤ𝐾 ) 𝐵𝑌𝑗 ∈ ( ℤ𝐾 ) ) → 𝐵𝑌 )
45 37 43 44 syl2anc ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝐵𝑌 )
46 max2 ( ( 𝑊 ∈ ℝ ∧ 𝑌 ∈ ℝ ) → 𝑌 ≤ if ( 𝑊𝑌 , 𝑌 , 𝑊 ) )
47 31 5 46 syl2anc ( 𝜑𝑌 ≤ if ( 𝑊𝑌 , 𝑌 , 𝑊 ) )
48 47 7 breqtrrdi ( 𝜑𝑌𝑋 )
49 48 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝑌𝑋 )
50 34 35 36 45 49 letrd ( ( ( 𝜑𝑗𝑍 ) ∧ 𝐾𝑗 ) → 𝐵𝑋 )
51 simpr ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → ¬ 𝐾𝑗 )
52 uzssre ( ℤ𝑀 ) ⊆ ℝ
53 4 52 eqsstri 𝑍 ⊆ ℝ
54 53 sseli ( 𝑗𝑍𝑗 ∈ ℝ )
55 54 ad2antlr ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → 𝑗 ∈ ℝ )
56 53 8 sselid ( 𝜑𝐾 ∈ ℝ )
57 56 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → 𝐾 ∈ ℝ )
58 55 57 ltnled ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → ( 𝑗 < 𝐾 ↔ ¬ 𝐾𝑗 ) )
59 51 58 mpbird ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → 𝑗 < 𝐾 )
60 9 adantr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐵 ∈ ℝ )
61 6 31 eqeltrrid ( 𝜑 → sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < ) ∈ ℝ )
62 6 61 eqeltrid ( 𝜑𝑊 ∈ ℝ )
63 62 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑊 ∈ ℝ )
64 5 62 ifcld ( 𝜑 → if ( 𝑊𝑌 , 𝑌 , 𝑊 ) ∈ ℝ )
65 7 64 eqeltrid ( 𝜑𝑋 ∈ ℝ )
66 65 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑋 ∈ ℝ )
67 simpll ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝜑 )
68 3 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑀 ∈ ℤ )
69 16 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐾 ∈ ℤ )
70 4 eleq2i ( 𝑗𝑍𝑗 ∈ ( ℤ𝑀 ) )
71 70 biimpi ( 𝑗𝑍𝑗 ∈ ( ℤ𝑀 ) )
72 71 ad2antlr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 ∈ ( ℤ𝑀 ) )
73 simpr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 < 𝐾 )
74 72 69 73 elfzod ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 ∈ ( 𝑀 ..^ 𝐾 ) )
75 elfzouz ( 𝑗 ∈ ( 𝑀 ..^ 𝐾 ) → 𝑗 ∈ ( ℤ𝑀 ) )
76 75 25 eleqtrdi ( 𝑗 ∈ ( 𝑀 ..^ 𝐾 ) → 𝑗𝑍 )
77 74 76 40 3syl ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 ∈ ℤ )
78 eluzle ( 𝑗 ∈ ( ℤ𝑀 ) → 𝑀𝑗 )
79 71 78 syl ( 𝑗𝑍𝑀𝑗 )
80 79 ad2antlr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑀𝑗 )
81 74 76 54 3syl ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 ∈ ℝ )
82 56 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐾 ∈ ℝ )
83 81 82 73 ltled ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗𝐾 )
84 68 69 77 80 83 elfzd ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑗 ∈ ( 𝑀 ... 𝐾 ) )
85 1 29 ralrimia ( 𝜑 → ∀ 𝑗 ∈ ( 𝑀 ... 𝐾 ) 𝐵 ∈ ℝ )
86 fimaxre3 ( ( ( 𝑀 ... 𝐾 ) ∈ Fin ∧ ∀ 𝑗 ∈ ( 𝑀 ... 𝐾 ) 𝐵 ∈ ℝ ) → ∃ 𝑦 ∈ ℝ ∀ 𝑗 ∈ ( 𝑀 ... 𝐾 ) 𝐵𝑦 )
87 14 85 86 syl2anc ( 𝜑 → ∃ 𝑦 ∈ ℝ ∀ 𝑗 ∈ ( 𝑀 ... 𝐾 ) 𝐵𝑦 )
88 1 29 87 suprubrnmpt ( ( 𝜑𝑗 ∈ ( 𝑀 ... 𝐾 ) ) → 𝐵 ≤ sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < ) )
89 67 84 88 syl2anc ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐵 ≤ sup ( ran ( 𝑗 ∈ ( 𝑀 ... 𝐾 ) ↦ 𝐵 ) , ℝ , < ) )
90 89 6 breqtrrdi ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐵𝑊 )
91 max1 ( ( 𝑊 ∈ ℝ ∧ 𝑌 ∈ ℝ ) → 𝑊 ≤ if ( 𝑊𝑌 , 𝑌 , 𝑊 ) )
92 31 5 91 syl2anc ( 𝜑𝑊 ≤ if ( 𝑊𝑌 , 𝑌 , 𝑊 ) )
93 92 7 breqtrrdi ( 𝜑𝑊𝑋 )
94 93 ad2antrr ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝑊𝑋 )
95 60 63 66 90 94 letrd ( ( ( 𝜑𝑗𝑍 ) ∧ 𝑗 < 𝐾 ) → 𝐵𝑋 )
96 59 95 syldan ( ( ( 𝜑𝑗𝑍 ) ∧ ¬ 𝐾𝑗 ) → 𝐵𝑋 )
97 50 96 pm2.61dan ( ( 𝜑𝑗𝑍 ) → 𝐵𝑋 )
98 97 ex ( 𝜑 → ( 𝑗𝑍𝐵𝑋 ) )
99 1 98 ralrimi ( 𝜑 → ∀ 𝑗𝑍 𝐵𝑋 )
100 nfv 𝑥𝑗𝑍 𝐵𝑋
101 nfcv 𝑗 𝑥
102 101 2 nfeq 𝑗 𝑥 = 𝑋
103 breq2 ( 𝑥 = 𝑋 → ( 𝐵𝑥𝐵𝑋 ) )
104 102 103 ralbid ( 𝑥 = 𝑋 → ( ∀ 𝑗𝑍 𝐵𝑥 ↔ ∀ 𝑗𝑍 𝐵𝑋 ) )
105 100 104 rspce ( ( 𝑋 ∈ ℝ ∧ ∀ 𝑗𝑍 𝐵𝑋 ) → ∃ 𝑥 ∈ ℝ ∀ 𝑗𝑍 𝐵𝑥 )
106 33 99 105 syl2anc ( 𝜑 → ∃ 𝑥 ∈ ℝ ∀ 𝑗𝑍 𝐵𝑥 )