Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Universal fixed-lag certificate search

Abstract

A finite algorithm decides original numbered certificates at each fixed positive lag.

The orders n and k and lag m are arbitrary natural numbers. A and B are natural count matrices of orders n and k. The input requires positive orders, positive lag, and a nonzero entry in every row and every column of both matrices. The selector aligned chooses either the two original aligned laws or the two original compatibility sweep laws. All equalities retain the numbered edges and the whole output paths.

Definition 1.1 (The four actual maps).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Maps (✓ std3).

Source. Repository-derived.

Commentary.

FourEquivalenceFamilies is the product of the endpoint-indexed families EdgePair(A,R,i,z) ≃ EdgePair(R,B,i,z), EdgePair(B,S,t,w) ≃ EdgePair(S,A,t,w), EdgePair(R,S,i,w) ≃ FinitePath(A,m,i,w), and EdgePair(S,R,t,v) ≃ FinitePath(B,m,t,v). Each equivalence stores its forward and inverse tables and both inverse laws.

Definition 1.2 (Both sweep laws).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Compatible (✓ std3).

Source. Repository-derived.

Commentary.

For every length-m A path alpha from i to j and every numbered R edge r from j to z, write psiA(i,j) inverse(alpha)=(u,r0,s0). ForwardSweepLaw says sweep(phiR,alpha,r)=(u,r0,psiB(u,z)(j,s0,r)). BackwardSweepLaw is the literal swapped equation: for a B path beta from t to z and S edge s from z to w, write psiB(t,z) inverse(beta)=(u,s0,r0); sweep(phiS,beta,s)=(u,s0,psiA(u,w)(z,r0,s)). Both quantify over every original path and numbered edge.

Definition 1.3 (Both alignment laws).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Aligned (✓ std3).

Source. Repository-derived.

Commentary.

AlignedA and AlignedB are the original predicates from OriginalAlignedBalanced, applied to these same four equivalences.

Definition 1.4 (Selecting the law pair).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Valid (✓ std3).

Source. Repository-derived.

Commentary.

The true selector requires Aligned and the false selector requires Compatible. No maps are replaced when selecting the laws.

Definition 1.5 (Essential count matrices).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Essential (✓ std3).

Source. Repository-derived.

Commentary.

Every row and every column has a nonzero entry. The two clauses are separate, including at order zero.

Definition 1.6 (The original input boundary).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Input (✓ std3).

Source. Repository-derived.

Commentary.

Input consists exactly of 0<n, 0<k, 0<m and essentiality of A and B. Lag zero, an empty order, and a zero row or column are rejected.

Definition 1.7 (Unrestricted original existence).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.OriginalExists (✓ std3).

Source. Repository-derived.

Commentary.

R and S range over all natural matrices of the displayed shapes. There is no entry bound in this existence predicate. The witness includes all four equivalences and both selected laws.

Definition 1.8 (The four matrix products).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.MatrixLaws (✓ std3).

Source. Repository-derived.

Commentary.

The four products follow from cardinalities of the four equivalences. The RS and SR equations use the corresponding A and B path counts separately.

Definition 1.9 (A finite matrix carrier).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.BoundedMatrix (✓ std3).

Source. Repository-derived.

Commentary.

BoundedMatrix(r,s,bound) is Fin r → Fin s → Fin(bound+1), including entries zero through bound.

Definition 1.10 (Recovering natural entries).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.entries (✓ std3).

Source. Repository-derived.

Commentary.

The decoding takes each Fin value’s natural-number value without changing a row, column or edge number.

Definition 1.11 (All bounded matrices and all maps).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.Candidate (✓ std3).

Source. Repository-derived.

Commentary.

The dependent sum first enumerates R in BoundedMatrix(n,k,powerMaximum(A,m)), then S in BoundedMatrix(k,n,powerMaximum(B,m)), then all Maps(A,B,entries(R),entries(S),m). Path types are encoded recursively. Equivalences are encoded by their actual forward and inverse finite tables with inverse-law tests. Thus the enumeration includes whole maps rather than cardinality surrogates.

Definition 1.12 (Checking a candidate).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.candidateCheck (✓ std3).

Source. Repository-derived.

Commentary.

CandidateMatrixLaws abbreviates MatrixLaws(A,B,entries(c.R),entries(c.S),m). The final conjunction tests both laws of the selected kind on c’s four actual maps.

Definition 1.13 (Executable finite search).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.search (✓ std3).

Source. Repository-derived.

Commentary.

If Input is false, search returns none. Otherwise it runs List.find? with candidateCheck on Encodable.sortedUniv(Candidate(A,B,m)). A successful result returns the actual bounded matrices and all four equivalences. Both Fintype and Encodable are constructed, so this is executable exhaustive search.

Definition 1.14 (The decision Boolean).

Formalization. D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.existsBool (✓ std3).

Source. Repository-derived.

Commentary.

existsBool observes whether the search returned an actual candidate.

Theorem 1.15 (Soundness of the returned maps).

Proof. Machine-checked in Lean as D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.search_sound (✓ std3). ∎

Source. Repository-derived.

Commentary.

List.find? supplies a true candidateCheck. Eliminating its decidable conjunction gives the original input and both selected laws for precisely the returned maps.

Theorem 1.16 (Universal correctness).

Proof. Machine-checked in Lean as D5/S3/ConceptDynamics/Coding/ResponseRealization/FixedLagCertificateSearch.search_correct (✓ std3). ∎

Source. Repository-derived.

Commentary.

Soundness recovers the unrestricted witness from the returned candidate. For completeness, start with arbitrary natural R and S and the original four equivalences. Essentiality and the inverse path bijections bound every R entry by powerMaximum(A,m) and every S entry by powerMaximum(B,m). Encode each entry in the corresponding Fin type and retain the same four equivalences. This constructs an actual Candidate whose check is true; membership in sortedUniv makes the search succeed. The construction occurs directly in the universal theorem and adds no bounded-input hypothesis.

The executable examples use command-local CountMat(1,1) inputs with every entry equal to one, evaluate both selectors, and reject lag zero and a nonessential input. The utility instance names the already existing private unitCountMatrix in CompatibleResponseForgettingBound, which is the same closed one-matrix input. A separate example enumerates all four map tables for the one-vertex two-loop input. Examples provide computational observations, not additional mathematical results.

References