Commit c5a05f1
chore(SplitFold): docstring and attribute hygiene follow-up to #670
Follow-up to #670, which merged as-is because none of these were blocking.
No statement, definition or proof changes semantics.
Docstrings:
- `splitNth_eval_comp_pow` referenced `splitNth_def`, renamed by #670 to
`eq_sum_splitNth`.
- The module docstring and that docstring advertised `Polynomial.foldNth`,
which does not exist in the repo; point at `FoldingPolynomial.polyFold`
and `polyFold_eq_sum_of_splitNth` instead.
- `eq_sum_splitNth` and `splitNth_degree_le` used `/- -/` not `/-- -/`, so
the file's key identity had no docstring (pre-existing).
- Note that `splitNth`'s `n = 0` branch is unreachable (`Fin 0` is empty).
Attributes and names:
- Drop `@[simp]` from `splitNth_degree_le` and pass it explicitly to the
one `aesop` call that needs it. It is an inequality, and it was
load-bearing invisibly: `folding_polynomial_eq_sum_splitNth` relied on
the attribute without naming it.
- `splitNthNoncomputable_of_nz` -> `private lemma
splitNthNoncomputable_of_neZero`: a `@[simp]` lemma about a `private`
definition should not sit in the global simp set; its sibling
`splitNthNoncomputable_coeff` was already private.
- `splitNthNoncomputable_eq_splitNth` -> `splitNth_eq_splitNthNoncomputable`,
matching the statement's direction.
Deprecation sweep:
- `Polynomial.eval_finset_sum` -> `eval_finsetSum` (4 sites in
`Fri/RoundConsistency.lean`).
`./scripts/validate.sh` green.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 646fb08 commit c5a05f1
2 files changed
Lines changed: 16 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
246 | | - | |
| 244 | + | |
| 245 | + | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments