Skip to content

Commit 8a9ccb2

Browse files
kim-emclaude
andcommitted
chore: clear remaining nightly build warnings
* `AlternatingFaceMapComplex`: `not_lt_zero'` deprecated, use `not_lt_zero`. * `Finsupp/Single`: `Finsupp.support_single_ne_zero` deprecated, use the unprimed `Finsupp.support_single`. * `Probability/Independence/Basic`: drop the `beta_reduce` step that no longer fires. * `MeasureSpace.eq_zero_of_isEmpty` and `VectorMeasure.eq_zero_of_isEmpty`: these are `@[nontriviality]` (a scoped simp set), so the new `warning.simp.varHead` lint about `μ` being a variable LHS is exactly the "acceptable for scoped simp lemmas" case — suppress per-declaration. * `Over.mapId` / `Under.mapId`: the outer `variable [P.IsStableUnderComposition]` is redundant with the per-decl `[P.IsMultiplicative]`, but is needed by the surrounding `Over.map` / `Under.map` declarations. Suppress the `linter.overlappingInstances` lint on the two `mapId` definitions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1144411 commit 8a9ccb2

6 files changed

Lines changed: 7 additions & 3 deletions

File tree

Mathlib/AlgebraicTopology/AlternatingFaceMapComplex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ theorem d_squared (n : ℕ) : objD X (n + 1) ≫ objD X n = 0 := by
101101
simp_rw [S, Finset.compl_filter, Finset.mem_filter_univ, not_le] at hij'
102102
refine ⟨(j'.pred <| ?_, Fin.castSucc i'), ?_, ?_⟩
103103
· rintro rfl
104-
simp only [Fin.val_zero, not_lt_zero'] at hij'
104+
simp only [Fin.val_zero, not_lt_zero] at hij'
105105
· simpa [S] using! Nat.le_sub_one_of_lt hij'
106106
· simp only [φ, Fin.castLT_castSucc, Fin.succ_pred]
107107
· -- identification of corresponding terms in both sums

Mathlib/CategoryTheory/MorphismProperty/OverAdjunction.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def Over.mapCongr [Q.RespectsIso] {X Y : T} {f g : X ⟶ Y} (hfg : f = g) (hf :
5858
NatIso.ofComponents (fun Y ↦ Over.isoMk (Iso.refl _))
5959

6060
set_option backward.defeqAttrib.useBackward true in
61+
set_option linter.overlappingInstances false in
6162
/-- `Over.map` preserves identities. -/
6263
@[simps!]
6364
def Over.mapId [P.IsMultiplicative] [Q.RespectsIso] (X : T) (f : X ⟶ X := 𝟙 X)
@@ -237,6 +238,7 @@ def Under.mapCongr [Q.RespectsIso] {X Y : T} {f g : X ⟶ Y} (hfg : f = g) (hf :
237238
NatIso.ofComponents (fun Y ↦ Under.isoMk (Iso.refl _))
238239

239240
set_option backward.defeqAttrib.useBackward true in
241+
set_option linter.overlappingInstances false in
240242
/-- `Under.map` preserves identities. -/
241243
@[simps!]
242244
def Under.mapId [P.IsMultiplicative] [Q.RespectsIso] (X : T) (f : X ⟶ X := 𝟙 X)

Mathlib/Data/Finsupp/Single.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ lemma apply_surjective (a : α) : Surjective fun f : α →₀ M ↦ f a :=
162162
RightInverse.surjective fun _ ↦ single_eq_same
163163

164164
theorem support_single_ne_bot (i : α) (h : b ≠ 0) : (single i b).support ≠ ⊥ := by
165-
simpa only [support_single_ne_zero _ h] using! singleton_ne_empty _
165+
simpa only [support_single _ h] using! singleton_ne_empty _
166166

167167
theorem support_single_disjoint {b' : M} (hb : b ≠ 0) (hb' : b' ≠ 0) {i j : α} :
168168
Disjoint (single i b).support (single j b').support ↔ i ≠ j := by

Mathlib/MeasureTheory/Measure/MeasureSpace.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ lemma apply_eq_zero_of_isEmpty [IsEmpty α] {_ : MeasurableSpace α} (μ : Measu
853853
instance instSubsingleton [IsEmpty α] {m : MeasurableSpace α} : Subsingleton (Measure α) :=
854854
fun μ ν => by ext1 s _; rw [apply_eq_zero_of_isEmpty, apply_eq_zero_of_isEmpty]⟩
855855

856+
set_option warning.simp.varHead false in
856857
@[nontriviality]
857858
theorem eq_zero_of_isEmpty [IsEmpty α] {_m : MeasurableSpace α} (μ : Measure α) : μ = 0 :=
858859
Subsingleton.elim μ 0

Mathlib/MeasureTheory/VectorMeasure/Basic.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ lemma apply_eq_zero_of_isEmpty [IsEmpty α] (μ : VectorMeasure α M) (s : Set
290290
instance [IsEmpty α] : Subsingleton (VectorMeasure α M) :=
291291
fun μ ν => by ext; rw [apply_eq_zero_of_isEmpty, apply_eq_zero_of_isEmpty]⟩
292292

293+
set_option warning.simp.varHead false in
293294
@[nontriviality]
294295
theorem eq_zero_of_isEmpty [IsEmpty α] (μ : VectorMeasure α M) : μ = 0 :=
295296
Subsingleton.elim μ 0

Mathlib/Probability/Independence/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ theorem iIndepFun_iff_map_fun_eq_pi_map [Fintype ι] {β : ι → Type*}
877877
simp
878878
intro h S s hs
879879
specialize h₀ (s := fun i ↦ if i ∈ S then s i else univ)
880-
fun i ↦ by beta_reduce; split_ifs with hiS <;> simp [hiS, hs]
880+
fun i ↦ by split_ifs with hiS <;> simp [hiS, hs]
881881
simp only [apply_ite, preimage_univ, measure_univ, Finset.prod_ite_mem, Finset.univ_inter,
882882
Finset.prod_ite, Finset.filter_univ_mem, iInter_ite, iInter_univ, inter_univ, h,
883883
Measure.pi_pi] at h₀

0 commit comments

Comments
 (0)