Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
569 commits
Select commit Hold shift + click to select a range
3c5c17c
fix(rcf): strengthen finite quotation audits and refusal controls
Oct 14, 2026
0776d8e
fix(rcf): pin finite formula refusals and proof provenance
Oct 14, 2026
bc92fe1
docs(rcf): retain reviewed proof and code-block evidence
Oct 14, 2026
6b5a134
test(rcf): preserve ordered algebraic and negative source divisors
Oct 14, 2026
57b8ddd
test(rcf): pin guard packet mutations to exact fields
Oct 14, 2026
a8e6682
docs(rcf): explain ordered guard replay and validation limits
Oct 14, 2026
53a20de
docs(rcf): retain source-bound guard replay validation and manual cap…
Oct 14, 2026
3552c28
Merge upstream main after finite-matrix quotation squash
Oct 14, 2026
9688364
test(rcf): quote a nonzero closed quotient from supplied inverse evid…
Oct 14, 2026
bd9447f
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 14, 2026
88d2e2c
feat(rcf): interpret complete frozen root lists using owner replay laws
Oct 14, 2026
a508c66
docs(rcf): retain guarded quotation and root-coverage evidence
Oct 14, 2026
e49d0f2
test(rcf): audit actual inverse and root producers transitively
Oct 14, 2026
cd51df7
test(rcf): share dependency audits and require frozen inverse evidence
Oct 14, 2026
948da21
test(rcf): exercise body traversal in dependency controls
Oct 14, 2026
db1712e
docs(rcf): bind final guarded replay audits and complete builds
Oct 14, 2026
d903856
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 14, 2026
091250d
feat(rcf): check complete supplied cells in an ordinary real model
Oct 14, 2026
adf4b89
docs(rcf): retain complete-cell proof and manual evidence
Oct 14, 2026
2a03a33
Validate quotation guard counts and exercise cell boundary cases
Oct 14, 2026
cc654eb
Quote empty cells and isolate both boundary sign refusals
Oct 14, 2026
721d518
Bind complete-cell validation and retained snapshots to exact sources
Oct 14, 2026
299b003
Enforce replay round trips and nonempty proof audits
Oct 14, 2026
76df195
Record final enforced cell replay validation
Oct 14, 2026
3ba6648
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 14, 2026
a9aa162
Replay complete cells over a fixed algebraic parent
Oct 14, 2026
a5aaaeb
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 14, 2026
7e4c353
Reconcile supplied root and cell replay documentation
Oct 14, 2026
387922d
Disambiguate checked algebraic manual examples
Oct 15, 2026
b9867f7
Record checked algebraic cell proofs and rendered evidence
Oct 15, 2026
8fd6a4a
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 15, 2026
4df46e4
Verify algebraic cell integration against current main
Oct 15, 2026
616d7b4
Audit all algebraic cell theorems and strengthen binding refusals
Oct 15, 2026
1d94dc8
Bind final algebraic cell review checks to revised source
Oct 15, 2026
8974f35
Reconcile adapter overview with complete supplied cell proofs
Oct 15, 2026
54ef98f
Bind adapter overview corrections to checked implementation
Oct 15, 2026
d987755
Clarify cell soundness attribution and retained observations
Oct 15, 2026
e4a9531
Bind clarified cell documentation to unchanged checked source
Oct 15, 2026
7132b42
Repair architecture report links after theory rename
Oct 15, 2026
f29be3a
Reuse checked algebraic cell rows across comparison formulas
Oct 15, 2026
76e794f
Record checked Boolean cell reuse and manual evidence
Oct 15, 2026
ff0c483
Document exact formula reuse boundary in adapter overview
Oct 15, 2026
71c2b57
Bind formula reuse overview to checked implementation
Oct 15, 2026
310f9db
Preserve historical replay identities across the Theory rename
Oct 15, 2026
beeee8b
Construct checked carriers, full root tables and supplied ordinary ce…
Oct 15, 2026
74b8352
Keep the root construction example readable on narrow screens
Oct 15, 2026
c58eb28
Record native cell construction proofs and validation evidence
Oct 15, 2026
e68e676
Document actual carrier and complete-cell construction boundaries
Oct 15, 2026
13d038a
Bind construction overview to checked source and retained evidence
Oct 15, 2026
56cccab
Discover ordinary cell points through the actual common-context parti…
Oct 15, 2026
0a1d271
Merge main and preserve both historical replay audit regressions
Oct 15, 2026
0ce55b2
Strengthen retained certificate mutation and unrelated-path controls
Oct 15, 2026
03b99c6
Record source-bound ordinary discovery validation and remaining accep…
Oct 15, 2026
b64a2b2
Construct accepted ordinary-model cell evidence through proved sector…
Oct 15, 2026
ebb48a9
Qualify the tower signature in the ordinary point-row manual example
Oct 15, 2026
5a37b7f
Fit the ordinary point-row example on narrow manual pages
Oct 15, 2026
0050740
Bind ordinary cell-decision proofs, native diagnostics and manual val…
Oct 15, 2026
83061cb
Bind cell-decision documentation to the checked implementation and fu…
Oct 15, 2026
1a6303a
Retain child-level row-production diagnostics and exact source bindings
Oct 15, 2026
4febceb
Bind the expanded row-cost report and retain its prior documentation …
Oct 15, 2026
abfa9b2
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 15, 2026
b2ed3ce
Merge branch 'issue-10358-cell-decision' into issue-10358
Oct 15, 2026
7b87adf
Use proved endpoint requests in public cell discovery
Oct 15, 2026
785ddca
Register explicit cell stress target with DAG checks
Oct 15, 2026
af56e94
Fix public discovery driver and update audit documentation
Oct 15, 2026
6e19f57
Use a regular comment for the explicit stress evaluation
Oct 15, 2026
f3c5944
Record final public endpoint validation and retained attempts
Oct 15, 2026
774345e
Clarify scratch timing and separate stress target documentation
Oct 15, 2026
acbb63f
Bind endpoint documentation to its exact revision
Oct 15, 2026
fa6d418
Prove executable complete-cell construction and original verdicts
Oct 15, 2026
4c996cd
Retain producer traces and reuse prepared cell queries
Oct 15, 2026
108e35e
Check quotation module ownership and demonstrate an accepted verdict
Oct 15, 2026
8d5fdb0
Merge current main into executable-cell continuation
Oct 15, 2026
dc850ed
Fit executable-cell proof example on narrow screens
Oct 15, 2026
6d6a56e
Record source-bound executable-cell validation and manual inspection
Oct 15, 2026
e93845f
Bind executable-cell documentation to its validated source versions
Oct 15, 2026
5b489ee
Construct complete cells from original selected number-field inputs
Oct 15, 2026
abae613
Wrap fixed-field producer example for narrow screens
Oct 15, 2026
d52e457
Merge main and retain both RCF and PosDef conformance targets
Oct 15, 2026
def715d
Record selected-field cell validation and retained source-scoped evid…
Oct 15, 2026
aa14d97
Bind selected-field documentation and validation to exact versions
Oct 15, 2026
6910dfd
Integrate executable cell progress and original-field construction
Oct 15, 2026
7e9abbe
Record combined cell integration against current main
Oct 15, 2026
89ea00f
Bind combined integration documentation to its exact version
Oct 15, 2026
9ca6964
Tighten producer import audits and remove unused hashing assumptions
Oct 15, 2026
4719366
Record complete affected-target validation and final manual inspection
Oct 15, 2026
ee6e4a0
Bind final validation documents and source-scoped artifact versions
Oct 15, 2026
3fef344
Name the exact adapter modules excluded by quotation audits
Oct 15, 2026
a66196c
Bind the precise quotation-boundary documentation revision
Oct 15, 2026
d6c9b6d
Compose finite cell-row replay around descriptor restoration
Oct 15, 2026
7ca496b
Record finite cell serialization validation and remaining descriptor …
Oct 15, 2026
c28de2d
Bind serialization report and collector to their committed artifacts
Oct 15, 2026
eec8df2
Check large cell-fold proofs directly in the guarded kernel
Oct 15, 2026
5da4aa6
Check large cell-fold proofs directly in the guarded kernel
Oct 15, 2026
ba02e5e
Record matched cell-fold assembly observations and current manual val…
Oct 15, 2026
b1dc2e1
Bind the fold-assembly report and collector to their source versions
Oct 15, 2026
27e7cdb
Merge branch 'issue-10358' into issue-10358-cell-decision
Oct 15, 2026
01baf03
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
7f94f53
Validate finite cell parser composition against current main
Oct 15, 2026
f98f2e8
Bind current-main parser validation documents
Oct 15, 2026
f1ca215
Collect complete cell payload literals for finite reader coverage
Oct 15, 2026
428da0d
Record finite payload inventory proofs and refusal controls
Oct 15, 2026
5e48b6b
Bind the finite inventory report and collector versions
Oct 15, 2026
64d59af
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
1f31990
Restore complete cell payloads through checked owner graph bindings
Oct 15, 2026
073e685
Record complete payload restoration through the owner binding API
Oct 15, 2026
5193c78
Bind the complete payload restoration report versions
Oct 15, 2026
3a6078b
Replay complete frozen root tables and cell matrices from finite lite…
Oct 15, 2026
8af549f
Prove accepted complete root-and-cell output for native discovery
Oct 15, 2026
750c5f7
Record complete root-and-cell replay and producer acceptance
Oct 15, 2026
f87041d
Bind complete replay evidence documents to their committed versions
Oct 15, 2026
8fd406d
Quote complete root-and-cell packets at the original guarded source
Oct 15, 2026
c0e4795
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
80a3cb1
Record complete packet quotation checks and retained source evidence
Oct 15, 2026
1f6acb4
Bind complete quotation report and collector versions
Oct 15, 2026
172c995
Document complete packet soundness and guarded source quotation
Oct 15, 2026
c489350
Replay complete packets from the original selected number field
Oct 15, 2026
c649c4d
Wrap complete packet examples for narrow manual layouts
Oct 15, 2026
66e99e4
Emit checked root graphs and strengthen complete replay refusal controls
Oct 15, 2026
43f75c7
Merge branch 'issue-10358-cell-decision' into issue-10358
Oct 15, 2026
442501b
Bind selected-field acceptance and manual examples to emitted packets
Oct 15, 2026
4ae275c
Record emitted-packet integration and inspected manual evidence
Oct 15, 2026
f6a2af4
Bind integrated packet evidence documents and inspected artifacts
Oct 15, 2026
9ecdfa9
Check every packet-quotation refusal restores state
Oct 15, 2026
398d1a0
Record final refusal attribution and state-restoration checks
Oct 15, 2026
52c9731
Bind final refusal evidence report and collector versions
Oct 15, 2026
4411699
Produce complete packets from independently owned coefficient values
Oct 15, 2026
338609b
Identify gathered selected-field coordinates through the canonical re…
Oct 15, 2026
0f6d6f9
Prove complete gathered replay at original selected-field values
Oct 15, 2026
f4da95f
Retain gathered packet proof, build and manual evidence
Oct 15, 2026
c755d72
Bind gathering evidence to exact source and retained artifacts
Oct 15, 2026
d873312
Construct native cell packets from original algebraic coefficient tuples
Oct 15, 2026
ed5ba66
Audit original algebraic guards and retain the stronger stress case
Oct 15, 2026
1fd2f4b
Register the explicit algebraic cell stress build target
Oct 15, 2026
7eb868a
Link original-input cell validation without replacing existing evidence
Oct 15, 2026
2878412
Preserve the fixed-matrix evidence link
Oct 15, 2026
fe03ae8
Retain original-input proofs, manual validation and interrupted stres…
Oct 15, 2026
9ea1e47
Bind original-input validation to exact source and artifacts
Oct 15, 2026
f9f3b4d
Merge landed packet replay and current owner artifacts
Oct 15, 2026
062134c
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 15, 2026
7c22ec3
Reuse owner descriptor restoration and graph binding laws
Oct 15, 2026
0a268eb
Derive accepted guard validity and distinguish conjugate quantifiers
Oct 15, 2026
3bf6bf3
Retain direct owner descriptor reuse validation
Oct 15, 2026
ee37981
Bind owner descriptor reuse to its exact source and artifacts
Oct 15, 2026
03a9b6f
Reuse owner descriptor restoration and graph binding laws
Oct 15, 2026
914b4bc
Retain direct owner descriptor reuse validation
Oct 15, 2026
9336360
Bind owner descriptor reuse to its exact source and artifacts
Oct 15, 2026
516f3e2
Retain current-main integration and revised acceptance evidence
Oct 15, 2026
d7652b9
Bind revised acceptance proofs and current-main validation
Oct 15, 2026
21905a8
Record metadata exit statuses and unchanged implementation sources
Oct 15, 2026
fb8f466
Bind explicit metadata checks and source identity validation
Oct 15, 2026
5714e81
Continue original algebraic input integration on issue-10358
Oct 15, 2026
9b6e311
Prepare native algebraic packet inputs from checked source expressions
Oct 15, 2026
91d504b
Scope preparation proof auxiliaries and test domains and false verdicts
Oct 15, 2026
694e853
Keep native preparation guard check within narrow manual layout
Oct 15, 2026
fb75891
Retain native source preparation validation and interrupted stage dia…
Oct 15, 2026
9f7d804
Bind native source preparation report and all retained artifacts
Oct 15, 2026
6db3d5f
Check cancellation around native algebraic preparation and packet pro…
Oct 15, 2026
0e3f092
Retain cancellation integration and fresh public codec exposure probes
Oct 15, 2026
a30af3d
Bind current cancellation and API boundary validation artifacts
Oct 15, 2026
e9b99f9
Integrate landed finite replay and current library acceptance
Oct 15, 2026
be97969
Retain current-main algebraic preparation integration evidence
Oct 15, 2026
b755c7f
Bind landed-owner integration logs to exact documents and sources
Oct 15, 2026
b23d570
Integrate landed original-input native packet tranche
Oct 15, 2026
49aa1cd
Strengthen source preparation rollback and completed regressions
Oct 15, 2026
daaf143
Retain corrected source preparation validation and compiler ordering
Oct 15, 2026
d2a9418
Bind corrected validation to exact source and artifact commits
Oct 15, 2026
f304805
Exercise post-mutation exceptions and mixed native input roles
Oct 15, 2026
d4e32fb
Retain final source preparation conformance and review evidence
Oct 15, 2026
c04095b
Bind final conformance to its exact evidence commit
Oct 15, 2026
cf60237
Replay complete cell packets through checked supplied operations
Oct 15, 2026
31315b4
Merge branch 'issue-10358' into issue-10358-cell-decision
Oct 15, 2026
af54c35
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
9b68218
Construct checked real models of retained algebraic towers
Oct 15, 2026
f4f25d7
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
30fdfd8
Quote checked supplied-operation predicates at original goals
Oct 15, 2026
d007863
Check original goals from actual reached-record assembly
Oct 15, 2026
73d0818
Fit supplied-operation example on narrow manual pages
Oct 15, 2026
5ba3b80
Retain supplied-operation assembly proofs and validation evidence
Oct 15, 2026
b203c7b
Bind assembly evidence to committed documents and artifacts
Oct 15, 2026
7ca2455
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 15, 2026
4d0c9cf
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 15, 2026
45abf28
Abstract maximal closed coefficients and preserve polynomial bounds
Oct 15, 2026
1437b4f
Assert exact replay refusals and actual record dependencies
Oct 15, 2026
007dcb8
Record exact refusal and reached-record audit validation
Oct 15, 2026
cf9e8e4
Bind expanded replay controls to committed evidence
Oct 15, 2026
ce19c04
Retain scalar codec provenance and wrong-program refusal coverage
Oct 15, 2026
0b04314
Retain scalar provenance, wrong-program checks and isolated memory ev…
Oct 16, 2026
b3b09bd
Bind final scalar-provenance control validation
Oct 16, 2026
ba11378
Prove maximal closed coefficient goals in fresh kernel modules
Oct 16, 2026
e0d3846
Check evidence log versions and identify sampled resource values
Oct 16, 2026
4bc1dd7
Bind checked evidence provenance to committed documents
Oct 16, 2026
febb5f0
Document maximal closed coefficients with checked tactic examples
Oct 16, 2026
49c47eb
Describe maximal coefficient recognition and proof boundaries
Oct 16, 2026
e0a2cb6
Fit maximal coefficient examples on narrow manual screens
Oct 16, 2026
8469a5a
Use square-root notation to fit the checked manual examples
Oct 16, 2026
4dc14ea
Retain source-scoped maximal coefficient validation and manual captures
Oct 16, 2026
44b3de9
Bind maximal coefficient report and artifacts to their retained commit
Oct 16, 2026
ae0931c
Include closed coefficient examples as a focused manual subsection
Oct 16, 2026
573922a
Place the included subsection after the parent section blocks
Oct 16, 2026
0c23abb
Retain included-subsection validation with final metadata and inspect…
Oct 16, 2026
6342a2a
Bind the final manual validation report to its artifact commit
Oct 16, 2026
6deb3d9
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 16, 2026
f969127
Merge commit '4bc1dd7bb0accc3ad21cbca1668d9fc90c065586' into issue-10358
Oct 16, 2026
05180c1
Retain formula and negative-embedding refusal under maximal abstraction
Oct 16, 2026
0a041ad
Preserve existing conformance target order when adding maximal checks
Oct 16, 2026
7cc0272
Record integrated kernel proofs and the compiled missing-record diagn…
Oct 16, 2026
73cc1a0
Bind integration and compiled diagnostic artifacts to their report co…
Oct 16, 2026
795fab8
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 16, 2026
aa450f3
Validate maximal coefficients against the landed parent and public gr…
Oct 16, 2026
9a78ec5
Bind final merged-main evidence to its committed artifacts
Oct 16, 2026
dc7c722
Preserve equality witnesses and strengthen maximal coefficient controls
Oct 16, 2026
9483d01
Handle metadata and aliases in checked equality-witness selection
Oct 16, 2026
c6ea838
Require provider evidence in the aliased witness proof
Oct 16, 2026
4257d8c
Retain checked equality-witness and maximal-source validation evidence
Oct 16, 2026
fd8b7c4
Bind final witness evidence to the committed report and captures
Oct 16, 2026
8038da1
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 16, 2026
ac3d0a9
Authenticate selected source coefficients from checked scalar replay
Oct 16, 2026
9fe614f
Check registered zero guards and import the source selection manual API
Oct 16, 2026
30055f9
Check maximal registered zero products and terminal divisor refusals
Oct 16, 2026
aa0bcf7
Merge branch 'issue-10358-cell-decision' into issue-10358
Oct 16, 2026
4a857a1
test(HexRCF): bind guarded fixtures to whole source coefficients
Oct 16, 2026
434261e
docs(HexRCF): retain selected-source proof and full compatibility evi…
Oct 16, 2026
b997b49
docs(HexRCF): bind retained source evidence to committed artifacts
Oct 16, 2026
35bb1c7
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 16, 2026
7188977
fix(HexRCF): preserve maximal metadata and order source guards consis…
Oct 16, 2026
07e92d8
docs(HexRCF): bind source audits, base tests and routing observations
Oct 16, 2026
205195e
docs(HexRCF): identify committed review-validation artifacts
Oct 16, 2026
41f1aba
Merge remote-tracking branch 'origin/main' into issue-10358
Oct 16, 2026
f279f6c
feat(HexRCF): characterize algebraic producer acceptance
Oct 16, 2026
1e4db97
Merge commit '41f1aba4b22ffedb5cf4989a5ebcbba23f3313d8' into issue-10…
Oct 16, 2026
0da75d3
fix(HexRCF): retain finite leaf witnesses and canonical metadata
Oct 16, 2026
3d1d9b0
Merge branch 'issue-10358' into issue-10358-cell-decision
Oct 16, 2026
e944b04
fix(HexRCF): preserve quotient witnesses without duplicate bounds
Oct 16, 2026
1433553
Merge branch 'issue-10358' into issue-10358-cell-decision
Oct 16, 2026
291c74d
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 16, 2026
8940124
fix(HexRCF): check finite witness evidence consistently
Oct 16, 2026
b73a362
Merge branch 'issue-10358' into issue-10358-cell-decision
Oct 16, 2026
c185a7d
feat(HexRCF): prove acceptance at checked original algebraic sources
Oct 16, 2026
b1f0c80
fix(HexRCF): preserve proof budgets and exact source acceptance bindings
Oct 16, 2026
466e399
fix(HexRCF): account retained identities within preparation budgets
Oct 16, 2026
0b9df89
fix(HexRCF): give manual proof checks private auxiliary names
Oct 16, 2026
5270043
docs(HexRCF): fit source acceptance example to narrow pages
Oct 16, 2026
25c5f7a
docs(HexRCF): shorten narrow example failure text
Oct 16, 2026
4029fa2
docs(HexRCF): retain complete source acceptance validation
Oct 16, 2026
dd32822
Merge remote-tracking branch 'origin/main' into issue-10358-cell-deci…
Oct 16, 2026
a815127
docs(HexRCF): retain landed-parent integration evidence
Oct 16, 2026
6f0ae42
fix(HexRCF): validate original source guard inventories
Oct 16, 2026
cdc9b74
test(HexRCF): bound repeated original-source scans
Oct 16, 2026
db4041d
docs(HexRCF): retain guard and budget validation
Oct 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 61 additions & 1 deletion HexManual/Chapters/HexRCF/AlgebraicCells.lean
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,9 @@ Its default proof callback, `FieldRuntime.nonnegative`, attempts routine
nonnegativity facts and restores its state on decline. A caller can supply
another callback returning an ordinary proof or `none`; thrown exceptions
remain terminal. Preparation checks each supplied proof and retains one
aggregate reflection budget across the source, coefficients and divisors:
aggregate reflection budget across the source, coefficients and divisors.
The source equivalence is charged during reification and again when retained
as a private theorem for later composition:

```lean
open Lean Meta Qq
Expand All @@ -628,6 +630,64 @@ authenticate quoted literals for the computed proposals. This preparation API
does not install a new `rcf` handler or close the remaining frozen-context,
literal-authentication and general source-quotation obligations.

For the retained algebraic expressions, `prepared.acceptanceIff` proves an exact
acceptance equivalence. The left side requires the actual algebraic producer
to return a complete packet and that packet's checker to accept `true`. The
right side contains both the original real statement and every original
divisor's nonzero condition. Guard validity is a conclusion of acceptance,
even when cancellation or an empty interval makes the statement trivial.
The helper reconstructs the ordered original guard inventory from the target;
editing both stored guard arrays cannot remove or replace an obligation.
The existing producer completeness and domain laws prove this equivalence;
no successful child calculation is assumed.

```lean
open Hex Lean Meta Qq
open Hex.RCF.RealCoefficients
open Hex.RealClosure.BaseContext
run_meta do
let target : Q(Prop) :=
q(∀ x : ℝ, x^2 + Real.sqrt 2 > 0)
let .ok prepared ←
AlgebraicPreparation.prepare
target
| throwError "unsupported source"
let before := prepared.usage
let registry : Q(Registry) :=
q(fun _ => none)
let .ok (equivalence, usage) ←
prepared.acceptanceIff
target registry
| throwError
"source equivalence failed"
let auxName := mkPrivateName
(← getEnv)
(← mkFreshUserName `sourceDoc)
let _ ←
withDeclNameForAuxNaming
auxName do
Hex.RCF.checkProof
`sourceAcceptance
(← inferType equivalence)
equivalence
unless usage.proofNodes >
before.proofNodes do
throwError
"proof usage did not increase"
```

This proof uses the checked algebraic expressions and their source identities.
It does not identify separately computed proposals with frozen literals,
reconstruct provider histories, or add a tactic handler. Those authentication
and quotation obligations remain separate. The helper continues the same
aggregate reflection budget, returns its updated usage for later stages, and
restores caller state on exhaustion or failure.
Callers continue with `{prepared with usage}` when constructing further proofs.
Both preparation and acceptance preserve a caller's lowered recursion limit.
Fresh importing regressions check its actual theorem bodies, true and false
sources, retained zero guards and reversed intervals, with exactly the standard
three axioms.

The automatic-input conformance uses both selected signs of √2 alongside an
independent positive √3. It checks simultaneous conditions and a repeated zero
root, both true and false quantified verdicts, an unused zero input, a late
Expand Down
75 changes: 75 additions & 0 deletions adapters/HexRCF/RealCoefficients/AlgebraicCells.lean
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,79 @@ theorem build_sound (registry : BaseContext.Registry) (generators : Fin m → Re
cases same
exact checked

/-- Acceptance by the actual algebraic producer and its complete packet
checker. This predicate retains the exact source tuple, indices and original
nonzero-divisor obligations; it does not assert frozen-history quotation. -/
@[expose] def accepts (registry : BaseContext.Registry) (generators : Fin m → RealAlgebraicNumber)
(indices : Fin n → Fin m) (original : List (Fin m))
(formula : Hex.RealFormula.QF (n+1)) (quantifier : Hex.RealFormula.Quantifier) : Prop :=
∃ result, build registry generators indices original formula = .ok result ∧
let sources := result.1
let shared := result.2.1
let packet := result.2.2
CompleteReplay.check packet.family.collection.input.context.codec
(packet.family.collection.input.value ∘ GatherCells.values shared (coefficients sources indices)) formula
((GatherCells.guards shared (guards sources original)).map packet.family.collection.input.value)
packet.radical quantifier packet.rootGraph packet.cells = .ok true

/-- Accepted true packets are equivalent to the original domains and shared
sentence together. Guard validity, complete roots and real samples follow
from the producer's existing laws, without a child-success hypothesis. -/
theorem accepts_iff (registry : BaseContext.Registry) (generators : Fin m → RealAlgebraicNumber)
(indices : Fin n → Fin m) (original : List (Fin m))
(formula : Hex.RealFormula.QF (n+1)) (quantifier : Hex.RealFormula.Quantifier) :
accepts registry generators indices original formula quantifier ↔
(∀ i ∈ original, (generators i).toReal ≠ 0) ∧
(Hex.RealFormula.Prenex.quant quantifier (.matrix formula)).toProp
(fun i => (generators (indices i)).toReal) := by
constructor
· rintro ⟨result, produced, accepted⟩
refine ⟨build_domains registry generators indices original formula result.1 result.2 produced, ?_⟩
obtain ⟨verdict, checked, meaning⟩ :=
build_sound registry generators indices original formula result produced quantifier
have same : verdict = true := Except.ok.inj (checked.symm.trans accepted)
exact meaning.mp same
· rintro ⟨domains, truth⟩
have nonzero : ∀ i ∈ original, generators i ≠ 0 := by
intro i member zero
apply domains i member
simp only [zero, RealAlgebraicNumber.zero_toReal]
obtain ⟨sources, shared, packet, produced, checked⟩ :=
build_complete registry generators indices original formula nonzero
obtain ⟨verdict, accepted, meaning⟩ := checked quantifier
have same : verdict = true := meaning.mpr truth
exact ⟨⟨sources, shared, packet⟩, produced, by simpa only [same] using accepted⟩

/-- Coefficient and original-divisor coordinates have separate ordered
positions in the native producer. Every divisor remains a checked domain. -/
theorem accepts_tuple (registry : BaseContext.Registry)
(values : Fin n → RealAlgebraicNumber) (divisors : Fin d → RealAlgebraicNumber)
(formula : Hex.RealFormula.QF (n+1)) (quantifier : Hex.RealFormula.Quantifier) :
accepts registry (Fin.addCases values divisors) (Fin.castAdd d)
(List.ofFn (Fin.natAdd n)) formula quantifier ↔
(∀ i, (divisors i).toReal ≠ 0) ∧
(Hex.RealFormula.Prenex.quant quantifier (.matrix formula)).toProp
(fun i => (values i).toReal) := by
rw [accepts_iff]
simp

/-- Checked valuation identities and the frontend's exact equivalence connect
producer acceptance to the original proposition and every original divisor.
The identities are ordinary proof inputs supplied by source preparation. -/
theorem accepts_source (registry : BaseContext.Registry)
(values : Fin n → RealAlgebraicNumber) (divisors : Fin d → RealAlgebraicNumber)
(realValues : Fin n → ℝ) (realDivisors : Fin d → ℝ)
(formula : Hex.RealFormula.QF (n+1)) (quantifier : Hex.RealFormula.Quantifier)
{source : Prop}
(coefficientEq : (fun i => (values i).toReal) = realValues)
(divisorEq : (fun i => (divisors i).toReal) = realDivisors)
(equivalence : (Hex.RealFormula.Prenex.quant quantifier (.matrix formula)).toProp realValues ↔ source) :
accepts registry (Fin.addCases values divisors) (Fin.castAdd d)
(List.ofFn (Fin.natAdd n)) formula quantifier ↔
(∀ i, realDivisors i ≠ 0) ∧ source := by
rw [accepts_tuple, coefficientEq]
have domains : (∀ i, (divisors i).toReal ≠ 0) ↔ (∀ i, realDivisors i ≠ 0) := by
rw [← divisorEq]
exact and_congr domains equivalence

end Hex.RCF.RealCoefficients.AlgebraicCells
Loading
Loading