File size: 5,131 Bytes
d23d6f3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
diff --git a/AbsorptionCutoff/Supercritical/Renewal.lean b/AbsorptionCutoff/Supercritical/Renewal.lean
index be4e8d0..84e0b74 100644
--- a/AbsorptionCutoff/Supercritical/Renewal.lean
+++ b/AbsorptionCutoff/Supercritical/Renewal.lean
@@ -599,7 +599,7 @@ theorem exists_pos_le_norm_one_sub_charFun {μ : Measure ℝ} [IsProbabilityMeas
     have ht₀ne : t₀ ≠ 0 := by
       intro h
       have h' := ht₀K.2
-      simp only [Set.mem_setOf_eq, h, abs_zero] at h'
+      simp only [Set.mem_ofPred_eq, h, abs_zero] at h'
       linarith
     have hpos : 0 < ‖1 - charFun μ t₀‖ := by
       rw [norm_pos_iff, sub_ne_zero]
@@ -1246,7 +1246,7 @@ theorem tendsto_driNorm_tail {g : ℝ → ℝ≥0∞} (hg : driNorm g ≠ ∞) :
   have hkey := hS (Finset.Icc (-(N : ℤ)) (N : ℤ)) hsub
   have hset : {k : ℤ | (N : ℤ) < |k|} = ((Finset.Icc (-(N : ℤ)) (N : ℤ) : Finset ℤ) : Set ℤ)ᶜ := by
     ext k
-    simp only [Set.mem_setOf_eq, Set.mem_compl_iff, Finset.coe_Icc, Set.mem_Icc]
+    simp only [Set.mem_ofPred_eq, Set.mem_compl_iff, Finset.coe_Icc, Set.mem_Icc]
     rw [← not_le, abs_le]
   rw [hset, ← tsum_subtype]
   exact hkey
@@ -1431,7 +1431,7 @@ theorem exists_hasCompactSupport_driNorm_sub_lt {z : ℝ → ℂ} (hz : Continuo
     exact ENNReal.ofReal_le_one.2 (cutoff_le_one M x)
   · refine lt_of_le_of_lt (ENNReal.tsum_le_tsum fun k => ?_) hN
     by_cases hk : (N : ℤ) < |k|
-    · rw [Set.indicator_apply, if_pos (show k ∈ {k : ℤ | (N : ℤ) < |k|} from hk)]
+    · rw [Set.indicator_apply, ite_eq_left (show k ∈ {k : ℤ | (N : ℤ) < |k|} from hk)]
       refine cellSup_mono (fun x => ?_) k
       rw [show z x - (cutoff M x : ℂ) * z x = ((1 - cutoff M x : ℝ) : ℂ) * z x by push_cast; ring,
         enorm_mul]
@@ -1439,7 +1439,7 @@ theorem exists_hasCompactSupport_driNorm_sub_lt {z : ℝ → ℂ} (hz : Continuo
       rw [← ofReal_norm, Complex.norm_real, Real.norm_eq_abs,
         abs_of_nonneg (by linarith [cutoff_le_one M x])]
       exact ENNReal.ofReal_le_one.2 (by linarith [cutoff_nonneg M x])
-    · rw [Set.indicator_apply, if_neg (show k ∉ {k : ℤ | (N : ℤ) < |k|} from hk),
+    · rw [Set.indicator_apply, ite_eq_right (show k ∉ {k : ℤ | (N : ℤ) < |k|} from hk),
         nonpos_iff_eq_zero]
       refine iSup₂_eq_bot.2 fun x hx => ?_
       obtain ⟨h1, h2⟩ := abs_le.1 (not_lt.1 hk)
diff --git a/AbsorptionCutoff/Supercritical/RenewalApprox.lean b/AbsorptionCutoff/Supercritical/RenewalApprox.lean
index a394d70..d4094ca 100644
--- a/AbsorptionCutoff/Supercritical/RenewalApprox.lean
+++ b/AbsorptionCutoff/Supercritical/RenewalApprox.lean
@@ -295,7 +295,7 @@ theorem exists_forall_norm_smoothed_sub_le {w : ℝ → ℂ} (hwc : Continuous w
     · have h2M : ‖w (x - u) - w x‖ ≤ 2 * M :=
         le_trans (norm_sub_le _ _) (by linarith [hM (x - u), hM x])
       have : Set.indicator {u : ℝ | δ < |u|} (smoothKernel a) u = smoothKernel a u := by
-        rw [Set.indicator_apply, if_pos (show u ∈ {u : ℝ | δ < |u|} from hu)]
+        rw [Set.indicator_apply, ite_eq_left (show u ∈ {u : ℝ | δ < |u|} from hu)]
       rw [hg]
       simp only [this]
       nlinarith [mul_nonneg hε.le hK0]
@@ -309,7 +309,7 @@ theorem exists_forall_norm_smoothed_sub_le {w : ℝ → ℂ} (hwc : Continuous w
         rw [dist_eq_norm] at this
         linarith
       have : Set.indicator {u : ℝ | δ < |u|} (smoothKernel a) u = 0 := by
-        rw [Set.indicator_apply, if_neg (show u ∉ {u : ℝ | δ < |u|} from hu)]
+        rw [Set.indicator_apply, ite_eq_right (show u ∉ {u : ℝ | δ < |u|} from hu)]
       rw [hg]
       simp only [this]
       nlinarith
diff --git a/lakefile.toml b/lakefile.toml
index 34acdfc..1a2b828 100644
--- a/lakefile.toml
+++ b/lakefile.toml
@@ -4,26 +4,26 @@ keywords = ["math"]
 defaultTargets = ["AbsorptionCutoff"]
 
 [leanOptions]
-pp.unicode.fun = true # pretty-prints `fun a ↦ b`
+pp.unicode.fun = true
 relaxedAutoImplicit = false
 weak.linter.mathlibStandardSet = true
 maxSynthPendingDepth = 3
 
 [[require]]
 name = "mathlib"
-scope = "leanprover-community"
-rev = "v4.32.0"
-
+git = "https://github.com/leanprover-community/mathlib4.git"
+rev = "d13f23b723b8a846827a245b89c10fc7d3f11612"
 
 [[require]]
 name = "checkdecls"
 git = "https://github.com/PatrickMassot/checkdecls.git"
-[[lean_lib]]
-name = "AbsorptionCutoff"
 
-# Mathlib-only comparator surface. Kept out of `defaultTargets` so a plain
-# `lake build` never elaborates the intentional statement-level `sorry` that
-# each `Challenge.lean` ends with. Build it with `lake build Audit`.
 [[lean_lib]]
-name = "Audit"
-globs = ["Audit", "Audit.+"]
+name = "AbsorptionCutoff"
+globs = [
+  "AbsorptionCutoff.Supercritical.Renewal",
+  "AbsorptionCutoff.Supercritical.RenewalAbel",
+  "AbsorptionCutoff.Supercritical.RenewalKernel",
+  "AbsorptionCutoff.Supercritical.RenewalSinc",
+  "AbsorptionCutoff.Supercritical.RenewalApprox"
+]
diff --git a/lean-toolchain b/lean-toolchain
index 94b9f49..ba8ebf2 100644
--- a/lean-toolchain
+++ b/lean-toolchain
@@ -1 +1 @@
-leanprover/lean4:v4.32.0
+leanprover/lean4:v4.34.1