Skip to content

Commit 95066dd

Browse files
refactor: golf cubic root-count endpoint
1 parent 7fccfe3 commit 95066dd

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎ARCHITECTURE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,12 @@ The root-count tactic follows the same theorem/frontend boundary:
344344
- `CoreRules` and `LowDegreeRules` own the two macro-expansion tables; and
345345
- `Tactic.RootCount` remains the compatibility facade.
346346

347-
The six implementation units have 630, 405, 653, 401, 750, and 460 local
347+
The six implementation units have 630, 404, 653, 401, 750, and 460 local
348348
lines, respectively, replacing one 3,226-line mixed source while preserving
349349
all 191 theorem and syntax declarations. The reusable sequence core has an
350350
83-module / 30,789-line closure, compared with 138 modules / 62,863 lines for
351351
the historical facade before the split. The low-degree theorem endpoint has a
352-
136-module / 59,977-line closure and remains independent of tactic syntax and
352+
136-module / 59,976-line closure and remains independent of tactic syntax and
353353
rules.
354354

355355
`Tactic.OEIS` is undergoing the same certificate-family migration. Its

‎RealRooted/Tactic/RootCount/LowDegree.lean‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ theorem posCombo_sameDegree_rootCount_degree_le_three
173173
rcases Nat.le_or_eq_of_le_succ hfdeg with hle | hfdeg3
174174
· exact rootCount_diff_le_one_of_posCombo_sameDegree_natDegree_le_two
175175
hf_pos hg_pos hfnn hgnn hfg hdeg hno hle x
176-
· have hgdeg3 : g.natDegree = 3 := by rw [hdeg, hfdeg3]
177-
exact sameDegree_cubic_rootCount_le_one_of_secondRootBound
178-
cubicSecondRootBound_from_analytic hfdeg3 hgdeg3
176+
· exact sameDegree_cubic_rootCount_le_one_of_secondRootBound
177+
cubicSecondRootBound_from_analytic hfdeg3 (hdeg.trans hfdeg3)
179178
(hfg.isRealRooted_left_of_sameDegree hf_pos hg_pos hdeg).2
180179
(hfg.isRealRooted_right_of_sameDegree hf_pos hg_pos hdeg).2
181180
hf_pos hg_pos hfg x

0 commit comments

Comments
 (0)