feat (Order/Interval/Finset/Floor): Relating membership of an Int or Nat cast in intervals to intervals of floor and ceil functions#41512
Conversation
PR summary effbb9d950Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| 5004 | 1 | exposed public sections |
Current commit effbb9d950
Reference commit b9a56a66c2
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
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
🚨 PR Title Needs FormattingPlease update the title to match our commit style conventions. Errors from script: Details on the required title formatThe title should fit the following format:
|
For a
FloorRing(resp.FloorSemiring)α, we relate membership of a cast↑nin an intervalof
αto membership of the integer (resp. natural number)nin the corresponding interval withfloor/ceil endpoints, for instance
Int.coe_mem_Ioc_iff : ↑n ∈ Set.Ioc a b ↔ n ∈ Set.Ioc ⌊a⌋ ⌊b⌋.If the right-hand side is finite, we express them as
Finsetinstead.AI was used to extend a small initial set of human-generated lemmas to the full set in this PR, which were then reviewed and edited by myself.
This code is placed in a new file because the core
Algebra.Order.Floorfiles explicitly disallow the use ofFinset.