Skip to content

chore: bump mathlib#527

Merged
fpvandoorn merged 9 commits intomasterfrom
bump
Jan 19, 2026
Merged

chore: bump mathlib#527
fpvandoorn merged 9 commits intomasterfrom
bump

Conversation

@grunweg
Copy link
Copy Markdown
Collaborator

@grunweg grunweg commented Jan 16, 2026

@grunweg
Copy link
Copy Markdown
Collaborator Author

grunweg commented Jan 19, 2026

Do not merge this yet - there are three sorries left on this PR.

rw [sq, Finset.sum_mul_sum, ← Finset.sum_product']
have dsub : (𝓙₆ t u₁).toFinset.diag ⊆ (𝓙₆ t u₁).toFinset ×ˢ (𝓙₆ t u₁).toFinset :=
Finset.filter_subset ..
sorry -- was: Finset.filter_subset --..
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable {α} (s t : Finset α) in
theorem _root_.Finset.diag_eq_filter [DecidableEq α] :
    Finset.diag s = (s ×ˢ s).filter fun a : α × α => a.fst = a.snd := by
  ext; simp +contextual

open Classical in
lemma sum_𝓙₆_indicator_sq_eq {f : Grid X → X → ℝ≥0∞} :
    (∑ J ∈ (𝓙₆ t u₁).toFinset, (J : Set X).indicator (f J) x) ^ 2 =
    ∑ J ∈ (𝓙₆ t u₁).toFinset, (J : Set X).indicator (f J · ^ 2) x := by
  rw [sq, Finset.sum_mul_sum, ← Finset.sum_product']
  have dsub : (𝓙₆ t u₁).toFinset.diag ⊆ (𝓙₆ t u₁).toFinset ×ˢ (𝓙₆ t u₁).toFinset := by
    rw [Finset.diag_eq_filter]
    exact Finset.filter_subset ..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grunweg and others added 4 commits January 19, 2026 16:15
_ ≤ _ := by
gcongr; rw [edist_dist]; apply ofReal_le_of_le_toReal
rw [toReal_div, toReal_ofNat]; linarith
replace dnt := @dnt x
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fpvandoorn Do you know how difficult it would be to make finiteness support this?
Prior to this line, dnt has the form ∀ {z : X}, depth O z ≠ ⊤; finiteness needs the statement for x.
Adding it as an extra term feels fine to me, so perhaps the answer should just be "wontfix".

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like it falls well within the scope of aesop, so I don't know why this wouldn't work. Is it related to argument explicitness?

@grunweg grunweg changed the title WIP: bump mathlib chore: bump mathlib Jan 19, 2026
@fpvandoorn fpvandoorn merged commit 9d5afa1 into master Jan 19, 2026
2 checks passed
@fpvandoorn fpvandoorn deleted the bump branch January 19, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants