Skip to content

[Merged by Bors] - feat(Topology/Algebra/ValuativeTopology): checking IsValuativeTopology using any compatible valuation#41527

Closed
mathlib-splicebot[bot] wants to merge 6 commits into
masterfrom
splice-bot/pr-36769-Mathlib-Topology-Algebra-ValuativeRel-ValuativeTopology.lean-70e684a549-i8zprqh
Closed

[Merged by Bors] - feat(Topology/Algebra/ValuativeTopology): checking IsValuativeTopology using any compatible valuation#41527
mathlib-splicebot[bot] wants to merge 6 commits into
masterfrom
splice-bot/pr-36769-Mathlib-Topology-Algebra-ValuativeRel-ValuativeTopology.lean-70e684a549-i8zprqh

Conversation

@mathlib-splicebot

@mathlib-splicebot mathlib-splicebot Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Add two intro methods of IsValuativeTopology.

This PR was automatically created from PR #36769 by @jjdishere via a review comment by @jjdishere.

Co-authored-by: @faenuccio


@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

PR summary 9de27b745d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ of_mem_nhds_iff_vle
+ of_mem_nhds_zero_iff_vle

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean -- unavailable)

⚠️ The Mathlib cache for this PR's merge-base isn't on the server (typically a bors-batch intermediate that CI never built). Merge master into this PR and push to refresh.


No changes to strong technical debt.

No changes to weak technical debt.

Current commit 9de27b745d
Reference commit e3b73828b0

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Jul 9, 2026
@jjdishere jjdishere changed the title chore(Topology/Algebra/ValuativeRel/ValuativeTopology): automated extraction from #36769 feat(Topology/Algebra/ValuativeTopology): checking IsValuativeTopology using any compatible valuation Jul 9, 2026
@jjdishere jjdishere added the t-algebra Algebra (groups, rings, fields, etc) label Jul 9, 2026
@jjdishere jjdishere requested a review from riccardobrasca July 9, 2026 08:17
Comment thread Mathlib/Topology/Algebra/ValuativeRel/ValuativeTopology.lean Outdated
Comment on lines +120 to +122
refine ⟨fun ⟨γ, hγ⟩ ↦ ⟨γ, subset_of_eq_of_subset (ext (fun a ↦ ⟨?_, ?_⟩)) hγ⟩,
fun ⟨γ, hγ⟩ ↦ ⟨γ, subset_of_eq_of_subset (ext (fun a ↦ ⟨?_, ?_⟩)) hγ⟩⟩ <;>
first | exact fun ⟨_, ⟨_, h⟩⟩ ↦ by simpa [← h] | exact fun h ↦ ⟨- x + a, ⟨h, by simp⟩⟩

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we make this a little more readable? Even if it becomes like 5-10 lines I don't think it's a problem.

@faenuccio faenuccio Jul 9, 2026

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.

Still 3 lines, but I guess now it is much better.

with the valuative relation, then the underlying topology is valuative. -/
theorem of_mem_nhds_zero_iff_vle [IsTopologicalAddGroup R]
(H : ∀ {s : Set R}, s ∈ 𝓝 0 ↔ ∃ (γ : (ValueGroup₀ (.ofClass v))ˣ),
(·) '' {z : R | v.restrict z < γ} ⊆ s) : IsValuativeTopology R := by

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
(·) '' {z : R | v.restrict z < γ} ⊆ s) : IsValuativeTopology R := by
{z : R | v.restrict z < γ} ⊆ s) : IsValuativeTopology R := by

Maybe I am missing something, but why are you still applying the identity?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixed. Thanks!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Also modified previous lemma.

@riccardobrasca riccardobrasca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

✌️ mathlib-splicebot[bot] can now approve this pull request until 2026-07-24 00:20 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@jjdishere

Copy link
Copy Markdown
Collaborator

Let's see whether I can do this.

bors r+

@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

🔒 Permission denied

An existing reviewer can click here to make jjdishere a reviewer.

@jjdishere

Copy link
Copy Markdown
Collaborator

@riccardobrasca
It seems that I am not mathlib-splicebot : /

@riccardobrasca

Copy link
Copy Markdown
Member

Hmm, we need to fix this, I always delegate the bot instead of the real author!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 10, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 10, 2026
…gy` using any compatible valuation (#41527)

Add two intro methods of `IsValuativeTopology`.

This PR was automatically created from PR #36769 by @jjdishere via a [review comment](#36769 (comment)) by @jjdishere.

Co-authored-by: @faenuccio
Co-authored-by: jjdishere <107380768+jjdishere@users.noreply.github.com>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Jiedong Jiang <emailboxofjjd@163.com>
@mathlib-bors mathlib-bors Bot added bors-staging This PR is currently being built by bors on the staging branch. awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Jul 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Build failed:

Fix if necessary, and then someone with permission can run bors r+ or bors retry.

@mathlib-bors mathlib-bors Bot removed ready-to-merge This PR has been sent to bors. bors-staging This PR is currently being built by bors on the staging branch. labels Jul 10, 2026
@riccardobrasca

Copy link
Copy Markdown
Member

bors d=@jjdishere

@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

✌️ jjdishere can now approve this pull request until 2026-07-24 05:02 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@jjdishere

Copy link
Copy Markdown
Collaborator

bors r+

@mathlib-bors mathlib-bors Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-requeue This PR was on the bors queue but came off after a build failure or other issue. labels Jul 10, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 10, 2026
…gy` using any compatible valuation (#41527)

Add two intro methods of `IsValuativeTopology`.

This PR was automatically created from PR #36769 by @jjdishere via a [review comment](#36769 (comment)) by @jjdishere.

Co-authored-by: @faenuccio
Co-authored-by: jjdishere <107380768+jjdishere@users.noreply.github.com>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Jiedong Jiang <emailboxofjjd@163.com>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Topology/Algebra/ValuativeTopology): checking IsValuativeTopology using any compatible valuation [Merged by Bors] - feat(Topology/Algebra/ValuativeTopology): checking IsValuativeTopology using any compatible valuation Jul 10, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 10, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jul 10, 2026
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
…gy` using any compatible valuation (leanprover-community#41527)

Add two intro methods of `IsValuativeTopology`.

This PR was automatically created from PR leanprover-community#36769 by @jjdishere via a [review comment](leanprover-community#36769 (comment)) by @jjdishere.

Co-authored-by: @faenuccio
Co-authored-by: jjdishere <107380768+jjdishere@users.noreply.github.com>
Co-authored-by: Filippo A. E. Nuccio <filippo.nuccio@univ-st-etienne.fr>
Co-authored-by: Jiedong Jiang <emailboxofjjd@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants