Skip to content

[Merged by Bors] - chore(Order/Defs/Unbundled): deprecate def Symmetric in favor of class Std.Symm - #38092

Closed
SnirBroshi wants to merge 19 commits into
leanprover-community:masterfrom
SnirBroshi:chore/relation-duplication/symmetric
Closed

SnirBroshi wants to merge 19 commits into
leanprover-community:masterfrom
SnirBroshi:chore/relation-duplication/symmetric

Conversation

@SnirBroshi

Copy link
Copy Markdown
Collaborator

@SnirBroshi SnirBroshi added the t-order Order theory label Apr 15, 2026
@github-actions

github-actions Bot commented Apr 15, 2026 •

Copy link
Copy Markdown

PR summary baf5a81bbd

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ Coprime.stdSymm
+ Disjoint.stdSymm
+ Equivalence.isEquiv
+ Equivalence.stdSymm
+ IsEquiv.comap
+ Join.refl
+ Join.symm
+ Pairwise.insert_of_symm
+ R0Space.specializes_symmetric
+ Std.Symm.compl
+ Std.Symm.flip_eq
+ Std.Symm.forall_existsUnique_iff
+ Std.Symm.forall_existsUnique_iff'
+ Std.Symm.iff
+ Std.Symm.pairwise_on
+ Std.Symm.swap_eq
+ _root_.isAntichain_insert_of_symm
+ additive_of_symmetric_of_total
+ insert_of_symm
+ instance (α : Sort*) : Std.Symm (α := α) Ne
+ instance (α : Type*) : Std.Symm (α := α) ⊤
+ instance (α : Type*) : Std.Symm (α := α) ⊥
+ instance : Std.Symm (IsUniform G ε)
+ instance _root_.Std.Symm.map {r : α → α → Prop} [Std.Symm r] (f : α → β) :
+ multiplicative_of_symm_of_total
+ pairwise_insert_of_symm
+ pairwise_insert_of_symm_of_notMem
+ pairwise_pair_of_symm
+ pairwise_union_of_symm
+ symm_apply_eq_iff
+ symm_disjoint
+ symm_isRelPrime
+ symm_of_symmetricRelation
+ symmetric_codisjoint
+ toRel_symm
+ zag_symm
+ zigzag_symm
++++ stdSymm
++++---- symmetric
++-- LiftRel.symm
- _root_.isAntichain_insert_of_symmetric
- instance : Std.Symm (Join r)
- instance : Std.Symm (α := Perm α) Disjoint
- instance [H : Std.Symm r] : Std.Symm (ReflGen r)
- instance [H : Std.Symm r] : Std.Symm (ReflTransGen r)
- instance [H : Std.Symm r] : Std.Symm (TransGen r)
- instance _root_.Std.Symm.map {r : α → α → Prop} [h : Std.Symm r] (f : α → β) :
--++ Pairwise.forall

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)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit baf5a81).

  • +40 new declarations
  • −5 removed declarations
+CategoryTheory.zag_symm
+CategoryTheory.zigzag_symm
+Equiv.Perm.Disjoint.stdSymm
-Equiv.Perm.instSymmDisjoint
+Equivalence.isEquiv
+Equivalence.stdSymm
+Function.symm_apply_eq_iff
+IsAntichain.insert_of_symm
+IsEquiv.comap
+MeasureTheory.AEDisjoint.stdSymm
+Nat.Coprime.stdSymm
+Pi.instSymmBotForallForallProp
+Pi.instSymmTopForallForallProp
+R0Space.specializes_symm
+Relation.Join.refl
+Relation.Join.symm
-Relation.ReflGen.instSymm
+Relation.ReflGen.stdSymm
-Relation.ReflTransGen.instSymm
+Relation.ReflTransGen.stdSymm
-Relation.TransGen.instSymm_mathlib
+Relation.TransGen.stdSymm
-Relation.instSymmJoin
+Set.Pairwise.insert_of_symm
+Set.pairwise_insert_of_symm
+Set.pairwise_insert_of_symm_of_notMem
+Set.pairwise_pair_of_symm
+Set.pairwise_union_of_symm
+SimpleGraph.instSymmFinsetIsUniform
+Std.Symm.compl
+Std.Symm.flip_eq
+Std.Symm.forall_existsUnique_iff
+Std.Symm.forall_existsUnique_iff'
+Std.Symm.iff
+Std.Symm.pairwise_on
+Std.Symm.swap_eq
+Sym2.toRel_symm
+TypeCat.symm_of_symmetricRelation
+additive_of_symm_of_total
+instSymmNe_mathlib
+isAntichain_insert_of_symm
+multiplicative_of_symm_of_total
+symm_codisjoint
+symm_disjoint
+symm_isRelPrime

