Commit 2b405ca
authored
chore: delete sigma-finite trim wrappers (incl. ForMathlib library) (#24)
The two local lemmas asserting `SigmaFinite (μ.trim hm)` for finite `μ`
are now redundant: mathlib provides `isFiniteMeasure_trim` as an instance,
and `IsFiniteMeasure.toSigmaFinite` chains automatically. Verified
empirically that `inferInstance` finds `SigmaFinite (μ.trim hm)` at every
former call site without help.
Deleted:
- ForMathlib/MeasureTheory/Measure/TrimInstances.lean (the `sigmaFinite_trim`
wrapper, body `inferInstance`)
- Exchangeability/Probability/CondExpBasic.lean (`sigmaFinite_trim_of_le`,
body `(inferInstance : IsFiniteMeasure _).toSigmaFinite`)
Replaced 5 call sites with `inferInstance`:
- Exchangeability/Probability/CondExp.lean: 3 sites (lines 333, 359, 611);
also dropped the `export MeasureTheory.Measure (sigmaFinite_trim)` line
and the corresponding module-docstring entries.
- Exchangeability/Probability/CondIndep/KallenbergIndicator.lean:100
- Exchangeability/DeFinetti/ViaL2/AlphaIicCE.lean:287
- Exchangeability/DeFinetti/ViaMartingale/FutureFiltration.lean:111 (the
local `sigmaFinite_trim_tailSigma` lemma is now `inferInstance` too)
Touches local API/export shape:
- Removed `import ForMathlib.MeasureTheory.Measure.TrimInstances` from CondExp.lean.
- Removed `ForMathlib.lean` (was a single-line root that imported only the
deleted file).
- Removed the `[[lean_lib]] name = "ForMathlib"` section and `"ForMathlib"`
from `defaultTargets` in `lakefile.toml`. Project now has only one lean_lib
(`Exchangeability`).
The `ForMathlib` directory was a staging area for upstreaming candidates
(per PR #13's blueprint). It is no longer needed — the only file it
contained has been superseded by mathlib instance inference.
Net -80 lines, 3 files deleted, build down from 3531 to 3528 jobs.1 parent 9d14638 commit 2b405ca
8 files changed
Lines changed: 10 additions & 90 deletions
File tree
- Exchangeability
- DeFinetti
- ViaL2
- ViaMartingale
- Probability
- CondIndep
- ForMathlib/MeasureTheory/Measure
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | | - | |
| 286 | + | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 108 | + | |
| 109 | + | |
112 | 110 | | |
113 | 111 | | |
114 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
| |||
299 | 294 | | |
300 | 295 | | |
301 | 296 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 297 | | |
316 | 298 | | |
317 | 299 | | |
| |||
330 | 312 | | |
331 | 313 | | |
332 | 314 | | |
333 | | - | |
| 315 | + | |
334 | 316 | | |
335 | 317 | | |
336 | 318 | | |
| |||
356 | 338 | | |
357 | 339 | | |
358 | 340 | | |
359 | | - | |
| 341 | + | |
360 | 342 | | |
361 | 343 | | |
362 | 344 | | |
| |||
608 | 590 | | |
609 | 591 | | |
610 | 592 | | |
611 | | - | |
| 593 | + | |
612 | 594 | | |
613 | 595 | | |
614 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 40 | | |
52 | 41 | | |
53 | 42 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
0 commit comments