Commit 6e12cd6
authored
chore: targeted manual golf in Probability/Martingale + TripleLawDropInfo (#112)
Eight LSP-verified proof-body shrinks in the files that the bulk autoGolf
run in PR #16 never reached. Each site was probed individually rather
than via `exact?` (which timed out on these measure-heavy goals).
* `Crossings/Pathwise.lean:54` `up_neg_flip_eq_down`:
body collapses to `rfl` — `downcrossingsBefore` is definitionally
`upcrossingsBefore (-b) (-a) (negProcess X)`, so both sides of the
lemma unfold to the same `⨆ N, ...` term.
* `Crossings/Pathwise.lean:123` `upcrossingsBefore_congr`:
four lines (`simp only`/`congr`/`ext`/`rw`) collapse to
`simp [upcrossingsBefore, upperCrossingTime_congr h]`.
* `Reverse.lean:80` `revCEFinite_martingale`:
inline the local `have : 𝔽 (N-i) ≤ 𝔽 (N-j)` into the final
`condExp_condExp_of_le` call.
* `Crossings/Bounds.lean:45` `hL1_bdd`:
drop the `simp only [revCEFinite]`; `eLpNorm_one_condExp_le_eLpNorm`
unifies definitionally.
* `Crossings/AntitoneLimit.lean:350` `h_tower`:
rewrite as a term-mode `fun n => condExp_condExp_of_le (iInf_le 𝔽 n)
(h_le n)`.
* `Crossings/AntitoneLimit.lean:368` `hL1_conv_Xn`:
six-line `have`/`simp_rw`/`exact` collapses to a single
`simpa [hXn_def, eLpNorm_sub_comm] using hL1_conv`.
* `TripleLawDropInfo/PairLawHelpers.lean:40` `marginal_law_eq_of_pair_law`:
five lines (two `have`s + final `rw`) become a single
`simpa [Measure.map_map …] using congrArg (Measure.map Prod.snd) h_law`.
* `TripleLawDropInfo/DropInfo.lean:211` final square-zero step:
the trailing `have : ... = 0; linarith` two-liner collapses to a single
`nlinarith [sq_nonneg (μ₂ ω - μ₁ ω)]`.
Net: 6 files, +11 / −30 (−19 lines).1 parent 3f592ab commit 6e12cd6
6 files changed
Lines changed: 11 additions & 30 deletions
File tree
- Exchangeability/Probability
- Martingale
- Crossings
- TripleLawDropInfo
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 350 | + | |
| 351 | + | |
354 | 352 | | |
355 | 353 | | |
356 | 354 | | |
| |||
366 | 364 | | |
367 | 365 | | |
368 | 366 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 367 | + | |
375 | 368 | | |
376 | 369 | | |
377 | 370 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 125 | + | |
131 | 126 | | |
132 | 127 | | |
133 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
84 | 81 | | |
85 | 82 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
| 212 | + | |
214 | 213 | | |
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
0 commit comments