Skip to content

Commit dfacca7

Browse files
committed
chore: fix whitespace
1 parent 94e04f1 commit dfacca7

File tree

18 files changed

+49
-53
lines changed

18 files changed

+49
-53
lines changed

Mathlib/Condensed/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ instance {C : Type w} [Category.{v} C] : Category (Condensed.{u} C) :=
4949
show Category (Sheaf _ _) from inferInstance
5050

5151
/--
52-
Condensed sets (types) with the appropriate universe levels, i.e. `Type (u+1)`-valued
52+
Condensed sets (types) with the appropriate universe levels, i.e. `Type (u + 1)`-valued
5353
sheaves on `CompHaus.{u}`.
5454
-/
55-
abbrev CondensedSet := Condensed.{u} (Type (u+1))
55+
abbrev CondensedSet := Condensed.{u} (Type (u + 1))
5656

5757
namespace Condensed
5858

Mathlib/Condensed/Functors.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ section Universes
3434

3535
/-- Increase the size of the target category of condensed sets. -/
3636
def Condensed.ulift : Condensed.{u} (Type u) ⥤ CondensedSet.{u} :=
37-
sheafCompose (coherentTopology CompHaus) uliftFunctor.{u+1, u}
37+
sheafCompose (coherentTopology CompHaus) uliftFunctor.{u + 1, u}
3838

3939
instance : Condensed.ulift.Full := show (sheafCompose _ _).Full from inferInstance
4040

Mathlib/Condensed/Light/TopCatAdjunction.lean

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ variable (X : LightCondSet.{u})
3434
private def coinducingCoprod :
3535
(Σ (i : (S : LightProfinite.{u}) × X.val.obj ⟨S⟩), i.fst) →
3636
X.val.obj ⟨LightProfinite.of PUnit⟩ :=
37-
fun ⟨⟨_, i⟩, s⟩ ↦ X.val.map ((of PUnit.{u+1}).const s).op i
37+
fun ⟨⟨_, i⟩, s⟩ ↦ X.val.map ((of PUnit.{u + 1}).const s).op i
3838

3939
/-- Let `X` be a light condensed set. We define a topology on `X(*)` as the quotient topology of
4040
all the maps from light profinite sets `S` to `X(*)`, corresponding to elements of `X(S)`.
@@ -66,8 +66,8 @@ def toTopCatMap : X.toTopCat ⟶ Y.toTopCat :=
6666
apply continuous_sigma
6767
intro ⟨S, x⟩
6868
simp only [Function.comp_apply, coinducingCoprod]
69-
rw [show (fun (a : S) ↦ f.val.app ⟨of PUnit⟩ (X.val.map ((of PUnit.{u+1}).const a).op x)) = _
70-
from funext fun a ↦ NatTrans.naturality_apply f.val ((of PUnit.{u+1}).const a).op x]
69+
rw [show (fun (a : S) ↦ f.val.app ⟨of PUnit⟩ (X.val.map ((of PUnit.{u + 1}).const a).op x)) = _
70+
from funext fun a ↦ NatTrans.naturality_apply f.val ((of PUnit.{u + 1}).const a).op x]
7171
exact continuous_coinducingCoprod _ _ }
7272

