Skip to content

[Merged by Bors] - feat(Logic/Relation): Std.Symm instances - #38229

Closed
Jun2M wants to merge 2 commits into
leanprover-community:masterfrom
Jun2M:RelationStdSymmInstance
Closed

Jun2M wants to merge 2 commits into
leanprover-community:masterfrom
Jun2M:RelationStdSymmInstance

Conversation

@Jun2M

@Jun2M Jun2M commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@github-actions

github-actions Bot commented Apr 19, 2026 •

Copy link
Copy Markdown

PR summary f3dd886f91

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ Std.Symm.comap
+ instance : Std.Symm (Join r)
+ 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 [IsTrans α r] : IsTrans α (ReflGen r)
+ instance [Std.Refl r] : Std.Refl (TransGen r)
+ instance _root_.Std.Symm.map {r : α → α → Prop} [h : Std.Symm r] (f : α → β) :
+ symmetric

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

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

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./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-logic Logic (model theory, etc) label Apr 19, 2026

@b-mehta b-mehta 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!

@b-mehta b-mehta 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.

Oops, meant to hit merge!

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Apr 19, 2026
@mathlib-triage mathlib-triage Bot added the ready-to-merge This PR has been sent to bors. label Apr 19, 2026
@mathlib-bors

mathlib-bors Bot commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Logic/Relation): Std.Symm instances [Merged by Bors] - feat(Logic/Relation): Std.Symm instances Apr 19, 2026
@mathlib-bors mathlib-bors Bot closed this Apr 19, 2026
@SnirBroshi

Copy link
Copy Markdown
Collaborator

All of these Symm instances (except for ReflGen) exist in #38092, because they already existed as Symmetric lemmas before this PR.
This being merged creates unnecessary work for me on top of already pretty difficult work of managing all of the relation properties.
Please try to avoid this in the future. I think that the relation-properties effort was reasonably well-known (as everything except for Symmetric is already deprecated) for it to come up during review of this PR, and this conflict shouldn't have happened.

FWIW if this PR hadn't been merged in less than 24h I would have seen it and flagged the issue myself.

@Jun2M

Jun2M commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator Author

Oh, I am sorry, @SnirBroshi. I wanted some instances for TransGen and ReflGen and other Std.Symm instances looked like an easy win. I would be very happy to see #38092 merged!

SnirBroshi added a commit to SnirBroshi/mathlib4 that referenced this pull request Apr 22, 2026
@b-mehta

b-mehta commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

All of these Symm instances (except for ReflGen) exist in #38092, because they already existed as Symmetric lemmas before this PR. This being merged creates unnecessary work for me on top of already pretty difficult work of managing all of the relation properties. Please try to avoid this in the future. I think that the relation-properties effort was reasonably well-known (as everything except for Symmetric is already deprecated) for it to come up during review of this PR, and this conflict shouldn't have happened.

FWIW if this PR hadn't been merged in less than 24h I would have seen it and flagged the issue myself.

Apologies! My thought was actually that since Symmetric was being deprecated, that this being merged would make it easier for you, since there's now a declaration you can deprecate in favour of, rather than needing to make your own.

jessealama pushed a commit to jessealama/mathlib4 that referenced this pull request May 2, 2026
gaetanserre pushed a commit to gaetanserre/mathlib4 that referenced this pull request May 5, 2026
gasparattila pushed a commit to gasparattila/mathlib4 that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-logic Logic (model theory, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants