Skip to content

feat(ModelTheory): semilinear sets are closed under intersection and set difference - #27789

Closed
staroperator wants to merge 26 commits into
leanprover-community:masterfrom
staroperator:semilinear_fg
Closed

staroperator wants to merge 26 commits into
leanprover-community:masterfrom
staroperator:semilinear_fg

Conversation

@github-actions

github-actions Bot commented Jul 31, 2025 •

Copy link
Copy Markdown

PR summary eb83b6d633

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Nat (new file) 1287
Mathlib.ModelTheory.Arithmetic.Presburger.Semilinear.Basic (new file) 1288

Declarations diff

+ IsLinearSet.exists_fg_eq_subtypeVal
+ IsSemilinearSet.biInter
+ IsSemilinearSet.biInter_finset
+ IsSemilinearSet.compl
+ IsSemilinearSet.diff
+ IsSemilinearSet.exists_fg_eq_subtypeVal
+ IsSemilinearSet.exists_fg_eq_subtypeVal₂
+ IsSemilinearSet.iInter
+ IsSemilinearSet.inter
+ IsSemilinearSet.preimage
+ IsSemilinearSet.sInter
+ Nat.addSubmonoidFG_eqLocusM
+ Nat.addSubmonoidFG_of_subtractive
+ Nat.isLinearSet_iff_exists_matrix
+ Nat.isSemilinearSet_biInter
+ Nat.isSemilinearSet_biInter_finset
+ Nat.isSemilinearSet_compl
+ Nat.isSemilinearSet_compl_of_isProperLinearSet
+ Nat.isSemilinearSet_diff
+ Nat.isSemilinearSet_inter
+ Nat.isSemilinearSet_inter_of_isLinearSet
+ Nat.isSemilinearSet_preimage
+ Nat.isSemilinearSet_preimage_of_isLinearSet
+ Nat.isSemilinearSet_sInter
+ Nat.isSemilinearSet_setOf_eq
+ Nat.isSemilinearSet_setOf_mulVec_eq
+ isLinearSet_iff_exists_fin_addMonoidHom

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

@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 31, 2025
@grunweg grunweg added the t-logic Logic (model theory, etc) label Aug 4, 2025
@staroperator staroperator changed the title feat(ModelTheory): semilinear sets in finitely generated commutative cancellative monoids feat(ModelTheory): semilinear sets are closed under intersection and set difference Aug 5, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-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 Aug 11, 2025
@mathlib4-merge-conflict-bot

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 Aug 27, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-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 Aug 28, 2025
@mathlib4-merge-conflict-bot

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 Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) t-logic Logic (model theory, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants