Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python

style: state transported cutoff instances as propositions

Collin2f3b11df9386
diff --git a/src/Lib/Adelic/QuotientMeasure/Basic.lean b/src/Lib/Adelic/QuotientMeasure/Basic.lean
index 3e5a84624e6..b40a4cd54c0 100644
--- a/src/Lib/Adelic/QuotientMeasure/Basic.lean
+++ b/src/Lib/Adelic/QuotientMeasure/Basic.lean
@@ -368,14 +368,14 @@ instance hasAddCutoff_of_proper [TopologicalSpace H] [TopologicalSpace X] [Sigma
[T2Space X] [OpensMeasurableSpace X] [ProperVAdd H X] [IsFiniteMeasureOnCompacts ν]
[NeZero ν] : HasAddCutoff ν X := by
let μ : Measure (Multiplicative H) := ν
- let : MeasurableMul (Multiplicative H) :=
+ have : MeasurableMul (Multiplicative H) :=
⟨measurable_const_add (M := H), measurable_add_const (M := H)⟩
- let : MeasurableSMul₂ (Multiplicative H) X := ⟨‹MeasurableVAdd₂ H X›.measurable_vadd⟩
- let : ProperSMul (Multiplicative H) X := ⟨‹ProperVAdd H X›.isProperMap_vadd_pair⟩
- let : μ.IsMulRightInvariant := ⟨‹ν.IsAddRightInvariant›.map_add_right_eq_self⟩
- let : SFinite μ := ‹SFinite ν›
- let : IsFiniteMeasureOnCompacts μ := ‹IsFiniteMeasureOnCompacts ν›
- let : NeZero μ := ‹NeZero ν›
+ have : MeasurableSMul₂ (Multiplicative H) X := ⟨‹MeasurableVAdd₂ H X›.measurable_vadd⟩
+ have : ProperSMul (Multiplicative H) X := ⟨‹ProperVAdd H X›.isProperMap_vadd_pair⟩
+ have : μ.IsMulRightInvariant := ⟨‹ν.IsAddRightInvariant›.map_add_right_eq_self⟩
+ have : SFinite μ := ‹SFinite ν›
+ have : IsFiniteMeasureOnCompacts μ := ‹IsFiniteMeasureOnCompacts ν›
+ have : NeZero μ := ‹NeZero ν›
obtain ⟨β, hβ⟩ := (hasOrbitCutoff_of_properSMul (ν := μ) (X := X)).exists_isOrbitCutoff
exact ⟨β, hβ.measurable, hβ.lintegral_smul⟩
end
@@ -389,7 +389,7 @@ integral one over each orbit) for every nonzero s-finite right-invariant measure
finite on compact sets. Tau Ceti constructs the weight using the first set in a compact exhaustion
whose orbit preimage has positive measure. -/
@[to_additive existing hasAddCutoff_of_proper]
-instance hasCutoff_of_proper [TopologicalSpace X] [c : SigmaCompactSpace X] [T2Space X]
+instance hasCutoff_of_proper [TopologicalSpace X] [SigmaCompactSpace X] [T2Space X]
[OpensMeasurableSpace X] [ProperSMul H X] [IsFiniteMeasureOnCompacts ν] [NeZero ν] :
HasCutoff ν X := by
obtain ⟨β, hβ⟩ := (hasOrbitCutoff_of_properSMul (ν := ν) (X := X)).exists_isOrbitCutoff