Skip to content

[Merged by Bors] - refactor(ModelTheory): restate iAlls for a more convenient statement#20161

Closed
ChrisHughes24 wants to merge 5 commits intomasterfrom
restateiAlls
Closed

[Merged by Bors] - refactor(ModelTheory): restate iAlls for a more convenient statement#20161
ChrisHughes24 wants to merge 5 commits intomasterfrom
restateiAlls

Conversation

@ChrisHughes24
Copy link
Copy Markdown
Member

@ChrisHughes24 ChrisHughes24 commented Dec 21, 2024


Most of the time I used it f was just the identity function anyway. It's usually easier to just relabel the formula if it's the wrong type, because I usually know the type β, and given that I can see the expected type of my formula, and usually it's the same as the formula I'm giving it anyway, and if not I can relabel. Figuring out what f should be is kind of a headache without the help of seeing the expected type of everything.

Open in Gitpod

@ChrisHughes24 ChrisHughes24 added the t-logic Logic (model theory, etc) label Dec 21, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 21, 2024

PR summary 8051169903

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

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

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

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


No changes to technical debt.

You can run this locally as

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


/-- Given a map `f : α → β ⊕ γ`, `iAlls f φ` transforms a `L.Formula α`
into a `L.Formula β` by renaming variables with the map `f` and then universally
variable (β)
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.

Do you want to switch back to {} after iExs? Or was it your intention to keep ()?
Maybe variable in is more appropriate?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That was a mistake. Well spotted. It's now fixed.

@jcommelin jcommelin requested a review from awainverse December 23, 2024 10:49
@awainverse
Copy link
Copy Markdown
Contributor

This seems fine - it is simplifying current usage of iAlls and iExs, and if for some reason we need the previous statement, we can just combine it with relabel.

Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jan 2, 2025
mathlib-bors bot pushed a commit that referenced this pull request Jan 2, 2025
…20161)

Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jan 2, 2025

Pull request successfully merged into master.

Build succeeded!

And happy new year! 🎉

@mathlib-bors mathlib-bors bot changed the title refactor(ModelTheory): restate iAlls for a more convenient statement [Merged by Bors] - refactor(ModelTheory): restate iAlls for a more convenient statement Jan 2, 2025
@mathlib-bors mathlib-bors bot closed this Jan 2, 2025
@mathlib-bors mathlib-bors bot deleted the restateiAlls branch January 2, 2025 14:43
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