|
| 1 | +/- |
| 2 | +Copyright (c) 2021 Rémy Degenne. All rights reserved. |
| 3 | +Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | +Authors: Rémy Degenne |
| 5 | +-/ |
| 6 | + |
| 7 | +import measure_theory.measure.measure_space |
| 8 | + |
| 9 | +/-! |
| 10 | +# Typeclasses for measurability of lattice operations |
| 11 | +
|
| 12 | +In this file we define classes `has_measurable_sup` and `has_measurable_inf` and prove dot-style |
| 13 | +lemmas (`measurable.sup`, `ae_measurable.sup` etc). For binary operations we define two typeclasses: |
| 14 | +
|
| 15 | +- `has_measurable_sup` says that both left and right sup are measurable; |
| 16 | +- `has_measurable_sup₂` says that `λ p : α × α, p.1 ⊔ p.2` is measurable, |
| 17 | +
|
| 18 | +and similarly for other binary operations. The reason for introducing these classes is that in case |
| 19 | +of topological space `α` equipped with the Borel `σ`-algebra, instances for `has_measurable_sup₂` |
| 20 | +etc require `α` to have a second countable topology. |
| 21 | +
|
| 22 | +For instances relating, e.g., `has_continuous_sup` to `has_measurable_sup` see file |
| 23 | +`measure_theory.borel_space`. |
| 24 | +
|
| 25 | +## Tags |
| 26 | +
|
| 27 | +measurable function, lattice operation |
| 28 | +
|
| 29 | +-/ |
| 30 | + |
| 31 | +open measure_theory |
| 32 | + |
| 33 | +/-- We say that a type `has_measurable_sup` if `((⊔) c)` and `(⊔ c)` are measurable functions. |
| 34 | +For a typeclass assuming measurability of `uncurry (⊔)` see `has_measurable_sup₂`. -/ |
| 35 | +class has_measurable_sup (M : Type*) [measurable_space M] [has_sup M] : Prop := |
| 36 | +(measurable_const_sup : ∀ c : M, measurable ((⊔) c)) |
| 37 | +(measurable_sup_const : ∀ c : M, measurable (⊔ c)) |
| 38 | + |
| 39 | +/-- We say that a type `has_measurable_sup₂` if `uncurry (⊔)` is a measurable functions. |
| 40 | +For a typeclass assuming measurability of `((⊔) c)` and `(⊔ c)` see `has_measurable_sup`. -/ |
| 41 | +class has_measurable_sup₂ (M : Type*) [measurable_space M] [has_sup M] : Prop := |
| 42 | +(measurable_sup : measurable (λ p : M × M, p.1 ⊔ p.2)) |
| 43 | + |
| 44 | +export has_measurable_sup₂ (measurable_sup) |
| 45 | + has_measurable_sup (measurable_const_sup measurable_sup_const) |
| 46 | + |
| 47 | +/-- We say that a type `has_measurable_inf` if `((⊓) c)` and `(⊓ c)` are measurable functions. |
| 48 | +For a typeclass assuming measurability of `uncurry (⊓)` see `has_measurable_inf₂`. -/ |
| 49 | +class has_measurable_inf (M : Type*) [measurable_space M] [has_inf M] : Prop := |
| 50 | +(measurable_const_inf : ∀ c : M, measurable ((⊓) c)) |
| 51 | +(measurable_inf_const : ∀ c : M, measurable (⊓ c)) |
| 52 | + |
| 53 | +/-- We say that a type `has_measurable_inf₂` if `uncurry (⊔)` is a measurable functions. |
| 54 | +For a typeclass assuming measurability of `((⊔) c)` and `(⊔ c)` see `has_measurable_inf`. -/ |
| 55 | +class has_measurable_inf₂ (M : Type*) [measurable_space M] [has_inf M] : Prop := |
| 56 | +(measurable_inf : measurable (λ p : M × M, p.1 ⊓ p.2)) |
| 57 | + |
| 58 | +export has_measurable_inf₂ (measurable_inf) |
| 59 | + has_measurable_inf (measurable_const_inf measurable_inf_const) |
| 60 | + |
| 61 | +variables {M : Type*} [measurable_space M] |
| 62 | + |
| 63 | +section order_dual |
| 64 | + |
| 65 | +@[priority 100] |
| 66 | +instance order_dual.has_measurable_sup [has_inf M] [has_measurable_inf M] : |
| 67 | + has_measurable_sup (order_dual M) := |
| 68 | +⟨@measurable_const_inf M _ _ _, @measurable_inf_const M _ _ _⟩ |
| 69 | + |
| 70 | +@[priority 100] |
| 71 | +instance order_dual.has_measurable_inf [has_sup M] [has_measurable_sup M] : |
| 72 | + has_measurable_inf (order_dual M) := |
| 73 | +⟨@measurable_const_sup M _ _ _, @measurable_sup_const M _ _ _⟩ |
| 74 | + |
| 75 | +@[priority 100] |
| 76 | +instance order_dual.has_measurable_sup₂ [has_inf M] [has_measurable_inf₂ M] : |
| 77 | + has_measurable_sup₂ (order_dual M) := |
| 78 | +⟨@measurable_inf M _ _ _⟩ |
| 79 | + |
| 80 | +@[priority 100] |
| 81 | +instance order_dual.has_measurable_inf₂ [has_sup M] [has_measurable_sup₂ M] : |
| 82 | + has_measurable_inf₂ (order_dual M) := |
| 83 | +⟨@measurable_sup M _ _ _⟩ |
| 84 | + |
| 85 | +end order_dual |
| 86 | + |
| 87 | +variables {α : Type*} {m : measurable_space α} {μ : measure α} {f g : α → M} |
| 88 | +include m |
| 89 | + |
| 90 | +section sup |
| 91 | +variables [has_sup M] |
| 92 | + |
| 93 | +section measurable_sup |
| 94 | +variables [has_measurable_sup M] |
| 95 | + |
| 96 | +@[measurability] |
| 97 | +lemma measurable.const_sup (hf : measurable f) (c : M) : measurable (λ x, c ⊔ f x) := |
| 98 | +(measurable_const_sup c).comp hf |
| 99 | + |
| 100 | +@[measurability] |
| 101 | +lemma ae_measurable.const_sup (hf : ae_measurable f μ) (c : M) : ae_measurable (λ x, c ⊔ f x) μ := |
| 102 | +(has_measurable_sup.measurable_const_sup c).comp_ae_measurable hf |
| 103 | + |
| 104 | +@[measurability] |
| 105 | +lemma measurable.sup_const (hf : measurable f) (c : M) : measurable (λ x, f x ⊔ c) := |
| 106 | +(measurable_sup_const c).comp hf |
| 107 | + |
| 108 | +@[measurability] |
| 109 | +lemma ae_measurable.sup_const (hf : ae_measurable f μ) (c : M) : |
| 110 | + ae_measurable (λ x, f x ⊔ c) μ := |
| 111 | +(measurable_sup_const c).comp_ae_measurable hf |
| 112 | + |
| 113 | +end measurable_sup |
| 114 | + |
| 115 | +section measurable_sup₂ |
| 116 | +variables [has_measurable_sup₂ M] |
| 117 | + |
| 118 | +@[measurability] |
| 119 | +lemma measurable.sup' (hf : measurable f) (hg : measurable g) : measurable (f ⊔ g) := |
| 120 | +measurable_sup.comp (hf.prod_mk hg) |
| 121 | + |
| 122 | +@[measurability] |
| 123 | +lemma measurable.sup (hf : measurable f) (hg : measurable g) : measurable (λ a, f a ⊔ g a) := |
| 124 | +measurable_sup.comp (hf.prod_mk hg) |
| 125 | + |
| 126 | +@[measurability] |
| 127 | +lemma ae_measurable.sup' (hf : ae_measurable f μ) (hg : ae_measurable g μ) : |
| 128 | + ae_measurable (f ⊔ g) μ := |
| 129 | +measurable_sup.comp_ae_measurable (hf.prod_mk hg) |
| 130 | + |
| 131 | +@[measurability] |
| 132 | +lemma ae_measurable.sup (hf : ae_measurable f μ) (hg : ae_measurable g μ) : |
| 133 | + ae_measurable (λ a, f a ⊔ g a) μ := |
| 134 | +measurable_sup.comp_ae_measurable (hf.prod_mk hg) |
| 135 | + |
| 136 | +omit m |
| 137 | +@[priority 100] |
| 138 | +instance has_measurable_sup₂.to_has_measurable_sup : has_measurable_sup M := |
| 139 | +⟨λ c, measurable_const.sup measurable_id, λ c, measurable_id.sup measurable_const⟩ |
| 140 | +include m |
| 141 | + |
| 142 | +end measurable_sup₂ |
| 143 | + |
| 144 | +end sup |
| 145 | + |
| 146 | +section inf |
| 147 | +variables [has_inf M] |
| 148 | + |
| 149 | +section measurable_inf |
| 150 | +variables [has_measurable_inf M] |
| 151 | + |
| 152 | +@[measurability] |
| 153 | +lemma measurable.const_inf (hf : measurable f) (c : M) : |
| 154 | + measurable (λ x, c ⊓ f x) := |
| 155 | +(measurable_const_inf c).comp hf |
| 156 | + |
| 157 | +@[measurability] |
| 158 | +lemma ae_measurable.const_inf (hf : ae_measurable f μ) (c : M) : |
| 159 | + ae_measurable (λ x, c ⊓ f x) μ := |
| 160 | +(has_measurable_inf.measurable_const_inf c).comp_ae_measurable hf |
| 161 | + |
| 162 | +@[measurability] |
| 163 | +lemma measurable.inf_const (hf : measurable f) (c : M) : |
| 164 | + measurable (λ x, f x ⊓ c) := |
| 165 | +(measurable_inf_const c).comp hf |
| 166 | + |
| 167 | +@[measurability] |
| 168 | +lemma ae_measurable.inf_const (hf : ae_measurable f μ) (c : M) : |
| 169 | + ae_measurable (λ x, f x ⊓ c) μ := |
| 170 | +(measurable_inf_const c).comp_ae_measurable hf |
| 171 | + |
| 172 | +end measurable_inf |
| 173 | + |
| 174 | +section measurable_inf₂ |
| 175 | +variables [has_measurable_inf₂ M] |
| 176 | + |
| 177 | +@[measurability] |
| 178 | +lemma measurable.inf' (hf : measurable f) (hg : measurable g) : measurable (f ⊓ g) := |
| 179 | +measurable_inf.comp (hf.prod_mk hg) |
| 180 | + |
| 181 | +@[measurability] |
| 182 | +lemma measurable.inf (hf : measurable f) (hg : measurable g) : measurable (λ a, f a ⊓ g a) := |
| 183 | +measurable_inf.comp (hf.prod_mk hg) |
| 184 | + |
| 185 | +@[measurability] |
| 186 | +lemma ae_measurable.inf' (hf : ae_measurable f μ) (hg : ae_measurable g μ) : |
| 187 | + ae_measurable (f ⊓ g) μ := |
| 188 | +measurable_inf.comp_ae_measurable (hf.prod_mk hg) |
| 189 | + |
| 190 | +@[measurability] |
| 191 | +lemma ae_measurable.inf (hf : ae_measurable f μ) (hg : ae_measurable g μ) : |
| 192 | + ae_measurable (λ a, f a ⊓ g a) μ := |
| 193 | +measurable_inf.comp_ae_measurable (hf.prod_mk hg) |
| 194 | + |
| 195 | +omit m |
| 196 | +@[priority 100] |
| 197 | +instance has_measurable_inf₂.to_has_measurable_inf : has_measurable_inf M := |
| 198 | +⟨λ c, measurable_const.inf measurable_id, λ c, measurable_id.inf measurable_const⟩ |
| 199 | +include m |
| 200 | + |
| 201 | +end measurable_inf₂ |
| 202 | + |
| 203 | +end inf |
0 commit comments