Skip to content

Bump mathlib to latest master and fix compatibility - #49

Merged
zixiaowang17 merged 3 commits into
mainfrom
fix/contiguity-mathlib-map
Oct 5, 2026
Merged

zixiaowang17 merged 3 commits into
mainfrom
fix/contiguity-mathlib-map

Conversation

@zixiaowang17

@zixiaowang17 zixiaowang17 commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • bump mathlib from v4.33.1 to the latest master commit dd56d02cb7a58fa066c4a2c7fddec3cbb59ae8df
  • update Lean from v4.33.1 to v4.35.0-rc3
  • simplify Contiguous2 and Contiguous3 to use the new ProbabilityMeasure.map API, following @CoolRmal's review comment
  • migrate proof bodies for the current EReal, MemLp, and Radon-Nikodym APIs without changing theorem statements
  • preserve the intentional PosPart compatibility simp lemmas with targeted nolint simpNF annotations

Verification

  • lake build
  • lake lint
  • lake exe mk_all --check

All three checks pass locally against the pinned mathlib commit above. This resolves the compatibility failures reported in #48.

@zixiaowang17

Copy link
Copy Markdown
Collaborator Author

hey @CoolRmal , could you please take a look at this line of definition of your contiguity files??

@CoolRmal

CoolRmal commented Oct 4, 2026

Copy link
Copy Markdown
Contributor
def Contiguous2 (l : Filter α) (P Q : ∀ a, ProbabilityMeasure (Ω a)) : Prop :=
  ∀ (L : ProbabilityMeasure ℝ≥0∞) ⦃h : Filter α⦄, h ≤ l → h.NeBot →
    Tendsto (fun a ↦ (Q a).map ((P a : Measure (Ω a)).rnDeriv (Q a))) h (𝓝 L) →
      L {0} = 0

def Contiguous3 (l : Filter α) (P Q : ∀ a, ProbabilityMeasure (Ω a)) : Prop :=
  ∀ (V : ProbabilityMeasure ℝ≥0∞) ⦃h : Filter α⦄, h ≤ l → h.NeBot →
    Tendsto (fun a ↦ (P a).map ((Q a : Measure (Ω a)).rnDeriv (P a))) h (𝓝 V) →
      ∫⁻ ω, ω ∂V = 1

With the newer mathlib API, a proof that the rnDeriv is measurable is not needed.

@zixiaowang17 zixiaowang17 changed the title Fix contiguity laws across ProbabilityMeasure.map API changes Bump mathlib to latest master and fix compatibility Oct 4, 2026
@zixiaowang17 zixiaowang17 assigned CoolRmal and unassigned CoolRmal Oct 4, 2026
@zixiaowang17

Copy link
Copy Markdown
Collaborator Author

@CoolRmal Thanks! pushed another commit and other related fix

@zixiaowang17
zixiaowang17 merged commit e6d7b25 into main Oct 5, 2026
1 check passed
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.

2 participants