No changes to strong technical debt.

No changes to weak technical debt.

Current commit baf5a81bbd
Reference commit 38b5af20b8

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).

@SnirBroshi

Copy link
Copy Markdown
Collaborator Author

!bench

@leanprover-radar

leanprover-radar commented Apr 16, 2026 •

Copy link
Copy Markdown

Benchmark results for d8d0738 against 25560be are in. No significant results found. @SnirBroshi

  • ✅ build//instructions: -18.2G (-0.01%)

Medium changes (1🟥)

  • 🟥 build/module/Mathlib.Combinatorics.SimpleGraph.Sum//instructions: +1.7G (+17.72%)

Small changes (1✅, 1🟥)

  • ✅ build/module/Mathlib.Algebra.Order.Module.Algebra//instructions: -227.5M (-5.45%)
  • 🟥 build/module/Mathlib.Combinatorics.SimpleGraph.Basic//instructions: +1.6G (+5.70%)

@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 30, 2026
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 30, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 2, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 2, 2026

@dagurtomas dagurtomas left a comment

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.

Thanks!

maintainer delegate

Comment thread Mathlib/Order/Defs/Unbundled.lean Resolved
@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by dagurtomas.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label May 14, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 19, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 19, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jun 5, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jun 6, 2026
@SnirBroshi
SnirBroshi temporarily deployed to cache-upload-forks June 7, 2026 00:37 — with GitHub Actions Inactive
@SnirBroshi
SnirBroshi temporarily deployed to cache-upload-forks June 7, 2026 01:23 — with GitHub Actions Inactive

@bryangingechen bryangingechen left a comment

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.

Thanks!
bors d+

Comment thread Mathlib/Topology/Separation/Basic.lean Resolved
@mathlib-bors

mathlib-bors Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

✌️ SnirBroshi can now approve this pull request until 2026-06-23 16:38 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.

@mathlib-triage mathlib-triage Bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Jun 9, 2026
@SnirBroshi

Copy link
Copy Markdown
Collaborator Author

Thank you!

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Jun 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

mathlib-bors Bot pushed a commit that referenced this pull request Jun 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(Order/Defs/Unbundled): deprecate def Symmetric in favor of class Std.Symm [Merged by Bors] - chore(Order/Defs/Unbundled): deprecate def Symmetric in favor of class Std.Symm Jun 10, 2026
@mathlib-bors mathlib-bors Bot closed this Jun 10, 2026
xroblot pushed a commit to xroblot/mathlib4 that referenced this pull request Jun 13, 2026
danielraggi added a commit to dannyhe652/mathlib4 that referenced this pull request Jun 19, 2026
Upstream API changes broke the build:
- `SimpleGraph.symm` is now `Std.Symm Adj` (was `Symmetric Adj`, leanprover-community#38092);
  fill the inner field via `symm.symm` in `kempeSubgraph`.
- `incidenceFinset` and `(incidenceSet _).toFinset` now carry different
  `Fintype` instances, so `convert` no longer closes the card goal; route
  through `coe_incidenceFinset`/`ncard_coe_finset` instead.
- `Coloring.VertexColoring` import replaced by `Coloring.Vertex` (dir split).
- `Set.mem_diff` → `Set.mem_sdiff` (deprecation).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
ReemMelamed pushed a commit to ReemMelamed/mathlib4 that referenced this pull request Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants