Title: 'Root Finding by Similarity and Analogy: A Bracketing Method with a Data-Selected Decision Layer'. Abstract 246 words. Main text 10.4k words (was 17.4k): search reports moved to Appendices A (old 6-7), B (wall-clock), C (negative results); revision history removed; pronouns for Chandrupatla's method fixed; tables numbered in order. New: Algorithm 2 (complete A'), the decision layer counted honestly in 6.5, Code and data availability, Appendix D (30 pre-registrations against the first commit of their own results, read from git by check_prereg_order.py: 25 before, 4 same commit, 1 decided on the smoke; A' frozen at8027d7fbetween corpus 4's definition657df10and its results6d2531e). Literature: Bus & Dekker 1975, Fernandez-Diaz & Menendez-Perez 2023 (two dimensionless parameters; SFRFm on sign(f)|f|^(1/m) with known multiplicity - the nearest precursor of the split), Cordero-Neta-Torregrosa 2021; Illinois and Ridders cited. verify_article: explicit check that every head-to-head row sums to its set. check_new_numbers.py: no number new to the text except headings, references, hashes. Server: verify 527 OK / 0 BAD, regression x2 1232 passed, PDF 30 pages, 0 errors, 0 undefined, 0 overfull. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
20 lines
892 B
Python
20 lines
892 B
Python
"""Tables numbered in the order they appear (section 7's corpora tables come before 7.1's
|
|
controls): 10 -> 8, 10b -> 8b, 11 -> 9, 8 -> 10, 9 -> 11, in one pass; and the last two
|
|
pronouns for Chandrupatla's method in Appendix A.6.
|
|
|
|
python -u apply_table_order.py
|
|
"""
|
|
import re
|
|
|
|
PATH = "article/sim_numerics.md"
|
|
MAP = {"10": "8", "10b": "8b", "11": "9", "8": "10", "9": "11"}
|
|
src = open(PATH, encoding="utf8").read()
|
|
src = re.sub(r"Table (10b|10|11|8|9)(?![0-9a-z])", lambda m: "Table " + MAP[m.group(1)], src)
|
|
for old, new in (("and 100% of his steps.", "and 100% of its steps."),
|
|
("His band inside our step confirms", "Its band inside our step confirms")):
|
|
assert src.count(old) == 1, old
|
|
src = src.replace(old, new)
|
|
open(PATH, "w", encoding="utf8").write(src)
|
|
caps = re.findall(r"^\*\*Table ([0-9A-D]+[a-c]?)\.\*\*", src, re.M)
|
|
print("captions in order:", caps)
|