7373
/-- The functor `LightCondSet ⥤ TopCat` -/
@@ -100,7 +100,7 @@ lemma topCatAdjunctionCounit_bijective (X : TopCat.{u}) :
100100
noncomputable def topCatAdjunctionUnit (X : LightCondSet.{u}) : X ⟶ X.toTopCat.toLightCondSet where
101101
val := {
102102
app := fun S x ↦ {
103-
toFun := fun s ↦ X.val.map ((of PUnit.{u+1}).const s).op x
103+
toFun := fun s ↦ X.val.map ((of PUnit.{u + 1}).const s).op x
104104
continuous_toFun := by
105105
suffices ∀ (i : (T : LightProfinite.{u}) × X.val.obj ⟨T⟩),
106106
Continuous (fun (a : i.fst) ↦ X.coinducingCoprod ⟨i, a⟩) from this ⟨_, _⟩

Mathlib/Condensed/TopComparison.lean

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ nice properties, like preserving pullbacks and finite coproducts, then this Yone
1919
satisfies the sheaf condition for the regular and extensive topologies respectively.
2020
2121
We apply this API to `CompHaus` and define the functor
22-
`topCatToCondensedSet : TopCat.{u+1} ⥤ CondensedSet.{u}`.
22+
`topCatToCondensedSet : TopCat.{u + 1} ⥤ CondensedSet.{u}`.
2323
2424
-/
2525

@@ -131,14 +131,14 @@ noncomputable def topCatToSheafCompHausLike :
131131
end
132132

133133
/--
134-
Associate to a `(u+1)`-small topological space the corresponding condensed set, given by
134+
Associate to a `(u + 1)`-small topological space the corresponding condensed set, given by
135135
`yonedaPresheaf`.
136136
-/
137137
noncomputable abbrev TopCat.toCondensedSet (X : TopCat.{u + 1}) : CondensedSet.{u} :=
138-
toSheafCompHausLike.{u+1} _ X (fun _ _ _ ↦ ((CompHaus.effectiveEpi_tfae _).out 0 2).mp)
138+
toSheafCompHausLike.{u + 1} _ X (fun _ _ _ ↦ ((CompHaus.effectiveEpi_tfae _).out 0 2).mp)
139139

140140
/--
141-
`TopCat.toCondensedSet` yields a functor from `TopCat.{u+1}` to `CondensedSet.{u}`.
141+
`TopCat.toCondensedSet` yields a functor from `TopCat.{u + 1}` to `CondensedSet.{u}`.
142142
-/
143-
noncomputable abbrev topCatToCondensedSet : TopCat.{u+1} ⥤ CondensedSet.{u} :=
144-
topCatToSheafCompHausLike.{u+1} _ (fun _ _ _ ↦ ((CompHaus.effectiveEpi_tfae _).out 0 2).mp)
143+
noncomputable abbrev topCatToCondensedSet : TopCat.{u + 1} ⥤ CondensedSet.{u} :=
144+
topCatToSheafCompHausLike.{u + 1} _ (fun _ _ _ ↦ ((CompHaus.effectiveEpi_tfae _).out 0 2).mp)

Mathlib/Deprecated/Sort.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ theorem Sorted.tail (h : Sorted r l) : Sorted r l.tail := Pairwise.tail h
4747

4848
@[deprecated rel_of_pairwise_cons (since := "2025-10-11")]
4949
theorem rel_of_sorted_cons (p : Sorted r (a :: l))
50-
{a' : α} : a' ∈ l → r a a':= rel_of_pairwise_cons p
50+
{a' : α} : a' ∈ l → r a a' := rel_of_pairwise_cons p
5151

5252
@[deprecated pairwise_cons (since := "2025-10-11")]
5353
theorem sorted_cons : Sorted r (a :: l) ↔ (∀ a' ∈ l, r a a') ∧ Sorted r l := pairwise_cons
5454

5555
@[deprecated Pairwise.filter (since := "2025-10-11")]
56-
theorem Sorted.filter (p : α → Bool) : Sorted r l → Sorted r (filter p l) := Pairwise.filter p
56+
theorem Sorted.filter (p : α → Bool) : Sorted r l → Sorted r (filter p l) := Pairwise.filter p
5757

5858
@[deprecated pairwise_singleton (since := "2025-10-11")]
59-
theorem sorted_singleton (r) (a : α) : Sorted r [a] := pairwise_singleton r a
59+
theorem sorted_singleton (r) (a : α) : Sorted r [a] := pairwise_singleton r a
6060

6161
@[deprecated Pairwise.rel_of_mem_take_of_mem_drop (since := "2025-10-11")]
6262
theorem Sorted.rel_of_mem_take_of_mem_drop {x y i} (h : Sorted r l)

Mathlib/Dynamics/Ergodic/Conservative.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ theorem ae_mem_imp_frequently_image_mem (hf : Conservative f μ) (hs : NullMeasu
161161
∀ᵐ x ∂μ, x ∈ s → ∃ᶠ n in atTop, f^[n] x ∈ s := by
162162
simp only [frequently_atTop, @forall_swap (_ ∈ s), ae_all_iff]
163163
intro n
164-
filter_upwards [
165-
measure_eq_zero_iff_ae_notMem.1 (hf.measure_mem_forall_ge_image_notMem_eq_zero hs n)]
164+
filter_upwards
165+
[measure_eq_zero_iff_ae_notMem.1 (hf.measure_mem_forall_ge_image_notMem_eq_zero hs n)]
166166
simp
167167

168168
theorem inter_frequently_image_mem_ae_eq (hf : Conservative f μ) (hs : NullMeasurableSet s μ) :

Mathlib/Dynamics/Ergodic/MeasurePreserving.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ lemma measure_symmDiff_preimage_iterate_le
197197
| zero => simp
198198
| succ n ih =>
199199
simp only [add_smul, one_smul]
200-
grw [← ih, measure_symmDiff_le s (f^[n] ⁻¹' s) (f^[n+1] ⁻¹' s)]
200+
grw [← ih, measure_symmDiff_le s (f^[n] ⁻¹' s) (f^[n + 1] ⁻¹' s)]
201201
replace hs : NullMeasurableSet (s ∆ (f ⁻¹' s)) μ :=
202202
hs.symmDiff <| hs.preimage hf.quasiMeasurePreserving
203203
rw [iterate_succ', preimage_comp, ← preimage_symmDiff, (hf.iterate n).measure_preimage hs]

Mathlib/Dynamics/PeriodicPts/Defs.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ theorem periodicOrbit_apply_eq (hx : x ∈ periodicPts f) :
477477
periodicOrbit_apply_iterate_eq hx 1
478478

479479
theorem periodicOrbit_chain (r : α → α → Prop) {f : α → α} {x : α} :
480-
(periodicOrbit f x).Chain r ↔ ∀ n < minimalPeriod f x, r (f^[n] x) (f^[n+1] x) := by
480+
(periodicOrbit f x).Chain r ↔ ∀ n < minimalPeriod f x, r (f^[n] x) (f^[n + 1] x) := by
481481
by_cases hx : x ∈ periodicPts f
482482
· have hx' := minimalPeriod_pos_of_mem_periodicPts hx
483483
have hM := Nat.sub_add_cancel (succ_le_iff.2 hx')
@@ -495,7 +495,7 @@ theorem periodicOrbit_chain (r : α → α → Prop) {f : α → α} {x : α} :
495495
simp
496496

497497
theorem periodicOrbit_chain' (r : α → α → Prop) {f : α → α} {x : α} (hx : x ∈ periodicPts f) :
498-
(periodicOrbit f x).Chain r ↔ ∀ n, r (f^[n] x) (f^[n+1] x) := by
498+
(periodicOrbit f x).Chain r ↔ ∀ n, r (f^[n] x) (f^[n + 1] x) := by
499499
rw [periodicOrbit_chain r]
500500
refine ⟨fun H n => ?_, fun H n _ => H n⟩
501501
rw [iterate_succ_apply, ← iterate_mod_minimalPeriod_eq, ← iterate_mod_minimalPeriod_eq (n := n),

Mathlib/Dynamics/PeriodicPts/Lemmas.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ theorem Commute.minimalPeriod_of_comp_eq_mul_of_coprime {g : α → α} (h : Com
6969
(hco : Coprime (minimalPeriod f x) (minimalPeriod g x)) :
7070
minimalPeriod (f ∘ g) x = minimalPeriod f x * minimalPeriod g x := by
7171
apply h.minimalPeriod_of_comp_dvd_mul.antisymm
72-
suffices
73-
∀ {f g : α → α},
72+
suffices ∀ {f g : α → α},
7473
Commute f g →
7574
Coprime (minimalPeriod f x) (minimalPeriod g x) →
7675
minimalPeriod f x ∣ minimalPeriod (f ∘ g) x from

Mathlib/Probability/ConditionalProbability.lean

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ the inverse of the measure of `s`: `cond μ s = (μ s)⁻¹ • μ.restrict s`.
1818
ensures that this is a probability measure (when `μ` is a finite measure).
1919
2020
From this definition, we derive the "axiomatic" definition of conditional probability
21-
based on application: for any `s t : Set Ω`, we have `μ[t|s] = (μ s)⁻¹ * μ (s ∩ t)`.
21+
based on application: for any `s t : Set Ω`, we have `μ[t | s] = (μ s)⁻¹ * μ (s ∩ t)`.
2222
2323
## Main Statements
2424
2525
* `cond_cond_eq_cond_inter`: conditioning on one set and then another is equivalent
2626
to conditioning on their intersection.
27-
* `cond_eq_inv_mul_cond_mul`: Bayes' Theorem, `μ[t|s] = (μ s)⁻¹ * μ[s|t] * (μ t)`.
27+
* `cond_eq_inv_mul_cond_mul`: Bayes' Theorem, `μ[t | s] = (μ s)⁻¹ * μ[s | t] * (μ t)`.
2828
2929
## Notation
3030
3131
This file uses the notation `μ[|s]` the measure of `μ` conditioned on `s`,
32-
and `μ[t|s]` for the probability of `t` given `s` under `μ` (equivalent to the
32+
and `μ[t | s]` for the probability of `t` given `s` under `μ` (equivalent to the
3333
application `μ[|s] t`).
3434
3535
These notations are contained in the scope `ProbabilityTheory`.
@@ -99,7 +99,7 @@ meta def condUnexpander : Lean.PrettyPrinter.Unexpander
9999
#guard_msgs in
100100
#check μ[|s]
101101

102-
/-- Delaborator for `μ[t|s]` notation. -/
102+
/-- Delaborator for `μ[t | s]` notation. -/
103103
@[app_delab DFunLike.coe]
104104
meta def delabCondApplied : Delab :=
105105
whenNotPPOption getPPExplicit <| whenPPOption getPPNotation <| withOverApp 6 do
@@ -212,17 +212,17 @@ lemma cond_eq_zero_of_meas_eq_zero (hμs : μ s = 0) : μ[|s] = 0 := by simp [h
212212

213213
/-- The axiomatic definition of conditional probability derived from a measure-theoretic one. -/
214214
theorem cond_apply (hms : MeasurableSet s) (μ : Measure Ω) (t : Set Ω) :
215-
μ[t|s] = (μ s)⁻¹ * μ (s ∩ t) := by
215+
μ[t | s] = (μ s)⁻¹ * μ (s ∩ t) := by
216216
rw [cond, Measure.smul_apply, Measure.restrict_apply' hms, Set.inter_comm, smul_eq_mul]
217217

218-
theorem cond_apply' (ht : MeasurableSet t) (μ : Measure Ω) : μ[t|s] = (μ s)⁻¹ * μ (s ∩ t) := by
218+
theorem cond_apply' (ht : MeasurableSet t) (μ : Measure Ω) : μ[t | s] = (μ s)⁻¹ * μ (s ∩ t) := by
219219
rw [cond, Measure.smul_apply, Measure.restrict_apply ht, Set.inter_comm, smul_eq_mul]
220220

221-
@[simp] lemma cond_apply_self (hs₀ : μ s ≠ 0) (hs : μ s ≠ ∞) : μ[s|s] = 1 := by
221+
@[simp] lemma cond_apply_self (hs₀ : μ s ≠ 0) (hs : μ s ≠ ∞) : μ[s | s] = 1 := by
222222
simpa [cond] using ENNReal.inv_mul_cancel hs₀ hs
223223

224224
theorem cond_inter_self (hms : MeasurableSet s) (t : Set Ω) (μ : Measure Ω) :
225-
μ[s ∩ t|s] = μ[t|s] := by
225+
μ[s ∩ t | s] = μ[t | s] := by
226226
rw [cond_apply hms, ← Set.inter_assoc, Set.inter_self, ← cond_apply hms]
227227

228228
theorem inter_pos_of_cond_ne_zero (hms : MeasurableSet s) (hcst : μ[t | s] ≠ 0) :
@@ -254,24 +254,24 @@ theorem cond_cond_eq_cond_inter (hms : MeasurableSet s) (hmt : MeasurableSet t)
254254
cond_cond_eq_cond_inter' hms hmt (measure_ne_top μ s)
255255

256256
theorem cond_mul_eq_inter' (hms : MeasurableSet s) (hcs' : μ s ≠ ∞) (t : Set Ω) :
257-
μ[t|s] * μ s = μ (s ∩ t) := by
257+
μ[t | s] * μ s = μ (s ∩ t) := by
258258
obtain hcs | hcs := eq_or_ne (μ s) 0
259259
· simp [hcs, measure_inter_null_of_null_left]
260260
· rw [cond_apply hms, mul_comm, ← mul_assoc, ENNReal.mul_inv_cancel hcs hcs', one_mul]
261261

262262
theorem cond_mul_eq_inter (hms : MeasurableSet s) (t : Set Ω) (μ : Measure Ω) [IsFiniteMeasure μ] :
263-
μ[t|s] * μ s = μ (s ∩ t) := cond_mul_eq_inter' hms (measure_ne_top _ s) t
263+
μ[t | s] * μ s = μ (s ∩ t) := cond_mul_eq_inter' hms (measure_ne_top _ s) t
264264

265265
/-- A version of the law of total probability. -/
266266
theorem cond_add_cond_compl_eq (hms : MeasurableSet s) (μ : Measure Ω) [IsFiniteMeasure μ] :
267-
μ[t|s] * μ s + μ[t|sᶜ] * μ sᶜ = μ t := by
267+
μ[t | s] * μ s + μ[t | sᶜ] * μ sᶜ = μ t := by
268268
rw [cond_mul_eq_inter hms, cond_mul_eq_inter hms.compl, Set.inter_comm _ t,
269269
Set.inter_comm _ t]
270270
exact measure_inter_add_diff t hms
271271

272272
/-- **Bayes' Theorem** -/
273273
theorem cond_eq_inv_mul_cond_mul (hms : MeasurableSet s) (hmt : MeasurableSet t) (μ : Measure Ω)
274-
[IsFiniteMeasure μ] : μ[t|s] = (μ s)⁻¹ * μ[s|t] * μ t := by
274+
[IsFiniteMeasure μ] : μ[t | s] = (μ s)⁻¹ * μ[s | t] * μ t := by
275275
rw [mul_assoc, cond_mul_eq_inter hmt s, Set.inter_comm, cond_apply hms]
276276

277277
end Bayes

0 commit comments

Comments
 (0)