Commit bec97d6
committed
chore(Algebra/BigOperators): add to_additive for expectation and antidiagonal lemmas (#42763)
- Add `@[to_additive]` attributes to:
- `Expect.expect_inv_index`
- `Nat.prod_antidiagonal_succ`
- `Nat.prod_antidiagonal_succ'`
- Remove the duplicated additive proofs:
- `expect_neg_index`
- `sum_antidiagonal_succ`
- `sum_antidiagonal_succ'`
Used Aristotle AI to find the duplicates, and verify the change, and ChatGPT, AmazonQ to navigate VS Code, cli, running tests, making the PR, understanding the proof and so forth1 parent a47a014 commit bec97d6
2 files changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
280 | 281 | | |
281 | 282 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 283 | | |
286 | 284 | | |
287 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 45 | | |
52 | 46 | | |
53 | 47 | | |
| |||
0 commit comments