Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
a484bbc
Correct the exact-cost claims and repair four gate false negatives
patternscientist Aug 9, 2026
4980596
Reconcile the manuscript's Stage-A status and containment claims
patternscientist Aug 9, 2026
1c0c8bb
Record a resumable handoff for the RC-1 correction round
patternscientist Aug 9, 2026
7655ee8
Export the packed cell-probe result from RMQPaper
patternscientist Aug 9, 2026
1ff8cd2
Log the headline axiom-inventory change (WDD-20260809-016)
patternscientist Aug 9, 2026
c9cb19f
Record the RMQPaper promotion in the correction handoff
patternscientist Aug 9, 2026
3652d4b
Make the two-210 independence claim a checked property (auditor item 7)
patternscientist Aug 9, 2026
c140d68
Record independence_check.lean as an artifact (DD-20260809-098)
patternscientist Aug 9, 2026
5c09c5a
Mark the independence regression done in the handoff
patternscientist Aug 9, 2026
8e913b9
Retire two overstatements the audit flagged, and fix a CI EOF blank line
patternscientist Aug 9, 2026
3265987
Export the fixture probe count and clarify capstone field 32 (P3-1)
patternscientist Aug 9, 2026
29b1e85
Log the axiom-inventory addition for the fixture probe count
patternscientist Aug 9, 2026
2bd03d8
Mark P3-1 polish done in the handoff
patternscientist Aug 9, 2026
9389655
Audit the ledger's line citations; fix two, one of them pre-existing
patternscientist Aug 9, 2026
83bcc6b
Verify the design-decision gate at the granularity CI runs it
patternscientist Aug 9, 2026
f8de800
Correct the citation audit: 27 citations, 3 defective, not 9 and 2
patternscientist Aug 9, 2026
688c54a
Record the ledger citation corrections on the public-surface log
patternscientist Aug 9, 2026
d92b7b2
Repin the paper substrate to 688c54a3, with checked evidence
patternscientist Aug 9, 2026
a03fcc4
Point the commissioning prompt at audit-v1-rc-2 and add RC-11
patternscientist Aug 9, 2026
0d7375f
Log the RC-1 audit round and close the correction handoff
patternscientist Aug 9, 2026
de510d0
Correct the RC-2 fresh-blind audit findings
patternscientist Aug 13, 2026
dfb589e
Release the job handle before the barrier can throw
patternscientist Aug 13, 2026
239f8d6
Fix the barrier's empty-collection crash and pin the edge cases
patternscientist Aug 13, 2026
51b7232
Match the topology deadline self-test to its M1 twin (5s -> 20s)
patternscientist Aug 13, 2026
60c81ae
Log the RC-2 round, add the resume card, correct the Windows claim
patternscientist Aug 13, 2026
85f3eb9
Retarget the commissioning prompt to audit-v1-rc-3
patternscientist Aug 13, 2026
804c58c
RC-4: gate coverage, derived deadlines, checker targets and leaks
patternscientist Aug 16, 2026
0665b49
Absorb the packed cell-probe theorem into the manuscript (RC-10)
patternscientist Aug 16, 2026
ffe8d3e
Repin the paper substrate to the RC-4 release tree
patternscientist Aug 16, 2026
c04c101
Actually close the claim-drift scanner's audit-report leak (WDD-20260…
patternscientist Aug 16, 2026
3b920f7
Build the ledger citation checker and fix three more wrong citations
patternscientist Aug 16, 2026
4549cb2
Reject conflicting numerals in the constant guard (WDD-20260816-035)
patternscientist Aug 16, 2026
b620e15
Bar audit outcomes from tag annotations (WDD-20260816-036)
patternscientist Aug 16, 2026
51a0a43
Pin the packed architecture headline's expected type (DD-20260816-108)
patternscientist Aug 16, 2026
9699439
Add persistent counterfactuals for the lower bound's query_exact (DD-…
patternscientist Aug 16, 2026
790f20b
Add the POSIX setsid-escape probe, and record the hole it exposes (WD…
patternscientist Aug 16, 2026
6541233
Correct the RC-4 round from an agent audit of it (DD-110, WDD-040)
patternscientist Aug 16, 2026
6bd32d5
Note why the unused targetstmt environment is kept
patternscientist Aug 16, 2026
acfb7ef
Round 2 corrections: declaration-site citations, and three stale claims
patternscientist Aug 16, 2026
b0b83b9
Round 3: field assignments are not declaration sites; three false rec…
patternscientist Aug 16, 2026
d31064c
Round 4: repair the aggregate gate, which was red for the whole round
patternscientist Aug 16, 2026
594d9a4
Round 5: a recorded correction that was never made, and three stale f…
patternscientist Aug 16, 2026
ec52d09
Revert a wrong bib-count edit; fix the one that was actually wrong
patternscientist Aug 16, 2026
03d8a71
Correct "861", and the false provenance my own correction gave it
patternscientist Aug 16, 2026
8ddb00b
Stop the gate from scoring a checker that never ran as a PASS
patternscientist Aug 16, 2026
c9470ac
Catch a lowercase verdict, and the audit tag not named audit-*
patternscientist Aug 16, 2026
e2a3647
Scan paper/, which the claim-drift scan had never read
patternscientist Aug 16, 2026
1a6de02
A historical marker now has to be attached to the numeral it excuses
patternscientist Aug 16, 2026
a0b95b1
Derive the ledger decl-check list instead of trusting the transcription
patternscientist Aug 16, 2026
15865e1
Land the three expected-type pins P2-3 required and never got
patternscientist Aug 16, 2026
7352d71
Convert the three call sites the last commit said it had converted
patternscientist Aug 16, 2026
614923a
Fix the argument passing and the two wiring pins the helper broke
patternscientist Aug 16, 2026
183b605
Repair the raw-call-site lint, which matched nothing
patternscientist Aug 16, 2026
6f834bb
Scope the policy allowance to the paths it was meant for, and fetch t…
patternscientist Aug 16, 2026
6aaf614
Put the argument signature in the roster, so a downgraded stage is no…
patternscientist Aug 16, 2026
2bd35b1
Make CI enforce per-commit governance, and demonstrate the blind spot…
patternscientist Aug 16, 2026
630bdb6
Correct three records that were true when written
patternscientist Aug 16, 2026
f2cec78
Fix three round-7 fixes that did not do what they said
patternscientist Aug 16, 2026
77807b0
Say that REJECT legs depend on the ACCEPT baseline
patternscientist Aug 17, 2026
17360d1
Fix round 8's fixes: control envelope, self-flagging lint, merge cert…
patternscientist Aug 17, 2026
8dcd341
Put the program plan and its artifacts on a ref, and re-pin it
patternscientist Aug 17, 2026
cc28a44
State what "at this pin" means, and stop it covering two commits
patternscientist Aug 17, 2026
047c7cf
Add the commissioning prompt for the outside plan audit
patternscientist Aug 17, 2026
b84b9e4
Fix round 10: --no-merges, range values pinned, controls past the env…
patternscientist Aug 17, 2026
b2e0ace
Replace the raw-call regex with an AST walk
patternscientist Aug 17, 2026
ce39ad4
Round 12: the AST was never what bounded coverage; two figures corrected
patternscientist Aug 17, 2026
9ab5644
Retarget the commissioning prompt to audit-v1-rc-4, with declared-ope…
patternscientist Aug 17, 2026
a989d24
Correct the last two wrong numbers before the tag ships
patternscientist Aug 17, 2026
b5444d8
Close the three declared-open CI certification evasions
patternscientist Aug 17, 2026
ddb5bad
Document why the && shape is absent from the raw-call fixtures
patternscientist Aug 17, 2026
dc31337
Measure and record that 13 branch commits fail the per-commit check
patternscientist Aug 17, 2026
55ab1ba
Correct what the 13 uncertifiable commits actually cost
patternscientist Aug 17, 2026
dcac0fe
Decompose the 13 and measure how much of it is the checker's fault
patternscientist Aug 17, 2026
a2ba72b
Stop stating the uncertified-commit finding as a drifting ratio
patternscientist Aug 17, 2026
0602077
Remove the classifier's default and record the eight pre-policy commits
patternscientist Aug 17, 2026
7cabd57
Give the reproducibility job the history its checks need
patternscientist Aug 17, 2026
27c5641
State the certification claim as an invariant, not a moving ratio
patternscientist Aug 18, 2026
ed01731
Close the two RC-3 P2-2 false-success classes that were never written
patternscientist Aug 19, 2026
9b8f193
Correct all nine plan defects the outside audit found; plan is now v15
patternscientist Aug 19, 2026
298ab02
Select the replay shell from the running host, not the OS
patternscientist Sep 9, 2026
4ec8e39
Make the claim pins behavioural, and the negation actually negate
patternscientist Sep 9, 2026
dcc935f
Require citation and historical exemptions to actually apply
patternscientist Sep 9, 2026
cf313c9
Correct the counting-bound expression and eight Section 11 references
patternscientist Sep 9, 2026
cd29353
Parse Lean headers faithfully, and pin the arity field 32 claims
patternscientist Sep 9, 2026
ff993ed
Repair two self-inflicted breakages from the field-32 fix
patternscientist Sep 9, 2026
4639223
Retarget the commissioning prompt to RC-6 and state the audit history
patternscientist Sep 9, 2026
9ed298f
Build the PQ1 packed word-RAM query construction and semantic joins
patternscientist Sep 11, 2026
8910d53
Discharge canonical runtime safety and export the fully charged packe…
patternscientist Sep 11, 2026
bfffa95
Restore the original bytes of the imported RC6 experiment
patternscientist Sep 11, 2026
f2f2a0a
Harden the packed query certificate, consumer and replay
patternscientist Sep 11, 2026
3849ecb
Synchronize public surfaces with the fully charged packed query candi…
patternscientist Sep 11, 2026
27e5bed
State the fully charged packed query in the paper and repin to 3849ecbb
patternscientist Sep 11, 2026
e1b0848
Describe read expansion by stored bit span on the review surfaces
patternscientist Sep 11, 2026
c0ba2a3
Fix continuation audit findings in packed query validation
patternscientist Sep 11, 2026
3c8097e
Record continuation audit evidence and resumed replay results
patternscientist Sep 11, 2026
4c89378
Support explicit no-role read-only audit prompt preflight
patternscientist Sep 11, 2026
6562ff6
Remove inherited runtime selectors reliably across PowerShell hosts
patternscientist Sep 11, 2026
d21b190
Record PQ1 blind audit and both-host gate certification
patternscientist Sep 12, 2026
d23a0af
Accept audited PQ1 milestone and repair merge-readiness checks
patternscientist Sep 12, 2026
d79eab0
Record PQ1 merge-readiness verification receipt
patternscientist Sep 12, 2026
0e6a00f
Close inherited integration whitespace finding
patternscientist Sep 12, 2026
581deeb
BV-1: freeze generic select route and prove semantic storage leaves
patternscientist Sep 12, 2026
645a050
BV-1: record phase source identity and route-review evidence
patternscientist Sep 12, 2026
3329a6e
native: prove array execution and test compiled Lean route
patternscientist Sep 12, 2026
c8c266f
docs: submit NATIVE-1 route phase and unresolved obligations
patternscientist Sep 12, 2026
2d6b026
Repair native policy, replay semantics, and toolchain provenance
patternscientist Sep 12, 2026
fbd5a44
Preserve native repair receipt bytes in Git
patternscientist Sep 12, 2026
fa79233
feat(native): compose checked limb execution on the canonical binary …
patternscientist Sep 12, 2026
763b00e
Prove fully charged generic bitvector rank-select capstone
patternscientist Sep 12, 2026
52ba2a5
Complete native execution witnesses and adversarial replay evidence
patternscientist Sep 12, 2026
3832502
Record exact BV-1 source checkout and certification evidence
patternscientist Sep 12, 2026
4edb1e1
Freeze native candidate report and independent audit packet
patternscientist Sep 12, 2026
5d3bc54
Freeze NATIVE-1-R1 claim-receipt repair acceptance matrix
patternscientist Sep 13, 2026
d0b4cef
Archive NATIVE-1 receipts that embed claim-scanner output as exact gz…
patternscientist Sep 13, 2026
e80da1a
Record NATIVE-1-R1 certification evidence and worker report
patternscientist Sep 13, 2026
a48f80d
Integrate BV-1: fully charged generic bitvector access, rank and select
patternscientist Sep 18, 2026
f181eee
Integrate LB-1: allocation lower bound matched to the PQ1 allocation …
patternscientist Sep 18, 2026
ec821d3
Integrate NATIVE-1: verified native representation and interface
patternscientist Sep 18, 2026
c183409
Integrate OPT-1: tighter compact packed query compilation (squash of …
patternscientist Sep 18, 2026
6d6a051
Integrate PRE-1: efficient packed preprocessing builder (squash of 74…
patternscientist Sep 18, 2026
ffd1930
Normalize lakefile.toml to LF and retire the BV-1 byte-preservation r…
patternscientist Sep 19, 2026
7b227c4
Make two gate tools work on the integrated tree
patternscientist Sep 19, 2026
bf31f98
Raise the stack limit before CI and the reproduction script run the gate
patternscientist Sep 20, 2026
c9e26d2
fix(ci): size Lean worker stacks and retain PRE build diagnostics
patternscientist Sep 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,20 @@ docs/internal/E1_ARCHITECTURE_COORDINATOR_HANDOFF.md -text
# or re-touches those lines. Reformatting the dossier is not the fix; it is
# evidence, not maintained prose.
docs/internal/E1_ARCHITECTURE_COORDINATOR_HANDOFF.md -whitespace

# BV-1 source and replay evidence retain their exact recorded bytes on checkout.
# The patterns are confined to this extension; no other family is affected.
RMQ/Core/WordRAM/Bitvector/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
RMQ/Validation/PackedBitvector.lean -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
scripts/packed_bitvector_* -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol

# These exact replay-pinned artifacts retain their recorded final blank line.
# Other trailing whitespace and indentation checks remain enabled.
RMQ/Core/WordRAM/Bitvector/Capstone.lean whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/CHECKOUT_BYTES_DISPOSITION.md whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/CHECKOUT_BYTES_LAKEFILE_DISPOSITION.md whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/COORDINATOR_ROUTE_DISPOSITION.md whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/controls/public_mutations/fixtures/B39CFA73CEAA05B8D0E8E803CACF0696529FDBF7F2BD3BEFB5A8805045127618/*.constructor.lean whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
docs/internal/extensions/bv1/controls/public_mutations/snapshots/97405C70ED3B60CED72874D6DF622D2E9BBA0BD8F04808A3F98ED34EE1CEB770/Capstone.lean whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
scripts/packed_bitvector_validation_controls.ps1 whitespace=blank-at-eol,-blank-at-eof,space-before-tab,cr-at-eol
15 changes: 14 additions & 1 deletion .github/workflows/artifact-repro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,20 @@ jobs:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 2
# 0, not 2: the gate's [retrospective-record] leg re-derives each
# pre-policy commit's missing-path set by running the production
# checker over `<sha>~1..<sha>`, and those commits sit far behind the
# tip. At depth 2 they are simply absent from the clone, and every one
# of them failed to resolve. ci.yml already fetches full history.
# WDD-20260817-080.
fetch-depth: 0
# Annotated tags, explicitly. actions/checkout fetches with
# --no-tags when fetch-depth > 0 and fetch-tags is unset, so
# tag_annotation_check.ps1 found no annotated tags and failed
# -- correctly, since 'nothing was checked' is not a pass. The
# repair belongs here, not in the checker: its header says CI
# must not pass -AllowNoTags.
fetch-tags: true

- name: Install tools
run: |
Expand Down
114 changes: 108 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ jobs:
with:
# The strict design-decision scan diffs against HEAD~1 on push
# events; the default depth-1 checkout cannot resolve that base.
fetch-depth: 2
# 0, not 2: per-commit certification below walks the pushed range,
# and depth 2 makes anything past HEAD~1 unresolvable.
fetch-depth: 0
# Annotated tags, explicitly. actions/checkout fetches with
# --no-tags when fetch-depth > 0 and fetch-tags is unset, so
# tag_annotation_check.ps1 found no annotated tags and failed
# -- correctly, since 'nothing was checked' is not a pass. The
# repair belongs here, not in the checker: its header says CI
# must not pass -AllowNoTags.
fetch-tags: true

- name: Install tools
run: |
Expand All @@ -30,8 +39,17 @@ jobs:
lake --version

- name: Run repository gate
shell: pwsh
run: ./scripts/gate.ps1
# bash, not pwsh, so the stack limit can be raised first. The packed-query
# replay runs its runtime fixtures with `lean --run`, whose interpreter
# recursion needs far more than Linux's default 8 MiB main-thread stack
# (it fails with "deep recursion was detected at 'interpreter'"); Windows
# reserves a large stack for lean.exe, so the local gate never saw this.
# Children inherit the limit. 1 GiB is the value measured to work.
shell: bash
run: |
ulimit -s 1048576
echo "stack limit: $(ulimit -s) KB"
pwsh -NoLogo -NoProfile -File ./scripts/gate.ps1

- name: Run strict claim-drift scan
if: always()
Expand All @@ -42,9 +60,93 @@ jobs:
if: always()
shell: pwsh
run: |
# PER-COMMIT, not aggregate. The repository states that every commit
# carries its own design-log update; running the check once over a
# whole range does not enforce that, because one commit's
# DESIGN_DECISIONS.md satisfies the membership test for every
# code-sensitive file in the range. WDD-20260816-043 records a commit
# that breached the invariant and passed CI for exactly this reason.
# `--depth=0` is not valid git ("depth 0 is not a positive number"), so
# the pull-request branch never ran. And `HEAD~1..HEAD` is a fixed
# ONE-COMMIT window: a push of three commits certified only the tip, which
# is the same blind spot this step was added to close. `fetch-depth: 0`
# above makes the full history available; the push range comes from the
# event, guarding the all-zeros SHA git uses for a new branch.
if ("${{ github.event_name }}" -eq "pull_request") {
git fetch origin "${{ github.base_ref }}" --depth=1
./scripts/design_decision_check.ps1 -Base "origin/${{ github.base_ref }}" -Strict
git fetch origin "${{ github.base_ref }}"
$range = "origin/${{ github.base_ref }}..HEAD"
} elseif ("${{ github.event.before }}" -and
"${{ github.event.before }}" -notmatch '^0{40}$') {
$range = "${{ github.event.before }}..HEAD"
} else {
./scripts/design_decision_check.ps1 -Base "HEAD~1" -Strict
$range = "HEAD~1..HEAD"
}
# --no-merges. `design_decision_check.ps1` REFUSES a merge commit, because
# a merge's first-parent diff carries the merged branch's design log and
# would certify anything the merge itself introduced. That refusal is
# right, but `git rev-list` enumerates merges -- so without this flag the
# step could never pass on a pull request, where actions/checkout builds
# `refs/pull/N/merge` and HEAD IS a merge commit, nor on any push
# containing one.
#
# Residual, stated because it is real: content introduced by a merge
# alone -- a conflict resolution present in neither parent -- is then
# never certified by anything. That is the same trade DD-20260816-122
# already accepted when it chose refusal over judging a merge by the
# union of its parents.
$commits = @(git rev-list --reverse --no-merges $range)
if ($commits.Count -eq 0) {
Write-Host "DESIGN-CHECK: no commits in $range; nothing to certify"
exit 1
}
$bad = 0
foreach ($c in $commits) {
Write-Host "--- $c $(git log -1 --format=%s $c)"
./scripts/design_decision_check.ps1 -Base "$c~1" -Head $c -Strict
if ($LASTEXITCODE -ne 0) { $bad++ }
}
if ($bad -gt 0) {
Write-Host "DESIGN-CHECK: $bad of $($commits.Count) commit(s) failed per-commit certification"
exit 1
}
Write-Host "DESIGN-CHECK: all $($commits.Count) commit(s) certified individually"

owned-process-windows:
# The repository gate's process-ownership layer has two implementations --
# a POSIX setsid process group and a Windows kill-on-close job -- and only
# the POSIX one was ever exercised by CI, because every job here runs
# ubuntu. The Windows path shipped to `audit-v1-rc-2` without a
# descendant-death barrier: it closed the job and waited on the root alone,
# so a grandchild could still be alive when a caller asserted the tree was
# dead. The 2026-08-12 fresh-blind audit hit exactly that on the required
# Windows gate path.
#
# This job is deliberately small: it runs only the ownership self-tests, so
# it needs no Lean build and costs a minute, while covering the code path
# that a green ubuntu run says nothing about. `-AllowInconclusive` must
# never be passed here; an inconclusive barrier run exits nonzero on
# purpose.
name: Owned-process ownership (Windows)
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Owned-process self-test (Windows job ownership + descendant barrier)
shell: pwsh
run: ./scripts/owned_process_tree.ps1 -SelfTest

owned-process-posix:
# The POSIX twin of the job above, run standalone for the same reason: the
# aggregate gate reaches these assertions only after a full Lean build, so a
# regression in either ownership implementation should be visible in a
# minute rather than behind twenty.
name: Owned-process ownership (POSIX)
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4

- name: Owned-process self-test (setsid group + descendant barrier)
shell: pwsh
run: ./scripts/owned_process_tree.ps1 -SelfTest
4 changes: 4 additions & 0 deletions .github/workflows/release-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 2
# This workflow also runs scripts/gate.ps1, through
# scripts/reproduce_artifact.sh, so it needs tags for the same reason
# ci.yml does. WDD-20260816-057 said "every workflow" and fixed two.
fetch-tags: true

- name: Install tools
run: |
Expand Down
62 changes: 52 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,42 @@ story: exact range-minimum queries can be answered at constant modeled query
cost from a Cartesian-shape payload of at most
`2*n + o(n)` bits,
and any fixed-length payload-only exact RMQ encoding needs
`2n - 1.5 log n - O(1)` bits. "Modeled cost" counts charged probes into that
payload, not machine instructions or wall-clock time, and the cost of building
the payload is accounted separately and is not part of this bound.
`2n - 1.5 log n - O(1)` bits. "Modeled cost" there counts charged probes into
that payload, not machine instructions or wall-clock time. A separate
accepted theorem, `RMQ.Headlines.succinctRMQFullyChargedPackedQuery`,
charges every primitive instruction of its own machine query; it is
summarized in the next paragraph. The earlier **210** trace and **427** probe
bounds keep their separate charge policies, and none of these bounds is a Lean
wall-clock bound. The cost of building the payload -- preprocessing time and
workspace, in any model -- is **unproved and excluded from every query
bound**: no theorem here bounds it, and none is claimed.
The same code base is now growing into a
verified advanced-data-structures testbed, with standalone rank/select,
balanced-parentheses navigation, and union-find spokes.

**Fully charged packed query (accepted).** Import `RMQPaper` and use
`RMQ.Headlines.succinctRMQFullyChargedPackedQuery`. For every `xs : List Int`
it fixes one numeric memory -- 174 counted metadata words followed by the
existing packed allocation of the payload, densely repacked into `w(n)`-bit
words with `log2(n+2)+1 <= w(n) <= 192*(log2(n+2)+1)` -- and one closed
loop-free program of **837,572** primitive instructions that does not
depend on `xs` or `n`. Each executed instruction is one step. Every valid
half-open range returns its leftmost minimum, and for every representable
endpoint pair the run halts within at most 837,572 steps, which is simply the
program length; the committed valid-query fixtures observe 6,003 to 16,358
steps. The memory, the literal program encoding and 8,271 registers plus three
control words fit in `2n + o(n)` bits, but the code and scratch term exceeds
`n` for every `n` below about `2^28`, so it is lower order only asymptotically.
The word model assumes unit-cost multiplication, division, remainder, variable
shifts and bitwise operations, and every executed operation is proved free of
overflow, underflow, zero division and oversized shifts. Endpoints outside the
word domain are rejected by an uncharged value-level check. Preprocessing is
unbounded and unclaimed, and Lean runtime is a separate, unmeasured quantity.
Status: **ACCEPTED**, following the replay campaign, both-host aggregate gates
and independent audit; see the [coordinator acceptance record](docs/internal/packed_query/PQ1_COORDINATOR_ACCEPTANCE.md). The
[machine review packet](docs/WORD_RAM_REVIEW_PACKET.md) states the full model,
allocation/run identity and validation contract.

Range-minimum query (RMQ) asks for the leftmost position of the smallest value
in a subarray. The surprising theorem is not that RMQ can be solved, but that
the array values can be discarded: the Cartesian shape alone determines every
Expand Down Expand Up @@ -64,6 +93,7 @@ for checked historical profiles under `Legacy`/`Compatibility` names.

| Alias | Meaning |
| --- | --- |
| `RMQ.Headlines.succinctRMQFullyChargedPackedQuery` | Accepted primitive-machine theorem over ordinary `xs : List Int`, following the replay campaign, both-host aggregate gates and independent audit: one numeric memory and one closed loop-free program; exact leftmost answers for valid half-open ranges; the rejection packet `0` with no memory reads for representable invalid ranges; halting within at most 837,572 primitive instructions; every stored word, operand and prefix state within one logarithmic word width; and memory, literal program encoding and registers within `2n + o(n)` bits. Unit-cost multiplication, division, remainder, shifts and bitwise operations are model assumptions; preprocessing is unclaimed. |
| `RMQ.Headlines.succinctRMQListIntTwoNPlusOConstantQuery` | Reader-facing theorem over ordinary `xs : List Int`: `buildPayload.length <= 2*n + overhead n` with `overhead = o(n)`; valid half-open queries return the exact leftmost RMQ answer, invalid or empty ranges return `none`, and modeled query cost is constant. |
| `RMQ.Headlines.listIntSuccinctRMQFlatPayloadStoreNoSyntheticExecutionStory` | Reader-facing no-synthetic execution story over ordinary `xs : List Int`, including the same public space inequality and range contract. Exact physical-word erasure is also conjoined directly in the paper main theorem; the construction is not padded to manufacture a size equality. |
| `RMQ.Headlines.listIntSuccinctRMQPaperMainTheorem` | Paper-facing theorem consuming the manifest packet, guarded reviewer-native certificate and independent 24-field required-facts projection, guarded list packet, literal same-execution `nonSyntheticWeight <= 210`, and complete supplied-store `TraceResult` equality under exact ordered dynamic-read agreement, together with the existing payload, answer, invalid-range, provenance, and no-synthetic clauses. |
Expand Down Expand Up @@ -209,6 +239,11 @@ At a high level, the repository currently includes:
Catalan slack equivalent to `2n - 1.5 log n - O(1)`;
- a payload-accounted BP-native succinct RMQ upper bound with payload length at
most `2*n + o(n)` and constant modeled query cost;
- an accepted primitive-machine query,
`RMQ.Headlines.succinctRMQFullyChargedPackedQuery`, whose numeric memory,
literal program and finite register bank occupy `2n + o(n)` bits and whose
run charges every executed primitive instruction, within a fixed budget
equal to its loop-free program length (validated by replay, both-host aggregate gates and independent audit);
- an interpreter-backed final succinct RMQ query surface whose all-size
execution story emits one global `WordRAM.TraceEvent` stream; every event is
a payload `readWord`, as checked by
Expand All @@ -226,7 +261,14 @@ At a high level, the repository currently includes:
The cost statements are model-relative. They use a small `Costed` layer and a
traced RAM substrate with unit-cost indexed reads, word operations, branches,
comparisons, and table accesses where explicitly modeled. They are not claims
about Lean's executable `List` runtime.
about Lean's executable `List` runtime. The `210` charged-trace and `427`
packed-probe theorems leave controller dispatch, decoding, arithmetic and
branching uncharged. The separate accepted theorem
`RMQ.Headlines.succinctRMQFullyChargedPackedQuery` uses a different execution:
a register machine over numeric memory whose nine instruction forms (load,
constant, move, arithmetic, comparison, jump, register jump, branch-if-zero,
halt) each cost one step, with unit-cost multiplication, division, remainder,
variable shifts and bitwise operations on `w(n)`-bit words.

The space statements count payload bits separately from proof-only fields and
certificates. The succinct RMQ theorem counts the balanced-parentheses shape
Expand Down Expand Up @@ -335,7 +377,8 @@ imports, this material):
- [`docs/TRUST_AUDIT_PACKET.md`](docs/TRUST_AUDIT_PACKET.md): skeptical-review
packet for the headline theorem.
- [`docs/WORD_RAM_REVIEW_PACKET.md`](docs/WORD_RAM_REVIEW_PACKET.md): focused
review packet for the first-order Word-RAM anti-oracle boundary.
review packet for the accepted primitive-machine query and for the
first-order Word-RAM anti-oracle boundary of the charged-trace theorem.
- [`docs/TRUST_BASE.md`](docs/TRUST_BASE.md): dependency policy, model
glossary, and verification commands.
- [`docs/FAMILY_SUMMARY.md`](docs/FAMILY_SUMMARY.md): full theorem inventory,
Expand Down Expand Up @@ -363,11 +406,10 @@ package, calibrate, and reuse the infrastructure:
stories where that materially clarifies theorem surfaces;
2. push the union-find spoke from the current sequence/event scorecard toward a
true inverse-Ackermann amortized theorem over strict residual events; and
3. have E1 define a richer instruction semantics and prove that it simulates
the same canonical execution while charging controller work; the current theorem deliberately
provides no parallel controller-operation vocabulary; the M1 reviewer-native
adequacy candidate remains word-addressed over the supplied store, while S1
serialized-payload querying and complete preprocessing remain separate; and
3. package the accepted primitive-machine query
`RMQ.Headlines.succinctRMQFullyChargedPackedQuery` with its replay and audit
evidence; preprocessing cost, extraction and production serialization
remain separate targets; and
4. promote shared cost, refinement, lower-bound, and amortized-analysis pieces
into a more neutral library surface only when concrete reuse demands it.

Expand Down
2 changes: 2 additions & 0 deletions RMQ.lean
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ import RMQ.Core.SuccinctFinal.RAM.PackedCellProbe.ExecutedUniverse
import RMQ.Core.SuccinctFinal.RAM.PackedCellProbe.Boundaries
import RMQ.Validation.EGCPFinalFalsification
import RMQ.Validation.EGCPStageA
import RMQ.Validation.PackedQueryContract
import RMQ.Core.WordRAM.Packed.ArrayRun
import RMQ.Core.SuccinctFinalModelAdequacy
import RMQ.Core.SuccinctRankSelect
import RMQ.Core.BPCloseNavigation
Expand Down
Loading
Loading