span/  ChatGPT's span checker for the search on critical words (Sections 7, 9 and 11 of the paper)

critical_span.c         The checker, byte for byte as ChatGPT ran it in its audit of round 6
                        (history/round6_audit_by_ChatGPT.txt, section 3).
                        SHA-256 aac5ef8359090fdc5590f6de616ef6f44ad1b761b90b8d5955bc4c2dd1749a61,
                        the hash ChatGPT reported for the file in its audit archive.
logs_from_ChatGPT.txt   The 33 summary lines of ChatGPT's run: 16 ranges for each half and the last range.
run_span.sh             Compiles the checker and compares it with ../scan/uloc.c on three sample ranges;
                        with the argument "full" it reruns the 33 ranges and compares with logs_from_ChatGPT.txt.
results/                Outputs of run_span.sh obtained by Claude on 13 November 2026 (gcc 13.3.0):
                        quick.txt, rerun_all_ranges.txt, rerun_compare.txt.

What the checker does
  Like uloc.c in critical mode, it follows the forced run of every gate c0 = 4 mod 6 of a range along every
  window 2u that is critical, to at most NMAX letters, and counts the configurations ("nodes").  It decides
  whether a word stays critical from the span of the heights x_i = P_i - i*theta of its prefixes,
      max_i x_i - min_i x_i < 1,
  keeping the positions of the two extremal prefixes and comparing with exact values of floor(k*theta).
  uloc.c applies the upper rule through the running minimum of the heights and checks the lower rule on the
  blocks ending at the new letter one by one; the span checker replaces that loop by a test against the
  running maximum.  The two tests are equivalent (Definition 2 of the paper and the lines after it).

What is and is not independent
  ChatGPT, 13 November 2026: "it separately implements the critical-language predicate using running minimum
  and maximum prefix heights, replacing uloc.c's lower-suffix loop. It shares/adapts uloc.c's forced
  recurrence, exact floor-table and valuation methods, guards, traversal and counter conventions; it is not a
  clean-room implementation of the entire search and does not use census.c's hull predicate."
  So agreement between critical_span.c and uloc.c checks the test of the language and the execution, not the
  forced step.  The forced step is checked separately: on actual integers by core/check_core.py, and by the
  Python implementations census_check.py, uloc_check.py and closure_check.py.

How ChatGPT ran it (its statements of 13 November 2026)
  The file is the exact source of its run, not a reconstruction.  Compilation recipe of its archive:
      gcc -O2 -Wall -Wextra -o critical_span critical_span.c
  The binary it kept identifies GCC (Debian 14.2.0-19) 14.2.0; the literal compiler invocation was not kept.
  Each range was one process, ./critical_span 3000 C0 C1, with unlimited stack; the processes ran
  concurrently, four at first, then six and eight.  Every process returned exit code 0 with empty stderr.

How the two files reached this supplement
  They were transcribed as text from ChatGPT's reply in the audit conversation; no file was transferred.
  The source was rebuilt from the displayed text and checked against the SHA-256 above.  The log lines were
  rebuilt from the numbers of the reply and checked against a SHA-256 of the displayed block
  (1e8c6953d4a22ea91b62cb1328c31d2bc46d72ab5dc8a3c9f6f9c01b7d84a9d2 for the 33 lines joined by line feeds,
  without a final line feed).

What the rerun shows
  The 33 ranges cover every gate c0 = 4 mod 6 from 4 to 20,591,971,702 exactly once (3,431,995,284 gates).
  The node counts are 32,440,742,728 for the first 16 ranges, 32,439,501,776 for the next 16 and 721,114 for
  the last one: the three counts of uloc.c in ../scan/results/critical_mode.txt, 64,880,965,618 in all.
  No witness, no branch alive at the cap, no flagged configuration.  The longest windows, 344 letters at gate
  6,025,044,580 and 345 letters at gate 15,582,925,828, are those reported by uloc.c.
