forked from leanprover-community/mathlib4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetEntropy.lean
More file actions
387 lines (325 loc) · 19.4 KB
/
Copy pathNetEntropy.lean
File metadata and controls
387 lines (325 loc) · 19.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
/-
Copyright (c) 2024 Damien Thomine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damien Thomine, Pietro Monticone
-/
module
public import Mathlib.Dynamics.TopologicalEntropy.CoverEntropy
/-!
# Topological entropy via nets
We implement Bowen-Dinaburg's definitions of the topological entropy, via nets.
The major design decisions are the same as in
`Mathlib/Dynamics/TopologicalEntropy/CoverEntropy.lean`, and are explained in detail there:
use of uniform spaces, definition of the topological entropy of a subset, and values taken in
`EReal`.
Given a map `T : X → X` and a subset `F ⊆ X`, the topological entropy is loosely defined using
nets as the exponential growth (in `n`) of the number of distinguishable orbits of length `n`
starting from `F`. More precisely, given an entourage `U`, two orbits of length `n` can be
distinguished if there exists some index `k < n` such that `T^[k] x` and `T^[k] y` are far enough
(i.e. `(T^[k] x, T^[k] y)` is not in `U`). The maximal number of distinguishable orbits of
length `n` is `netMaxcard T F U n`, and its exponential growth `netEntropyEntourage T F U`. This
quantity increases when `U` decreases, and a definition of the topological entropy is
`⨆ U ∈ 𝓤 X, netEntropyInfEntourage T F U`.
The definition of topological entropy using nets coincides with the definition using covers.
Instead of defining a new notion of topological entropy, we prove that
`coverEntropy` coincides with `⨆ U ∈ 𝓤 X, netEntropyEntourage T F U`.
## Main definitions
- `IsDynNetIn`: property that dynamical balls centered on a subset `s` of `F` are disjoint.
- `netMaxcard`: maximal cardinality of a dynamical net. Takes values in `ℕ∞`.
- `netEntropyInfEntourage`/`netEntropyEntourage`: exponential growth of `netMaxcard`. The former is
defined with a `liminf`, the latter with a `limsup`. Take values in `EReal`.
## Implementation notes
As when using covers, there are two competing definitions `netEntropyInfEntourage` and
`netEntropyEntourage` in this file: one uses a `liminf`, the other a `limsup`. When using covers,
we chose the `limsup` definition as the default.
## Main results
- `coverEntropy_eq_iSup_netEntropyEntourage`: equality between the notions of topological entropy
defined with covers and with nets. Has a variant for `coverEntropyInf`.
## Tags
net, entropy
## TODO
Get versions of the topological entropy on (pseudo-e)metric spaces.
-/
@[expose] public section
open Set Uniformity UniformSpace
open scoped SetRel
namespace Dynamics
variable {X : Type*} {T : X → X} {U V : SetRel X X} {m n : ℕ} {F s : Set X} {x : X}
/-! ### Dynamical nets -/
/-- Given a subset `F`, an entourage `U` and an integer `n`, a subset `s` of `F` is a
`(U, n)`-dynamical net of `F` if no two orbits of length `n` of points in `s` shadow each other. -/
def IsDynNetIn (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) (s : Set X) : Prop :=
s ⊆ F ∧ s.PairwiseDisjoint fun x : X ↦ ball x (dynEntourage T U n)
lemma IsDynNetIn.of_le (m_n : m ≤ n) (h : IsDynNetIn T F U m s) : IsDynNetIn T F U n s :=
⟨h.1, PairwiseDisjoint.mono h.2 fun x ↦ ball_mono (dynEntourage_antitone T U m_n) x⟩
lemma IsDynNetIn.of_entourage_subset (U_V : U ⊆ V) (h : IsDynNetIn T F V n s) :
IsDynNetIn T F U n s :=
⟨h.1, PairwiseDisjoint.mono h.2 fun x ↦ ball_mono (dynEntourage_monotone T n U_V) x⟩
lemma isDynNetIn_empty : IsDynNetIn T F U n ∅ := ⟨empty_subset F, pairwise_empty _⟩
lemma isDynNetIn_singleton (T : X → X) (U : SetRel X X) (n : ℕ) (h : x ∈ F) :
IsDynNetIn T F U n {x} :=
⟨singleton_subset_iff.2 h, pairwise_singleton x _⟩
/-- Given an entourage `U` and a time `n`, a dynamical net has a smaller cardinality than
a dynamical cover. This lemma is the first of two key results to compare two versions of
topological entropy: with cover and with nets, the second being `coverMincard_le_netMaxcard`. -/
lemma IsDynNetIn.card_le_card_of_isDynCoverOf {s t : Finset X}
(hs : IsDynNetIn T F U n s) (ht : IsDynCoverOf T F U n t) :
s.card ≤ t.card := by
have (x : X) (x_s : x ∈ s) : ∃ z ∈ t, z ∈ ball x (dynEntourage T U n) := by
simpa using! ht (hs.1 x_s)
choose! F s_t using this
apply Finset.card_le_card_of_injOn F fun x x_s ↦ (s_t x x_s).1
exact fun x x_s y y_s Fx_Fy ↦
PairwiseDisjoint.elim_set hs.2 x_s y_s (F x) (s_t x x_s).2 (Fx_Fy ▸ (s_t y y_s).2)
/-! ### Maximal cardinality of dynamical nets -/
/-- The largest cardinality of a `(U, n)`-dynamical net of `F`. Takes values in `ℕ∞`, and is
infinite if and only if `F` admits nets of arbitrarily large size. -/
noncomputable def netMaxcard (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) : ℕ∞ :=
⨆ (s : Finset X) (_ : IsDynNetIn T F U n s), (s.card : ℕ∞)
lemma IsDynNetIn.card_le_netMaxcard {s : Finset X} (h : IsDynNetIn T F U n s) :
s.card ≤ netMaxcard T F U n :=
le_iSup₂ (α := ℕ∞) s h
lemma netMaxcard_monotone_time (T : X → X) (F : Set X) (U : SetRel X X) :
Monotone fun n : ℕ ↦ netMaxcard T F U n :=
fun _ _ m_n ↦ biSup_mono fun _ h ↦ h.of_le m_n
lemma netMaxcard_antitone (T : X → X) (F : Set X) (n : ℕ) :
Antitone fun U : SetRel X X ↦ netMaxcard T F U n :=
fun _ _ U_V ↦ biSup_mono fun _ h ↦ h.of_entourage_subset U_V
lemma netMaxcard_finite_iff (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) :
netMaxcard T F U n < ⊤ ↔
∃ s : Finset X, IsDynNetIn T F U n s ∧ (s.card : ℕ∞) = netMaxcard T F U n := by
apply Iff.intro <;> intro h
· obtain ⟨k, k_max⟩ := ENat.ne_top_iff_exists.mp h.ne
rw [← k_max]
simp only [Nat.cast_inj]
-- The criterion we want to use is `Nat.sSup_mem`. We rewrite `netMaxcard` with an `sSup`,
-- then check its `BddAbove` and `Nonempty` hypotheses.
have : netMaxcard T F U n
= sSup (WithTop.some '' Finset.card '' {s : Finset X | IsDynNetIn T F U n s}) := by
rw [netMaxcard, ← image_comp, sSup_image]
simp only [mem_setOf_eq, ENat.some_eq_coe, Function.comp_apply]
exact biSup_congr (fun _ _ ↦ rfl)
rw [this] at k_max
have h_bdda : BddAbove (Finset.card '' {s : Finset X | IsDynNetIn T F U n s}) := by
refine ⟨k, mem_upperBounds.2 ?_⟩
simp only [mem_image, mem_setOf_eq, forall_exists_index, and_imp, forall_apply_eq_imp_iff₂]
intro s h
rw [← ENat.coe_le_coe, k_max]
apply le_sSup
exact Filter.frequently_principal.mp fun a ↦ a (by simpa using ⟨_, h, rfl⟩) rfl
have h_nemp : (Finset.card '' {s : Finset X | IsDynNetIn T F U n s}).Nonempty := by
refine ⟨0, ?_⟩
simp only [mem_image, mem_setOf_eq, Finset.card_eq_zero, exists_eq_right, Finset.coe_empty]
exact isDynNetIn_empty
rw [← WithTop.coe_sSup' h_bdda] at k_max
have key := Nat.sSup_mem h_nemp h_bdda
rw [← Nat.cast_inj.mp k_max, mem_image] at key
simp only [mem_setOf_eq] at key
exact key
· obtain ⟨s, _, s_card⟩ := h
rw [← s_card]
exact WithTop.coe_lt_top s.card
@[simp]
lemma netMaxcard_empty : netMaxcard T ∅ U n = 0 := by
rw [netMaxcard, ← bot_eq_zero, iSup₂_eq_bot]
intro s s_net
replace s_net := subset_empty_iff.1 s_net.1
norm_cast at s_net
rw [s_net, Finset.card_empty, CharP.cast_eq_zero, bot_eq_zero']
lemma netMaxcard_eq_zero_iff (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) :
netMaxcard T F U n = 0 ↔ F = ∅ := by
refine ⟨fun h ↦ ?_, fun h ↦ by rw [h, netMaxcard_empty]⟩
rw [eq_empty_iff_forall_notMem]
intro x x_F
have key := isDynNetIn_singleton T U n x_F
rw [← Finset.coe_singleton] at key
replace key := key.card_le_netMaxcard
rw [Finset.card_singleton, Nat.cast_one, h] at key
exact key.not_gt zero_lt_one
lemma one_le_netMaxcard_iff (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) :
1 ≤ netMaxcard T F U n ↔ F.Nonempty := by
rw [Order.one_le_iff_ne_zero, nonempty_iff_ne_empty]
exact not_iff_not.2 (netMaxcard_eq_zero_iff T F U n)
lemma netMaxcard_zero (T : X → X) (h : F.Nonempty) (U : SetRel X X) : netMaxcard T F U 0 = 1 := by
apply (iSup₂_le _).antisymm ((one_le_netMaxcard_iff T F U 0).2 h)
intro s ⟨_, s_net⟩
simp only [ball, dynEntourage_zero, preimage_univ] at s_net
norm_cast
refine Finset.card_le_one.2 fun x x_s y y_s ↦ ?_
exact PairwiseDisjoint.elim_set s_net x_s y_s x (mem_univ x) (mem_univ x)
lemma netMaxcard_univ (T : X → X) (h : F.Nonempty) (n : ℕ) : netMaxcard T F univ n = 1 := by
apply (iSup₂_le _).antisymm ((one_le_netMaxcard_iff T F univ n).2 h)
intro s ⟨_, s_net⟩
simp only [ball, dynEntourage_univ, preimage_univ] at s_net
norm_cast
refine Finset.card_le_one.2 fun x x_s y y_s ↦ ?_
exact PairwiseDisjoint.elim_set s_net x_s y_s x (mem_univ x) (mem_univ x)
lemma netMaxcard_infinite_iff (T : X → X) (F : Set X) (U : SetRel X X) (n : ℕ) :
netMaxcard T F U n = ⊤ ↔ ∀ k : ℕ, ∃ s : Finset X, IsDynNetIn T F U n s ∧ k ≤ s.card := by
apply Iff.intro <;> intro h
· intro k
rw [netMaxcard, iSup_subtype', iSup_eq_top] at h
specialize h k (ENat.coe_lt_top k)
simp only [Nat.cast_lt, Subtype.exists, exists_prop] at h
obtain ⟨s, s_net, s_k⟩ := h
exact ⟨s, s_net, s_k.le⟩
· refine ENat.eq_top_iff_forall_gt.mpr fun k ↦ ?_
specialize h (k + 1)
obtain ⟨s, s_net, s_card⟩ := h
apply s_net.card_le_netMaxcard.trans_lt'
rw [ENat.coe_lt_coe]
exact (lt_add_one k).trans_le s_card
lemma netMaxcard_le_coverMincard (T : X → X) (F : Set X) (n : ℕ) :
netMaxcard T F U n ≤ coverMincard T F U n := by
rcases eq_top_or_lt_top (coverMincard T F U n) with h | h
· exact h ▸ le_top
· obtain ⟨t, t_cover, t_mincard⟩ := (coverMincard_finite_iff T F U n).1 h
rw [← t_mincard]
exact iSup₂_le fun s s_net ↦ Nat.cast_le.2 (s_net.card_le_card_of_isDynCoverOf t_cover)
/-- Given an entourage `U` and a time `n`, a minimal dynamical cover by `U ○ U` has a smaller
cardinality than a maximal dynamical net by `U`. This lemma is the second of two key results to
compare two versions topological entropy: with cover and with nets. -/
lemma coverMincard_le_netMaxcard (T : X → X) (F : Set X) [U.IsRefl] [U.IsSymm] (n : ℕ) :
coverMincard T F (U ○ U) n ≤ netMaxcard T F U n := by
classical
-- WLOG, there exists a maximal dynamical net `s`.
rcases eq_top_or_lt_top (netMaxcard T F U n) with h | h
· exact h ▸ le_top
obtain ⟨s, s_net, s_card⟩ := (netMaxcard_finite_iff T F U n).1 h
rw [← s_card]
apply IsDynCoverOf.coverMincard_le_card
-- We have to check that `s` is a cover for `dynEntourage T F (U ○ U) n`.
-- If `s` is not a cover, then we can add to `s` a point `x` which is not covered
-- and get a new net. This contradicts the maximality of `s`.
rw [IsDynCoverOf, isCover_iff_subset_iUnion_ball]
by_contra h
obtain ⟨x, x_F, x_uncov⟩ := not_subset.1 h
simp only [Finset.mem_coe, mem_iUnion, exists_prop, not_exists, not_and] at x_uncov
have larger_net : IsDynNetIn T F U n (insert x s) := by
refine ⟨insert_subset x_F s_net.1, pairwiseDisjoint_insert.2 ⟨s_net.2, ?_⟩⟩
refine fun y y_s _ ↦ disjoint_left.2 fun z z_x z_y ↦ x_uncov y y_s ?_
exact mem_ball_dynEntourage_comp T n x y (nonempty_of_mem ⟨z_x, z_y⟩)
rw [← s.coe_insert x] at larger_net
apply larger_net.card_le_netMaxcard.not_gt
rw [← s_card, Nat.cast_lt]
refine (lt_add_one s.card).trans_eq (s.card_insert_of_notMem fun x_s ↦ ?_).symm
exact x_uncov x x_s (ball_mono (dynEntourage_monotone T n SetRel.left_subset_comp) x <|
SetRel.rfl (dynEntourage T U n))
/-! ### Net entropy of entourages -/
open ENNReal EReal ExpGrowth Filter
/-- The entropy of an entourage `U`, defined as the exponential rate of growth of the size of the
largest `(U, n)`-dynamical net of `F`. Takes values in the space of extended real numbers
`[-∞,+∞]`. This version uses a `limsup`, and is chosen as the default definition. -/
noncomputable def netEntropyEntourage (T : X → X) (F : Set X) (U : SetRel X X) :=
expGrowthSup fun n : ℕ ↦ netMaxcard T F U n
/-- The entropy of an entourage `U`, defined as the exponential rate of growth of the size of the
largest `(U, n)`-dynamical net of `F`. Takes values in the space of extended real numbers
`[-∞,+∞]`. This version uses a `liminf`, and is an alternative definition. -/
noncomputable def netEntropyInfEntourage (T : X → X) (F : Set X) (U : SetRel X X) :=
expGrowthInf fun n : ℕ ↦ netMaxcard T F U n
lemma netEntropyInfEntourage_antitone (T : X → X) (F : Set X) :
Antitone fun U : SetRel X X ↦ netEntropyInfEntourage T F U :=
fun _ _ U_V ↦ expGrowthInf_monotone fun n ↦ ENat.toENNReal_mono (netMaxcard_antitone T F n U_V)
lemma netEntropyEntourage_antitone (T : X → X) (F : Set X) :
Antitone fun U : SetRel X X ↦ netEntropyEntourage T F U :=
fun _ _ U_V ↦ expGrowthSup_monotone fun n ↦ ENat.toENNReal_mono (netMaxcard_antitone T F n U_V)
lemma netEntropyInfEntourage_le_netEntropyEntourage (T : X → X) (F : Set X) (U : SetRel X X) :
netEntropyInfEntourage T F U ≤ netEntropyEntourage T F U :=
expGrowthInf_le_expGrowthSup
@[simp]
lemma netEntropyEntourage_empty : netEntropyEntourage T ∅ U = ⊥ := by
rw [netEntropyEntourage, ← expGrowthSup_zero]
congr
simp only [netMaxcard_empty, ENat.toENNReal_zero, Pi.zero_def]
@[simp]
lemma netEntropyInfEntourage_empty : netEntropyInfEntourage T ∅ U = ⊥ :=
eq_bot_mono (netEntropyInfEntourage_le_netEntropyEntourage T ∅ U) netEntropyEntourage_empty
lemma netEntropyInfEntourage_nonneg (T : X → X) (h : F.Nonempty) (U : SetRel X X) :
0 ≤ netEntropyInfEntourage T F U := by
apply Monotone.expGrowthInf_nonneg
· exact fun _ _ m_n ↦ ENat.toENNReal_mono (netMaxcard_monotone_time T F U m_n)
· rw [ne_eq, funext_iff.not, not_forall]
use 0
rw [netMaxcard_zero T h U, Pi.zero_apply, ENat.toENNReal_one]
exact one_ne_zero
lemma netEntropyEntourage_nonneg (T : X → X) (h : F.Nonempty) (U : SetRel X X) :
0 ≤ netEntropyEntourage T F U :=
(netEntropyInfEntourage_nonneg T h U).trans (netEntropyInfEntourage_le_netEntropyEntourage T F U)
lemma netEntropyInfEntourage_univ (T : X → X) {F : Set X} (h : F.Nonempty) :
netEntropyInfEntourage T F univ = 0 := by
rw [← expGrowthInf_const one_ne_zero one_ne_top, netEntropyInfEntourage]
simp only [netMaxcard_univ T h, ENat.toENNReal_one]
lemma netEntropyEntourage_univ (T : X → X) {F : Set X} (h : F.Nonempty) :
netEntropyEntourage T F univ = 0 := by
rw [← expGrowthSup_const one_ne_zero one_ne_top, netEntropyEntourage]
simp only [netMaxcard_univ T h, ENat.toENNReal_one]
lemma netEntropyInfEntourage_le_coverEntropyInfEntourage (T : X → X) (F : Set X) :
netEntropyInfEntourage T F U ≤ coverEntropyInfEntourage T F U :=
expGrowthInf_monotone fun n ↦ ENat.toENNReal_mono (netMaxcard_le_coverMincard T F n)
lemma coverEntropyInfEntourage_le_netEntropyInfEntourage (T : X → X) (F : Set X) [U.IsRefl]
[U.IsSymm] :
coverEntropyInfEntourage T F (U ○ U) ≤ netEntropyInfEntourage T F U :=
expGrowthInf_monotone fun n ↦ ENat.toENNReal_mono (coverMincard_le_netMaxcard T F n)
lemma netEntropyEntourage_le_coverEntropyEntourage (T : X → X) (F : Set X) :
netEntropyEntourage T F U ≤ coverEntropyEntourage T F U :=
expGrowthSup_monotone fun n ↦ ENat.toENNReal_mono (netMaxcard_le_coverMincard T F n)
lemma coverEntropyEntourage_le_netEntropyEntourage (T : X → X) (F : Set X) [U.IsRefl] [U.IsSymm] :
coverEntropyEntourage T F (U ○ U) ≤ netEntropyEntourage T F U :=
expGrowthSup_monotone fun n ↦ ENat.toENNReal_mono (coverMincard_le_netMaxcard T F n)
/-! ### Relationship with entropy via covers -/
variable [UniformSpace X] (T : X → X) (F : Set X)
/-- Bowen-Dinaburg's definition of topological entropy using nets is
`⨆ U ∈ 𝓤 X, netEntropyEntourage T F U`. This quantity is the same as the topological entropy using
covers, so there is no need to define a new notion of topological entropy. This version of the
theorem relates the `liminf` versions of topological entropy. -/
theorem coverEntropyInf_eq_iSup_netEntropyInfEntourage :
coverEntropyInf T F = ⨆ U ∈ 𝓤 X, netEntropyInfEntourage T F U := by
apply le_antisymm <;> refine iSup₂_le fun U U_uni ↦ ?_
· obtain ⟨V, V_uni, V_symm, V_U⟩ := comp_symm_mem_uniformity_sets U_uni
have := isRefl_of_mem_uniformity V_uni
apply (coverEntropyInfEntourage_antitone T F V_U).trans (le_iSup₂_of_le V V_uni _)
exact coverEntropyInfEntourage_le_netEntropyInfEntourage T F
· apply (netEntropyInfEntourage_antitone T F SetRel.symmetrize_subset_self).trans
apply (le_iSup₂ (SetRel.symmetrize U) (symmetrize_mem_uniformity U_uni)).trans'
exact netEntropyInfEntourage_le_coverEntropyInfEntourage T F
/-- Bowen-Dinaburg's definition of topological entropy using nets is
`⨆ U ∈ 𝓤 X, netEntropyEntourage T F U`. This quantity is the same as the topological entropy using
covers, so there is no need to define a new notion of topological entropy. This version of the
theorem relates the `limsup` versions of topological entropy. -/
theorem coverEntropy_eq_iSup_netEntropyEntourage :
coverEntropy T F = ⨆ U ∈ 𝓤 X, netEntropyEntourage T F U := by
apply le_antisymm <;> refine iSup₂_le fun U U_uni ↦ ?_
· obtain ⟨V, V_uni, V_symm, V_comp_U⟩ := comp_symm_mem_uniformity_sets U_uni
apply (coverEntropyEntourage_antitone T F V_comp_U).trans (le_iSup₂_of_le V V_uni _)
have := isRefl_of_mem_uniformity V_uni
exact coverEntropyEntourage_le_netEntropyEntourage T F
· apply (netEntropyEntourage_antitone T F SetRel.symmetrize_subset_self).trans
apply (le_iSup₂ (SetRel.symmetrize U) (symmetrize_mem_uniformity U_uni)).trans'
exact netEntropyEntourage_le_coverEntropyEntourage T F
lemma coverEntropyInf_eq_iSup_basis_netEntropyInfEntourage {ι : Sort*} {p : ι → Prop}
{s : ι → SetRel X X} (h : (𝓤 X).HasBasis p s) (T : X → X) (F : Set X) :
coverEntropyInf T F = ⨆ (i : ι) (_ : p i), netEntropyInfEntourage T F (s i) := by
rw [coverEntropyInf_eq_iSup_netEntropyInfEntourage T F]
apply (iSup₂_mono' fun i h_i ↦ ⟨s i, HasBasis.mem_of_mem h h_i, le_refl _⟩).antisymm'
refine iSup₂_le fun U U_uni ↦ ?_
obtain ⟨i, h_i, si_U⟩ := (HasBasis.mem_iff h).1 U_uni
apply (netEntropyInfEntourage_antitone T F si_U).trans
exact le_iSup₂ (f := fun (i : ι) (_ : p i) ↦ netEntropyInfEntourage T F (s i)) i h_i
lemma coverEntropy_eq_iSup_basis_netEntropyEntourage {ι : Sort*} {p : ι → Prop}
{s : ι → SetRel X X} (h : (𝓤 X).HasBasis p s) (T : X → X) (F : Set X) :
coverEntropy T F = ⨆ (i : ι) (_ : p i), netEntropyEntourage T F (s i) := by
rw [coverEntropy_eq_iSup_netEntropyEntourage T F]
apply (iSup₂_mono' fun i h_i ↦ ⟨s i, HasBasis.mem_of_mem h h_i, le_refl _⟩).antisymm'
refine iSup₂_le fun U U_uni ↦ ?_
obtain ⟨i, h_i, si_U⟩ := (HasBasis.mem_iff h).1 U_uni
apply (netEntropyEntourage_antitone T F si_U).trans _
exact le_iSup₂ (f := fun (i : ι) (_ : p i) ↦ netEntropyEntourage T F (s i)) i h_i
lemma netEntropyInfEntourage_le_coverEntropyInf (h : U ∈ 𝓤 X) :
netEntropyInfEntourage T F U ≤ coverEntropyInf T F :=
coverEntropyInf_eq_iSup_netEntropyInfEntourage T F ▸
le_iSup₂ (f := fun (U : SetRel X X) (_ : U ∈ 𝓤 X) ↦ netEntropyInfEntourage T F U) U h
lemma netEntropyEntourage_le_coverEntropy (h : U ∈ 𝓤 X) :
netEntropyEntourage T F U ≤ coverEntropy T F :=
coverEntropy_eq_iSup_netEntropyEntourage T F ▸
le_iSup₂ (f := fun (U : SetRel X X) (_ : U ∈ 𝓤 X) ↦ netEntropyEntourage T F U) U h
end Dynamics