Manuscript Psy03-C@1 · Psy03-C-v1.tex · d3380b90
Psy03-C Recurrent Stability and Probe Identifiability in Scar-Constrained Networks: Task Geometry, Temporal Certificates, and a Separate Quantum Extension
Specifies version 1 of a recurrent-stability and probe-identifiability framework for the supplied 068g_cognitive_impact_v2.py and a separately defined finite input-driven quantum extension. lem:convex and thm:reluinvariance give an ordinary-ReLU invariant cube despite unbounded input noise. thm:tanh bounds externally tanh-activated paths and gives a finite-horizon envelope for biased ReLU. thm:celllip and thm:recurrence give gate-aware Lipschitz constants and a temporal perturbation certificate. prop:repetition records that repeated static inputs do not create independent latent examples. thm:bayes and thm:blend give exact Gaussian-task and noiseless-blend references; the blend information loss is not monotonic in distractor weight. prop:invertible records that rotation and scaling preserve ideal label information. cor:battery and prop:identifiability separate probe accuracy, clean-to-probe gaps, checkpoint changes, and scar-attributable effects. thm:qforget and prop:register separate fixed-sector forgetting from a persistent-register obstruction. thm:qpilot is an exactly solved delayed phase-label pilot. thm:release is the analytical release. Psy01-A, Psy02-A, Psy02-B, Psy03-A, Psy03-B, Em06-B, Em04-A, Em05-A, VII-J, and En01-B are documentary source records and are not premises. No newly executed probe ranking is asserted. This is not a derivation of a cognitive construct, not a biological treatment mechanism, not neuronal quantum viability, and not conscious experience. This is not metric reconstruction, not Einstein dynamics, not holographic identification, not a Page curve, and not spacetime emergence. The inherited full characteristic map is not constructed. It does not repair XI-G. It does not close O.1. O.1 stays NOT_CLOSED. The series Route B is not discharged. XVI-N is not discharged. XV-B is not opened. XVI-P is registered and is not a premise. H2, I3, and J2 stay unresolved. Full spacetime emergence is not constructed. No quantum coefficient is admitted. No compilation is asserted. Numerical execution is not asserted. Independent execution is not asserted.
Front matter
abstractAbstractFront matter · lines 121–156
Open as its own pageWe develop a source-aligned proof framework for recurrent classification and a computational probe battery in the supplied
068g_cognitive_impact_v2.py. The ordinary and biased evaluators inject noise through different interfaces and are not unrollings of the earlier feed-forward stress model. Using the actual PyTorch GRU convention, we prove an ordinary-ReLU invariant cube despite unbounded input noise, bounded states for either externally tanh-activated path, and a finite-horizon envelope for biased ReLU trajectories. Gate-aware Lipschitz constants, exact cell Jacobians, parameter residuals, and temporal propagation give conditional perturbation and margin certificates. Repeated static inputs preserve the original task information; independent per-step corruption changes the observation law but does not create independent latent examples. We derive exact Gaussian-task Bayes references and a noiseless blend reference whose information loss is non-monotonic in distractor weight. Invertible rotation and scaling preserve ideal label information, whereas the implemented blend ignores the conflicting labels. Simultaneous and history-conditional battery certificates separate probe accuracy, clean-to-probe gaps, checkpoint changes, and scar-attributable intervention effects. An updated static audit distinguishes persistent defects from controls now used by the source, including the 131-candidate per-seed sweep and three-seed iso-displacement routine. A separately declared finite input-driven quantum model supplies fixed-sector forgetting bounds, a persistent-register obstruction to global forgetting, and an exactly solved delayed phase-label pilot. No executed probe ranking, validated cognitive construct, biological treatment mechanism, quantum computational advantage, or inherited field-theoretic admission is asserted.sectionFront matterFront matter · lines 156–162
Open as its own pageKeywords: GRU; recurrent stability; probe validity; Bayes accuracy; distribution shift; structural constraints; adaptive evaluation; quantum reservoir computing; sequential memory.
Question, contribution, and proof boundary
sectionQuestion, contribution, and proof boundaryQuestion, contribution, and proof boundary · lines 164–236
Open as its own pageThe central question is:
Which probe-performance differences reflect recurrent dynamics, which reflect information loss or distribution shift in the task, and which can legitimately be attributed to structural interventions?
Cheung's pruning and intervention studies supply the immediate computational motivation CheungPruning,CheungModes,CheungCliff. His separate pruning-based recurrent model of OCD illustrates another application of structural and functional interventions CheungOCD. Its task, observations, and conclusions are not identified with the present four-class probe battery.
Psy01-A separates masks, weight geometry, margins, noise, and optimization schedules CheungPsy01A. Psy03-A studies individual intervention budgets CheungPsy03A. Psy03-B studies irreversible structural state and threshold feedback CheungPsy03B. The distinctive contribution here is recurrent dynamics and what the probe observations identify.
Psy02-A and Psy02-B motivate the separation of carrier dynamics, instruments, complete records, and mechanism identification CheungPsy02A,CheungPsy02B. Their roles are documentary and methodological. The independent results needed here are proved for the objects printed in this source.
source. The complete supplied
068g_cognitive_impact_v2.pydefines the implementation audit Cheung068G. No mutable repository revision is silently substituted. The audit is static and does not independently reproduce the source's numerical outcomes.quantities that must remain separate.
Task information: the best prediction possible from the declared observation law.
Implementation performance: the accuracy of a particular recurrent computation and readout.
Construct interpretation: a correspondence between that observation and a biological or cognitive mechanism.
The first two can be studied mathematically. The third needs separately supplied validation.
. We use rotation-shift generalization, radial-scaling generalization, reduced-separation classification, high-input-noise classification, and coordinate-interference blending. The source's flexibility, visuospatial, attention, sensory, mania, and drug-class labels remain proposed analogies.
and evidence. The elementary norm, concentration, and channel tools are standard. The contribution is their source-specific assembly, the explicit gate-aware constants, task references, and interface counterexamples. No optimization-convergence theorem, executed simulation, compiled artifact, or clinical recommendation is claimed.
The actual recurrent model
sectionDimensions, masks, and the PyTorch cellThe actual recurrent model › Dimensions, masks, and the PyTorch cell · Psy03-C@1#eq:counts, Psy03-C@1#eq:cell · lines 240–296
Open as its own pageThe source uses input dimension , hidden dimension , four output classes, and repeated sequences of length .
With biases enabled, its parameter counts are
Thus
The configured feed-forward
hidden_dimsdo not determine this GRU architecture.For each weight tensor, let be its active mask and its permanent-scar mask. The admissibility condition is
Effective weights are stored with deleted coordinates zero. Biases are not pruned.
Split the effective input and recurrent weights into reset, update, and candidate blocks:
The packed tensors are ordered . For and , the actual cell is
These are the PyTorch
GRUCellequations PyTorchGRU. In particular, the reset gate multiplies the hidden affine term including . The alternative expression is not substituted.The candidate uses tanh and the gates use sigmoid even when the source switches its external activation to ReLU.
sectionGain and protectionThe actual recurrent model › Gain and protection · Psy03-C@1#eq:controls · lines 297–315
Open as its own pageLet be the inhibition multiplier, the assigned gain, and the protection coordinate. Define
The number is not a clinical protection probability.
Here gain multiplies the input. It is not a second multiplier on the hidden state. The source's reported is therefore an accounting product, not one combined post-cell scale.
sectionTwo different noise interfacesThe actual recurrent model › Two different noise interfaces · Psy03-C@1#eq:ordinary, Psy03-C@1#eq:biased · lines 316–363
Open as its own pageLet and be independent standard Gaussian vectors, independent of the latent example. The index denotes a step within one forward invocation.
The ordinary computation is
Here is the evaluator's additional input noise and is the source's ordinary
stress_level.The biased computation is
The readout in both cases is
The smallest maximizing index resolves ties.
The paths coincide when all their noise and bias intensities vanish. They otherwise perturb different spaces at different positions: ordinary stress enters the two-dimensional cell input, whereas biased stress enters the hidden update before the external activation.
The post-activation feed-forward bounds in Psy01-A and Psy03-A are therefore interface precedents, not formulas for (eq:ordinary) or (eq:biased) CheungPsy01A,CheungPsy03A.
sectionTwo time scales and complete stateThe actual recurrent model › Two time scales and complete state · lines 364–387
Open as its own pageEvery source forward invocation constructs a new zero hidden state. Hidden state is carried within the sequence, not between examples or evaluation calls.
Longitudinal state instead includes
The index denotes an intervention cycle. A checkpoint intended to continue a live recurrent sequence would additionally need its current ; the supplied pipeline does not do that.
Mask invariants and repair-capacity restrictions remain the coordinate bookkeeping of Psy03-B CheungPsy03B. A scar count is not a recurrent stability constant.
Gate-aware recurrent stability
sectionExplicit constantsGate-aware recurrent stability › Explicit constants · lines 509–532
Open as its own pageAll unmarked matrix norms in this section are Euclidean operator norms. The notation denotes the maximum absolute row sum.
Fix a comparison region with
and update-gate bounds
Define
Without a refined gate certificate, take .
theoremTheorem: Gate-aware cell Lipschitz constantsGate-aware recurrent stability › Explicit constants · Psy03-C@1#thm:celllip, Psy03-C@1#eq:celllip, Psy03-C@1#eq:Lconstants · proof attached · lines 533–582
Open as its own pageOn the declared region,
where
With coarse gate bounds, these constants are valid for all inputs , even if their domain is unbounded.
Proof. Sigmoid is -Lipschitz and tanh is -Lipschitz. Writing , the candidate arguments differ by
The last term is bounded by . This gives the candidate constants
The exact output decomposition is
Since , substitution gives (eq:Lconstants). The coarse bounds do not restrict input magnitude.
sectionExplicit constantsGate-aware recurrent stability › Explicit constants · lines 582–591
Open as its own pageFor ordinary paths or externally tanh-activated paths, one may use . For biased ReLU, a pathwise or high-probability envelope must first be supplied. Refined gate bounds on a bounded input region must include the probability or deterministic certificate that the inputs stay in that region.
sectionExact cell JacobiansGate-aware recurrent stability › Exact cell Jacobians · Psy03-C@1#eq:jacobians · lines 592–623
Open as its own pageLet
Direct differentiation gives
The hidden bias in is essential.
For the ordinary post-cell map
its Jacobian at a differentiability point is
where is evaluated at the post-cell preactivation.
remarkRemark: Observed Jacobians versus comparison certificatesGate-aware recurrent stability › Exact cell Jacobians · lines 624–631
Open as its own pageA product of Jacobians evaluated only on one observed trajectory is a linear-response diagnostic. It is not a finite-perturbation bound unless the needed comparison tube is controlled. ReLU gate boundaries require a Lipschitz argument or a verified nonzero-gate tube.
theoremTheorem: Temporal perturbation and forgetting certificateGate-aware recurrent stability › Finite-horizon propagation · Psy03-C@1#thm:recurrence, Psy03-C@1#eq:temporal · proof attached · lines 635–669
Open as its own pageSuppose coupled trajectories satisfy
Then
For common weights and controls, valid local constants give .
If and , then
For , the bound is . For , it is
The case permits amplification in the upper bound; it does not prove actual instability.
Proof. Induct on the scalar recurrence. The constant-coefficient cases are geometric sums.
sectionFinite-horizon propagationGate-aware recurrent stability › Finite-horizon propagation · lines 669–677
Open as its own pageWhen the head is common,
An early input discrepancy followed by identical later inputs is propagated by the corresponding suffix product.
propositionProposition: Tube-averaged Jacobian productsGate-aware recurrent stability › Finite-horizon propagation · Psy03-C@1#prop:jacproduct · proof attached · lines 678–709
Open as its own pageSuppose the unprimed update maps are continuously differentiable on the state comparison segments. This holds for external tanh and for a verified nonzero ReLU gate tube. Set
and
Then exactly
Consequently,
Proof. Apply the fundamental theorem of calculus on each state segment and iterate the resulting vector identity.
sectionFinite-horizon propagationGate-aware recurrent stability › Finite-horizon propagation · lines 709–713
Open as its own pageThe result retains directional matrix products and can be sharper than multiplying their separate norms.
propositionProposition: Zero recurrent weights do not remove all recurrenceGate-aware recurrent stability › Why simple recurrent summaries are insufficient · Psy03-C@1#prop:carry · proof attached · lines 716–729
Open as its own pageIf , the GRU can still depend on its preceding hidden state:
Thus deletion of every stored recurrent weight does not delete the update-gate carry path.
Proof. Substitute the zero recurrent blocks into (eq:cell).
propositionProposition: Gate-block spectral radii do not certify contractionGate-aware recurrent stability › Why simple recurrent summaries are insufficient · Psy03-C@1#prop:radius · proof attached · lines 731–753
Open as its own pageThere are GRU cells whose recurrent gate blocks all have spectral radius zero, but whose state map has Euclidean local expansion.
Proof. Take , constant gates , and
All three spectral radii are zero. At , the smooth cell Jacobian is
Its norm exceeds one for sufficiently large . The same expansion holds near an interior positive state with external ReLU, where its gates are active, by continuity. The state can remain in the ordinary invariant cube.
sectionWhy simple recurrent summaries are insufficientGate-aware recurrent stability › Why simple recurrent summaries are insufficient · lines 753–767
Open as its own pageThe packed recurrent tensor is rectangular, so its spectral radius is not defined. Even gatewise square-block radii do not control the complete Jacobian.
A contraction bound controls metric separation. For a classical deterministic system with exact noiseless readout, arbitrarily small distinct states can still encode different labels. A claim that classification must approach chance therefore needs an observation-noise, finite-resolution, or robustness condition in addition to state contraction.
Noise, parameter, and control certificates
sectionThe two temporal noise allowancesNoise, parameter, and control certificates › The two temporal noise allowances · Psy03-C@1#eq:noiseeta · lines 771–798
Open as its own pageFor common parameters and controls, compare each path with its zero-noise, zero-bias reference. On a valid comparison region, Theorem thm:celllip gives
The protection offset cancels because it is common. No post-activation Gaussian term is introduced.
Let
For , this sum is one when .
theoremTheorem: Finite-horizon Gaussian margin certificateNoise, parameter, and control certificates › The two temporal noise allowances · Psy03-C@1#thm:stress, Psy03-C@1#eq:margincertificate · proof attached · lines 799–844
Open as its own pageLet all relevant noise coordinates be bounded by on an event of probability at least . For example, if Gaussian coordinates are used, take
Suppose are valid for the compared trajectories on that event, and put . Then the ordinary logit allowance is
and the biased allowance is
For the corresponding clean true-label margin ,
The lower bound may be truncated at zero.
Proof. Apply (eq:noiseeta) on the common noise event and then Theorem thm:recurrence. The margin satisfies
A clean margin exceeding remains positive. Subtract the exceptional-event probability.
sectionThe two temporal noise allowancesNoise, parameter, and control certificates › The two temporal noise allowances · lines 844–864
Open as its own pageFor a uniform ordinary certificate one may count coordinates and use , with coarse gate bounds. For a biased certificate one may count . External tanh again permits . For biased ReLU use
Unused Gaussian coordinates can be included harmlessly in a conservative count. If no noise is present, no Gaussian exceptional event is needed.
These are sufficient survival bounds, not strict ordering theorems between two interventions.
sectionAn explicit cell-parameter residualNoise, parameter, and control certificates › An explicit cell-parameter residual · lines 865–878
Open as its own pageCompare two cells at the same , with . For , define
Set .
lemmaLemma: Pointwise cell-parameter allowanceNoise, parameter, and control certificates › An explicit cell-parameter residual · Psy03-C@1#lem:paramcell, Psy03-C@1#eq:paramcell · proof attached · lines 879–900
Open as its own pageThe cell difference satisfies
Proof. Gate differences are at most . The candidate argument difference is bounded by , using . Tanh is -Lipschitz. Apply the output decomposition from Theorem thm:celllip at common .
sectionAn explicit cell-parameter residualNoise, parameter, and control certificates › An explicit cell-parameter residual · lines 900–904
Open as its own pageThe allowance includes both bias families. Weight-only displacement does not control it.
sectionA complete recurrent comparisonNoise, parameter, and control certificates › A complete recurrent comparison · Psy03-C@1#eq:fullresidual · lines 905–940
Open as its own pageFor a comparison interface, allow both input and hidden perturbations explicitly:
The source's ordinary and biased paths are particular cases. Using both perturbation types simultaneously is a separately declared experiment.
For primed controls under the same primitive draws, put
theoremTheorem: Full recurrent-state comparisonNoise, parameter, and control certificates › A complete recurrent comparison · Psy03-C@1#thm:fullcomparison · proof attached · lines 941–969
Open as its own pageOn a region where the unprimed cell constants are valid,
with from (eq:fullresidual). For different heads,
All first moments are finite at fixed finite horizon under the stated Gaussian perturbations and finite parameters.
Proof. Insert and . Use the cell input/state bound and Lemma lem:paramcell. The remaining terms are direct control and activation differences. Iterate the resulting recurrence. Finite-horizon state envelopes and Gaussian moments give integrability.
sectionA complete recurrent comparisonNoise, parameter, and control certificates › A complete recurrent comparison · Psy03-C@1#eq:accuracy · lines 969–992
Open as its own pageFor a frozen deletion of coordinates of magnitude at most , the corresponding matrix difference satisfies
Gatewise quantities, not only packed-tensor density, enter the certificate. Training-induced changes require their own residuals.
If , the accuracy interface is
The proof is the signed-margin and Markov-inequality argument recorded in Psy01-A and Psy03-A CheungPsy01A,CheungPsy03A. A small numerical perturbation bound alone does not prove strictly improved accuracy.
Repeated inputs and task information
definitionDefinition: Task reference accuracyRepeated inputs and task information · lines 996–1004
Open as its own pageFor a label and a declared observation , define
where randomized prediction rules are allowed. This is a property of the observation law, not of the trained network or a clinical construct.
propositionProposition: Repetition preserves static task informationRepeated inputs and task information · Psy03-C@1#prop:repetition · proof attached · lines 1006–1026
Open as its own pageFor , let
Then
More generally, if is a Markov chain, then .
Proof. The repeated sequence is a function of , and its first coordinate recovers . Prediction rules can therefore be translated in either direction. For the Markov claim, simulate the conditional law of given and then apply any rule defined on .
sectionRepeated inputs and task informationRepeated inputs and task information · lines 1026–1043
Open as its own pageThe source draws one noisy two-dimensional point and repeats it twenty times. This is iterated processing of static evidence. It is not twenty independent draws from the class-conditional cluster law.
Independent evaluation corruption at each step can create multiple noisy measurements of that same latent point. That is a different observation experiment, studied next.
A genuine delayed-memory task instead presents an early label-bearing cue that is absent from later inputs, followed by label-independent distractors and a delayed readout. Passing the static-repetition task does not certify performance on that new task.
Probe geometry and exact task references
sectionThe four-center Gaussian lawProbe geometry and exact task references › The four-center Gaussian law · lines 1047–1056
Open as its own pageLet be independent uniform signs. The label is their pair, translated into the source's class ordering, and
theoremTheorem: Gaussian four-center Bayes referenceProbe geometry and exact task references › The four-center Gaussian law · Psy03-C@1#thm:bayes, Psy03-C@1#eq:bayes, Psy03-C@1#eq:ceilings · proof attached · lines 1057–1085
Open as its own pageFor ,
For , . At , the common class law gives .
For the supplied ideal probe laws,
Proof. Equal-prior Gaussian likelihood comparison assigns each coordinate its observed sign. For each coordinate, the probability of the correct sign is . Coordinate signs and noises are independent, so the joint correctness probability is the square. The degenerate cases are immediate.
sectionThe four-center Gaussian lawProbe geometry and exact task references › The four-center Gaussian law · lines 1085–1095
Open as its own pageFor a particular implementation, define excess error
when is the Bayes accuracy of its declared observation experiment. A clean-to-noisy accuracy difference mixes changed task difficulty with implementation deficiency.
theoremTheorem: Repeated-measurement observation referenceProbe geometry and exact task references › Exact ordinary observation ceiling with repeated corruption · Psy03-C@1#thm:measurementbayes, Psy03-C@1#eq:measurementbayes · proof attached · lines 1098–1140
Open as its own pageSuppose the same Gaussian latent point is repeated and the ordinary cell receives
with and independent standard Gaussian noises. Let
If , the Bayes accuracy from the complete cell-input sequence is
If , it is one.
Any source ordinary recurrent classifier has accuracy at most this value. The latent cluster uncertainty does not decrease with . If , the cell-input sequence is label independent and its Bayes accuracy is .
Proof. Divide inputs by . Their average is
Its conditional coordinate variance is . The sequence residuals around this average are jointly Gaussian, independent of the average and of the label. Thus the average is sufficient for the class likelihood. Apply Theorem thm:bayes. The recurrent output is processing of that sequence.
sectionExact ordinary observation ceiling with repeated corruptionProbe geometry and exact task references › Exact ordinary observation ceiling with repeated corruption · lines 1140–1148
Open as its own pageGain affects the relative size of the unscaled ordinary input stress . The formula does not describe the biased hidden-update path. For that path, the data-processing ceiling from its admitted input observation remains valid, but hidden noise can add implementation loss.
propositionProposition: Information invariance under invertible transformationsProbe geometry and exact task references › Invertible shift versus unavailable task identity · Psy03-C@1#prop:invertible · proof attached · lines 1151–1164
Open as its own pageFor a measurable invertible transformation , with measurable inverse and unchanged label,
Consequently positive scaling and fixed rotation preserve ideal label information.
Proof. Compose prediction rules with or .
sectionInvertible shift versus unavailable task identityProbe geometry and exact task references › Invertible shift versus unavailable task identity · lines 1164–1184
Open as its own pageThe source multiplies row vectors on the right by
As a column-vector map this is , a rotation by . The angle sign must therefore be stated. At the configured , the centers move to axis locations and their original labels remain attached.
These transformed clean laws have Bayes accuracy one. A trained classifier's accuracy loss is lack of generalization to the shift, not unavoidable loss of label information. It is not, by itself, demonstrated cognitive flexibility.
propositionProposition: A transformation can create a conflicting rule when its identity is hiddenProbe geometry and exact task references › Invertible shift versus unavailable task identity · Psy03-C@1#prop:rotationconflict · proof attached · lines 1185–1203
Open as its own pageMix equally the original noiseless four-center task and its source-convention rotation, retain original labels, and withhold the transformation identity. The common observed support has two distinct equally likely labels at every point. The Bayes accuracy of this mixed task is , although each separately declared task has Bayes accuracy one.
Proof. The rotation permutes the four centers with no fixed point. Each point receives its original label in one component and a different label in the rotated component, with equal probabilities.
sectionInvertible shift versus unavailable task identityProbe geometry and exact task references › Invertible shift versus unavailable task identity · lines 1203–1209
Open as its own pageThe observation is a task-identity obstruction analogous to Psy01-A's conflicting-rule certificate CheungPsy01A. It is not asserted to be the configured probe.
propositionProposition: Voice-label permutation is invisible to the blendProbe geometry and exact task references › The unused voice labels · Psy03-C@1#prop:voicelabels · proof attached · lines 1212–1224
Open as its own pageChanging only the labels attached to the supplied voice coordinates leaves the blended evaluator unchanged.
Proof.
evaluate_blended_probereceives visual coordinates, voice coordinates, visual labels, and a blend ratio. It never reads voice labels. Neither the blended coordinates nor their reference labels change under a voice-label permutation.sectionThe unused voice labelsProbe geometry and exact task references › The unused voice labels · lines 1224–1230
Open as its own pageThe battery also does not evaluate the separately generated
voiceloader. Thus the implemented blend is a distractor-coordinate experiment, not a two-stream label-conflict decision.sectionAn exact non-monotonic blend referenceProbe geometry and exact task references › An exact non-monotonic blend reference · lines 1231–1241
Open as its own pageLet be independent and uniform on , with . Observe
and predict the label of .
theoremTheorem: Noiseless blend Bayes accuracyProbe geometry and exact task references › An exact non-monotonic blend reference · Psy03-C@1#thm:blend, Psy03-C@1#eq:blendbayes · proof attached · lines 1242–1281
Open as its own pageUnder exact observation,
In particular the reference accuracies at are . More distractor weight does not imply monotone information loss.
Proof. For one coordinate and , the four sign pairs give
For , these values are distinct, so both signs can be recovered.
At , a coordinate is zero with probability . A nonzero value identifies the visual sign; a zero leaves its two signs equiprobable. Optimal coordinate success is . The two coordinate experiments are independent, giving .
At , the observation is independent of the four-class visual label. At , it is the visual center itself.
sectionAn exact non-monotonic blend referenceProbe geometry and exact task references › An exact non-monotonic blend reference · lines 1281–1294
Open as its own pageA sign-quadrant classifier, in contrast, has joint accuracy for : it follows the distractor sign whenever signs disagree. At , a low trained accuracy can therefore coexist with full ideal label information.
The result concerns fresh independent uniform centers and exact observations. It is not automatically the Bayes accuracy for a finite empirical voice bank, quantized arithmetic, or additional input noise.
propositionProposition: Finite resolution and a noisy blend referenceProbe geometry and exact task references › An exact non-monotonic blend reference · Psy03-C@1#prop:blendnoise · proof attached · lines 1295–1336
Open as its own pageFor , the minimum separation between the four scalar mixture values is
Nearest-value decoding recovers both signs if scalar observation error is strictly less than .
If independent Gaussian noise of standard deviation is added to each blend coordinate, define its one-coordinate class densities
where is the centered Gaussian density. Then
For , this accuracy is strictly less than one.
Proof. Sort the four noiseless scalar values and inspect adjacent gaps. Nearest-value decoding is correct below half the minimum gap. For Gaussian noise, condition on the visual sign and average the two distractor signs. Coordinate likelihood decisions are independent. Both densities are positive everywhere, so their overlap has positive integral and coordinate success is strictly below one.
sectionAn exact non-monotonic blend referenceProbe geometry and exact task references › An exact non-monotonic blend reference · lines 1336–1340
Open as its own pageNoiseless information discontinuities at exact collisions must not be treated as smooth recurrent response surfaces.
Battery and longitudinal effect certificates
sectionObservation semanticsBattery and longitudinal effect certificates › Observation semantics · Psy03-C@1#eq:difference · lines 1344–1377
Open as its own pageFor predeclared probe laws , let
Each law includes:
latent inputs and labels;
transformation and distractor sampling;
sequence construction and sequence length;
ordinary or biased noise interface;
modulation and checkpoint stage;
permitted readout and reference task.
Define, separately,
and
A smaller clean-to-probe gap can result from worse clean performance. It is not automatically higher probe accuracy.
corollaryCorollary: Simultaneous battery radiusBattery and longitudinal effect certificates › Simultaneous fixed-checkpoint assessment · Psy03-C@1#cor:battery · proof attached · lines 1380–1402
Open as its own pageCondition on checkpoints independent of the assessment blocks. For predeclared probe means, each estimated from independent example blocks,
is a simultaneous accuracy radius with confidence at least .
Noise repetitions within one example may first be averaged. They do not multiply the independent population sample count. Within-example dependence across checkpoints or probes is allowed.
Proof. Apply the bounded-example-block evaluation interface in Psy03-A
thm:evaluationand allocate its union bound over all means CheungPsy03A,Hoeffding.sectionSimultaneous fixed-checkpoint assessmentBattery and longitudinal effect certificates › Simultaneous fixed-checkpoint assessment · Psy03-C@1#eq:contrast · lines 1402–1423
Open as its own pageTwenty recurrent steps are one example computation, not twenty independent correctness trials. For unequal sample sizes, use a separate radius and confidence allocation for each mean.
For a paired contrast in an interval of length , the analogous radius is
for predeclared contrasts. A checkpoint accuracy difference has . A difference of two clean-to-probe gaps, represented by four correctness indicators on coupled latent blocks, has .
Pairing needs a declared coupling. Different, independently generated probe datasets are not automatically paired merely because they have equal sizes.
corollaryCorollary: History-conditional battery certificateBattery and longitudinal effect certificates › Conditional assessment along feedback trajectories · Psy03-C@1#cor:adaptive · proof attached · lines 1426–1447
Open as its own pageBefore assessment block , condition on the complete history, including current checkpoints and chosen probe laws. Suppose the next example blocks are conditionally fresh and independent and the checkpoints are fixed during the block. Allocate predictable error budgets with
almost surely. The corresponding Hoeffding radii hold simultaneously across the trajectory with probability at least .
Proof. Apply the conditional-block argument of Psy03-B
thm:conditional, using the conditional bounded-variable discipline in Psy02-Bthm:samplingCheungPsy03B,CheungPsy02B. Average each conditional failure probability and sum them.sectionConditional assessment along feedback trajectoriesBattery and longitudinal effect certificates › Conditional assessment along feedback trajectories · lines 1447–1454
Open as its own pageThis allows adaptive checkpoints but does not license reuse of controller inputs as fresh population assessment. Fresh noise on fixed reused inputs controls their conditional finite-design target only, as in Psy03-B CheungPsy03B.
sectionScar attributionBattery and longitudinal effect certificates › Scar attribution · lines 1455–1480
Open as its own pageFor a common checkpoint and specified intervention policies, compare scar-enabled and comparison branches under the same probe law:
A paired lower confidence bound greater than zero certifies that named computational contrast.
Immediate deletion versus no deletion changes effective weights and active masks. Permanent versus regrowable deletion should start with the same immediate deletion and differ in future eligibility. Later weight changes can be mediators of that policy contrast.
A scar–accuracy correlation across cycles does not isolate this effect: maintenance, gain, activation, challenge, and random inputs can change concurrently. The counterfactual distinctions are those of Psy03-B CheungPsy03B.
propositionProposition: A probe name does not identify a mechanismBattery and longitudinal effect certificates › Construct identifiability · Psy03-C@1#prop:identifiability · proof attached · lines 1483–1507
Open as its own pageFor two models with equal complete accessible record laws under the admitted battery, every randomized binary test satisfies
More generally,
Equality of battery means is weaker than equality of complete record laws. Neither equality alone assigns a cognitive interpretation.
Proof. For a test ,
Use total variation. Means retain only selected expectations of the complete law.
sectionConstruct identifiabilityBattery and longitudinal effect certificates › Construct identifiability · lines 1507–1516
Open as its own pageThis is the accessible-record interface in Psy02-A, Psy02-B, and Psy03-A CheungPsy02A,CheungPsy02B,CheungPsy03A. A scalar probe score can be compatible with several mechanistic descriptions. No identification of a clinical flexibility or attention construct is supplied merely by naming the transformation.
Updated static source audit
sectionUpdated static source auditUpdated static source audit · lines 1518–1596
Open as its own pageThe following findings concern the supplied complete
068g_cognitive_impact_v2.py, not an executed reproduction Cheung068G.• Architecture and noise changed. Ordinary stress is now input-channel noise. Biased stress is hidden-update noise before external activation. The statement that all other logic is unchanged does not preserve the earlier forward model.
• Hidden reset and static repetition. Every forward call resets hidden state to zero. Datasets repeat one point over twenty steps. This supplies within-call recurrence, not hidden-state persistence across longitudinal calls or a delayed-cue task.
• Parameter accounting. Equation (eq:counts) gives the exact architecture count, not only an estimate. The three pruned tensors are
gru_cell.weight_ih,gru_cell.weight_hh, andfc.weight. Pruning each packed GRU tensor does not enforce equal retention counts in its three gate blocks. Biases and the update-gate carry path remain.• Scale interpretation. Gain acts on inputs and inhibition acts after the cell. Their product is not a common hidden-state multiplier. The newly recorded gain and inhibition changes are useful accounting, but the primary matching metric still uses weight-only L1 displacement.
• Ordinary and biased probe arguments. In
evaluate_probe, a positive bias selectsforward_with_biased_noisewith the configuredmania_test_sigma. That branch ignores the suppliedinternal_stress. Zero or negative bias selects ordinary forward, so a requested negative hidden bias is not implemented there. A repaired interface should select mode explicitly.• Rotation convention. Right multiplication of row vectors implements the opposite signed angle from the printed column-vector convention. The transformation retains the original labels.
• Blend semantics. Voice labels are unused. Distractor coordinates are sampled with replacement from a finite empirical voice bank. The ideal fresh-uniform-center reference therefore needs source-law alignment before empirical use.
• Probe omission and hard-coded labels. The generated standalone voice loader is not evaluated by the battery. Keys such as
rotation_45andscaled_1.5remain fixed even if configuration values are changed. Observation metadata must retain actual parameter values.• Per-cycle stage distinction. The triggering biased accuracy and severity diagnostic are pre-scar. The cognitive battery and attached scar fraction are post-scar. These are intentionally different stages and must be labeled as such.
• Evaluation consumes future training randomness. Noise, blend indices, construction, shuffled loaders, scoring, and regrowth share global Torch randomness. Adding the new battery can therefore change later training and threshold-controller trajectories. Psy03-A's evaluation-isolation hypothesis is not satisfied CheungPsy03A.
sectionUpdated static source auditUpdated static source audit · lines 1596–1669
Open as its own page• Data-dependent feedback. The same test inputs determine episode flags and severity and are reused for later assessments. The fresh-population certificate cannot be assumed for those later states.
• Activation diagnostic. The diagnostic uses assigned gain rather than effective gain and omits protection offsets and stress. At the default protection-zero kindling state it is the clean, unchallenged hidden diagnostic, not the biased-noisy one. Unequal batches are weighted equally rather than by example count.
• Longitudinal reset still has the exact identity. After the source reset, , hence for every remaining protection level. Protection is still present through bias damping and offsets. The configured fifty decay calls still give, in exact real arithmetic, protection values , independent of maintenance duration. Duration arms remain separately retrained branches. Scar state is not passed to the duration-arm clone CheungPsy03B.
• Autonomy wording remains unsupported. The final condition retains bias , hidden noise standard deviation one, and assigned modulation. Its threshold is , unlike the controller's . It is weaker-challenge failure, not an untriggered clinical event.
• Persistent structural-interface defects. Quantile and kth-value ties do not enforce exact counts. A zero threshold can reactivate unscarred inactive mask positions. Zero regrowth still forces at least one coordinate per eligible tensor. The allocation flag is not implemented globally. Initial scarring still samples its fraction locally in NumPy but positions through global Torch randomness, and its strict availability inequality mishandles equality.
• Gradient scoring and state restoration. The first scoring backward pass does not clear old gradients. Restoration lacks a
finallyblock. Scores are unsigned accumulated ambient derivatives, not the signed update of Psy03-A's local-descent theorem CheungPsy03A. A tensor checkpoint omits ordinary Python controls and external manager state.• Some earlier configuration defects are now repaired. The adaptation sweep does use all four configured learning rates. The entry point runs the configured three iso-displacement seeds when the main seed count is at least three. These must not be reported as unused controls.
• Actual candidate counts. Each iso-displacement seed has
candidate configurations. The three-seed run has candidate executions. Candidates within one seed share a baseline and are not independent training-seed replicates.
• Matching remains unsupported outside tolerance. The matching function accepts but does not enforce tolerance. The configured absolute targets are replaced by seed-specific generated targets. A pooled-percentile fallback does not establish common finite-grid support.
sectionUpdated static source auditUpdated static source audit · lines 1669–1718
Open as its own page• Aggregation can mix different targets and level counts. The same
level_ican refer to different absolute targets across seeds. Overlap branches create five levels; fallback branches create four. Aggregation uses the first seed's level count, so an additional level from another seed can be omitted. A common absolute target or an explicitly defined seed-relative policy is required.• Iso sweeps omit cognitive and longitudinal batteries. They evaluate acute stress and secondary pruning, not the cognitive battery, kindling cycles, or duration arms. The script does not establish matched-budget cognitive or longitudinal comparisons.
• Density stages and challenge differences remain. Sweep dose and acute outcomes are pre-challenge; stored sweep sparsity is post-challenge. The main quantile target and sweep active-fraction challenge are different integer procedures.
• Evaluation mode and dtype. Evaluators change train/eval state without always restoring it. Ordinary evaluation restores stress to zero rather than its incoming value. Hidden zero tensors use default dtype rather than
x.new_zeros; mixed-precision or changed-dtype use requires explicit consistency.• Automatic device selection. The source selects CUDA when available. Model construction, numerical precision, device-specific streams, deterministic settings, and software versions belong in provenance. A seed is not a cross-platform bitwise guarantee PyTorchRandom.
• Output interpretation. Unconditional cognitive, clinical, safety, and cost-effectiveness prose is not generated from the required certificates. Pooled candidate standard deviations describe heterogeneity, not independent-seed confidence intervals. The off-modulation iso table header is printed without aggregating and reporting the corresponding stored sweep outcomes.
A separate input-driven quantum model
sectionPhysical channels, not a quantum GRUA separate input-driven quantum model › Physical channels, not a quantum GRU · Psy03-C@1#eq:qsequence · lines 1722–1758
Open as its own pageQuantum reservoir computing provides a precedent for input injection, finite quantum dynamics, and readout-based sequential processing FujiiNakajima. The construction below is not a re-interpretation of the GRU or a transfer of that article's numerical comparisons.
Let be finite dimensional and let be a fixed structural sector during one sequence. Declare CPTP maps
For example, an input-dependent finite GKSL generator gives GKS,Lindblad. A graph-based choice can use the coherent and jump-rate architecture of quantum stochastic walks Whitfield,CheungPsy03A.
An alternative declared injection on a composite carrier is
followed by a fixed finite channel. This injection is CPTP. It does not apply a nonlinear activation to an unknown state.
Complete record probabilities require instruments. Ideal expectation-valued features also require a measurement or repeated-preparation protocol; they are not free noiseless records from one unknown state Watrous,CheungPsy02A.
assumptionAssumption: Carrier contraction and input allowanceA separate input-driven quantum model › Fixed-sector contraction · Psy03-C@1#ass:qcontract · lines 1761–1776
Open as its own pageFor the selected state class and common sector,
For input comparisons, suppose
These constants are certified inputs, not consequences of complete positivity alone.
theoremTheorem: Quantum temporal certificateA separate input-driven quantum model › Fixed-sector contraction · Psy03-C@1#thm:qforget, Psy03-C@1#eq:qforget, Psy03-C@1#eq:qtaskforget · proof attached · lines 1778–1819
Open as its own pageUnder Assumption ass:qcontract, identical subsequent inputs give
For different inputs and an implemented-channel error in half-diamond distance,
Consequently the temporal product-and-sum bound of Theorem thm:recurrence applies.
For equal-prior delayed labels stored only in two carrier states, with later inputs independent of the label,
Proof. Iterate contraction and insert a common-input channel for the perturbed recurrence. The half-diamond allowance controls each normalized input, including referenced inputs Watrous.
For binary equal-prior state discrimination, write an effect for declaring plus:
The maximal effect expectation difference is trace distance. Apply (eq:qforget).
sectionFixed-sector contractionA separate input-driven quantum model › Fixed-sector contraction · lines 1819–1841
Open as its own pageThe contraction hypothesis is on carrier states. It is not automatically a contraction of on arbitrary referenced pairs, because an untouched reference can retain distinguishability. Channel implementation errors and carrier forgetting are different budgets.
For two bounded generator sectors under a common input schedule,
This is the generator-interface record in Psy03-A and Psy02-B, not a GRU Jacobian theorem CheungPsy03A,CheungPsy02B. For discrete sequences, complete interval and instrument errors telescope and must all be charged.
sectionPersistent structural labels prevent an automatic global forgetting theoremA separate input-driven quantum model › Persistent structural labels prevent an automatic global forgetting theorem · lines 1843–1852
Open as its own pageLet
Keep the label fixed and apply the same sector-selected input sequence in each branch.
propositionProposition: Carrier forgetting versus structural memoryA separate input-driven quantum model › Persistent structural labels prevent an automatic global forgetting theorem · Psy03-C@1#prop:register, Psy03-C@1#eq:registerbound · proof attached · lines 1853–1890
Open as its own pageFor common label distribution ,
For different label distributions,
The reduced carrier satisfies the upper bound
Thus carrier contraction in each sector does not erase a different persistent label distribution.
Proof. Orthogonal classical blocks have additive trace norm. Tracing out the carrier preserves the label distributions and contracts distance, proving the lower bound. For the reduced upper bound, match mass in each sector. The unmatched mass totals on each side; its trace-distance contribution is at most that number. Apply sector contraction to the matched pairs.
sectionPersistent structural labels prevent an automatic global forgetting theoremA separate input-driven quantum model › Persistent structural labels prevent an automatic global forgetting theorem · lines 1890–1902
Open as its own pageA carrier-only reset leaves the structural distribution unchanged. A subsequent sector-dependent operation can therefore restore history-dependent carrier records, as in Psy03-B CheungPsy03B. Operational Markovianity concerns intervention-dependent multitime records, not only monotonic distinguishability of selected state pairs PollockMarkov,PollockProcess. Classical persistent memory can produce that history dependence.
An exact delayed phase-label pilot
sectionAn exact delayed phase-label pilotAn exact delayed phase-label pilot · Psy03-C@1#eq:qpilot · lines 1904–1932
Open as its own pageOn a qubit, define
and
These are CPTP maps by their explicit mixture representations.
An early label is encoded as
All later input symbols are independent of that label. No external register retaining the label is supplied to the readout.
theoremTheorem: Exact delayed retention and its contraction coefficientAn exact delayed phase-label pilot · Psy03-C@1#thm:qpilot, Psy03-C@1#eq:qpilotsuccess · proof attached · lines 1933–1980
Open as its own pageFor a fixed sector and steps, set
Then
Phase-compensated projective readout has optimal success
The coherent-versus-node-dephased trace-distance witness for the plus input is .
The exact carrier contraction coefficient of one is , not generally . For , it therefore provides strict global carrier contraction even when . For , phase information decays, but global strict contraction is absent.
Proof. In Bloch coordinates, depolarization scales all three coordinates by ; dephasing scales by and leaves unchanged. The -rotation acts orthogonally in the plane. The maps commute with that rotation, giving the displayed states.
Their trace distance is . The phase-compensated projectors attain the binary optimal formula in Theorem thm:qforget. The dephased early input is , giving witness .
Qubit trace distance is half Euclidean Bloch distance. The largest singular value of the Bloch map is , attained by the two opposite -axis states.
sectionAn exact delayed phase-label pilotAn exact delayed phase-label pilot · lines 1980–2018
Open as its own pageThis is a genuine delayed-label experiment, unlike static repetition. It also distinguishes global forgetting from resource-specific phase decay.
A scar sector may be assigned a smaller , or a complete dephasing operation. Such an assignment changes this task under the selected readout; it is an additional model rule, not a consequence of scar cardinality.
For independent preparation success , observation probability , and symmetric assignment error , retain failure and erasure with neutral score . The coherent-versus-dephased score contrast is
Uniform complete-law errors give the retained contrast
The complete-record orientation and sampling conditions are those of Psy02-B CheungPsy02B. A positive contrast certifies sensitivity to the specified phase encoding and detector.
The two phase inputs are orthogonal. A classical memory allowed to store their label can reproduce the binary task. No asymptotic speed, memory, query, or sample advantage is proved. The pilot also does not identify neuronal quantum resources.
Discussion and mathematical release
sectionDiscussion and mathematical releaseDiscussion and mathematical release · lines 2020–2045
Open as its own pageThe recurrent upgrade changes the perturbation interface, not only the network depth. Its ordinary ReLU states remain in a unit cube despite Gaussian input stress. Its biased ReLU states need a different envelope. Gate-aware constants and comparison tubes, rather than density or a gate-block spectral radius alone, determine the available stability certificate.
The probe battery mixes invertible shifts, reduced class separation, increased input uncertainty, altered recurrent perturbations, and coordinate interference. Each has a different task reference. The noiseless blend is especially diagnostic: a larger distractor coefficient can preserve all label information, even when a classifier trained on ordinary quadrants fails.
A legitimate structural-effect claim compares admitted intervention branches at common observation laws. A legitimate population certificate separates controller data from fresh assessment. A legitimate cognitive interpretation requires evidence outside these computation definitions.
theoremTheorem: Psy03-C mathematical releaseDiscussion and mathematical release · Psy03-C@1#thm:release · proof attached · lines 2046–2082
Open as its own pageFor the objects and hypotheses printed here:
the two recurrent source interfaces and parameter counts are specified exactly;
ordinary-ReLU and external-tanh invariants, and the biased-ReLU finite-horizon envelope, hold;
gate-aware cell constants, exact Jacobians, parameter residuals, and temporal perturbation certificates hold;
static repetition preserves task information, while the declared repeated noisy observation has the stated Bayes reference;
Gaussian, invertible-transform, conflicting-rule, and blend task references have the stated values;
battery and intervention-effect certificates hold under their fixed-checkpoint or conditional-freshness hypotheses;
the independently declared quantum sequence has the stated fixed-sector contraction and structural-register boundary;
the delayed phase-label pilot has the exact retention, measurement, and contraction formulas.
Probe performance reflects recurrent dynamics, task information, and distribution shift. None of these alone identifies a cognitive or biological mechanism.
No executed treatment or probe ranking, universal pruning threshold, clinical mania probability, quantum computational advantage, or inherited analytic admission is established.
Proof. The preceding independent results establish the listed conclusions. The counterexamples exclude the proposed universal transfers. The statistical and quantum conclusions retain their declared observation, state-class, and implementation hypotheses.
sectionDiscussion and mathematical releaseDiscussion and mathematical release · lines 2082–2089
Open as its own pageNo scalar Fock limit, Wick-square contact class, gravitational energy, or characteristic-coefficient construction is used. The I3/J2 and downstream admission obligations documented in Psy02-B remain outside this manuscript CheungPsy02B.
Declarations
sectionDeclarationsDeclarations · lines 2090–2123
Open as its own pageand competing interests. No specific funding or competing interests are declared.
. No new human or animal experimentation is reported.
and code availability. The complete supplied
068g_cognitive_impact_v2.pydefines the static audit. The analytic examples require no empirical dataset. The appendix supplies an independently extractable CPU forward/evaluation and structural core, not a complete reproduction of the original sweep pipeline.provenance. Analytic derivations, a static audit, and unexecuted test specifications are supplied. No successful compilation, software regression, numerical reproduction, laboratory realization, or machine-checked proof is asserted. Public references and supplied source records are separately identified.
boundary. The manuscript does not advise selecting, combining, discontinuing, or timing treatments. It does not identify classification error with mania, transformation robustness with a validated cognitive domain, or mask scars with biological lesions.
A source-aligned CPU implementation core
sectionA source-aligned CPU implementation coreA source-aligned CPU implementation core · lines 2125–2146
Open as its own pageThis optional listing implements the two forward interfaces explicitly, preserves device and dtype consistency on CPU, registers structural masks and scars as persistent buffers, and supplies isolated evaluation streams.
It is a proposed replacement interface, not an executed regression. The source's default reset is retained. The actual supplied sequence length determines the number of steps.
The structural methods are exact-count, per-tensor operations. They do not claim equal per-gate allocation. Normal training must call
enforce()after every optimizer step. Weights are stored at zero outside the mask, rather than multiplying an in-forward mask into autograd; ambient inactive derivatives therefore remain available to a separately declared regrowth scorer.listingListing: ListingA source-aligned CPU implementation core · lines 2147–2392
Open as its own pageimport copy import hashlib import math from fractions import Fraction from collections import Counter, defaultdict import torch from torch import nn def finite(value, name): value = float(value) if not math.isfinite(value): raise ValueError(f"{name} must be finite") return value def frac01(value): value = finite(value, "fraction") if not 0 <= value <= 1: raise ValueError("fraction outside [0, 1]") return Fraction(str(value)) def generator(seed, role): # Stable role separation: Python's randomized hash() is not used. message = f"{int(seed)}:{role}".encode("utf-8") digest = hashlib.sha256(message).digest() value = int.from_bytes(digest[:8], "little") % (2**63 - 1) return torch.Generator(device="cpu").manual_seed(value) def noise_streams(seed): return { name: generator(seed, name) for name in ("external_input", "ordinary_input", "biased_hidden") } class CheckedGRUNetwork(nn.Module): def __init__(self, hidden_size=384, seed=0, dtype=torch.float64): super().__init__() if not isinstance(hidden_size, int) or hidden_size <= 0: raise ValueError("positive integer hidden size required") self.hidden_size = hidden_size # Only the CPU default generator is changed inside this context. with torch.random.fork_rng(devices=[]): torch.default_generator.manual_seed(int(seed)) self.gru_cell = nn.GRUCell(2, hidden_size, dtype=dtype) self.fc = nn.Linear(hidden_size, 4, dtype=dtype) for tag, parameter in self.weight_items(): self.register_buffer( "M_" + tag, torch.ones_like(parameter, dtype=torch.bool) ) self.register_buffer( "S_" + tag, torch.zeros_like(parameter, dtype=torch.bool) ) self.a, self.g, self.p = 1.0, 1.0, 0.0 self.activation = "relu" self.decay_rate = 0.0 def weight_items(self): return ( ("ih", self.gru_cell.weight_ih), ("hh", self.gru_cell.weight_hh), ("out", self.fc.weight), ) def effective_gain(self): a = finite(self.a, "a") g = finite(self.g, "g") p = finite(self.p, "p") if not 0 <= a <= 1 or g < 0 or not 0 <= p <= 1: raise ValueError("invalid modulation") return g - p * max(g - 1.05, 0.0) def validate_structure(self): for tag, parameter in self.weight_items(): mask = getattr(self, "M_" + tag) scar = getattr(self, "S_" + tag) if mask.dtype != torch.bool or scar.dtype != torch.bool: raise ValueError("binary boolean structural state required") if mask.shape != parameter.shape or scar.shape != parameter.shape: raise ValueError("structural shape mismatch") if bool((mask & scar).any()): raise ValueError("active coordinate intersects scar") if not bool(torch.isfinite(parameter).all()): raise ValueError("non-finite weight") @torch.no_grad() def enforce(self): self.validate_structure() for tag, parameter in self.weight_items(): parameter.mul_(getattr(self, "M_" + tag).to(parameter.dtype)) @torch.no_grad() def delete_fraction(self, fraction, permanent=False): f = frac01(fraction) self.validate_structure() plans = {} for tag, parameter in self.weight_items(): mask = getattr(self, "M_" + tag) eligible = torch.nonzero(mask.reshape(-1)).flatten() amount = f * len(eligible) k = amount.numerator // amount.denominator values = parameter.detach().reshape(-1)[eligible].abs() order = torch.argsort(values, stable=True) plans[tag] = eligible[order[:k]] for tag, selected in plans.items(): getattr(self, "M_" + tag).view(-1)[selected] = False if permanent: getattr(self, "S_" + tag).view(-1)[selected] = True self.enforce() return {tag: len(selected) for tag, selected in plans.items()} def forward(self, sequence, mode="ordinary", xi=0.0, tau=0.0, sigma=0.0, beta=0.0, streams=None, return_states=False): if sequence.device.type != "cpu": raise ValueError("this repair core is CPU-specific") if sequence.ndim != 3 or sequence.shape[1] < 1 \ or sequence.shape[2] != 2: raise ValueError("expected nonempty [N, T, 2] sequence") if sequence.dtype != self.gru_cell.weight_ih.dtype: raise ValueError("input and model dtypes must agree") if not bool(torch.isfinite(sequence).all()): raise ValueError("non-finite sequence") xi, tau = finite(xi, "xi"), finite(tau, "tau") sigma, beta = finite(sigma, "sigma"), finite(beta, "beta") if min(xi, tau, sigma) < 0: raise ValueError("negative noise intensity") if mode not in ("ordinary", "biased"): raise ValueError("explicit mode required") if mode == "ordinary" and (sigma != 0 or beta != 0): raise ValueError("ordinary mode has no hidden noise or bias") if mode == "biased" and tau != 0: raise ValueError("biased mode has no ordinary input stress") if self.activation not in ("relu", "tanh"): raise ValueError("unsupported external activation") ge = self.effective_gain() phi = torch.relu if self.activation == "relu" else torch.tanh h = sequence.new_zeros((len(sequence), self.hidden_size)) states = [] def draw(reference, role): if streams is None or role not in streams: raise ValueError("missing explicit random stream") return torch.randn( reference.shape, dtype=reference.dtype, generator=streams[role] ) for t in range(sequence.shape[1]): inp = sequence[:, t, :] if xi > 0: inp = inp + xi * draw(inp, "external_input") inp = ge * inp if mode == "ordinary" and tau > 0: inp = inp + tau * draw(inp, "ordinary_input") h = self.gru_cell(inp, h) if mode == "biased": if sigma > 0: h = h + sigma * draw(h, "biased_hidden") h = h + beta * (1.0 - 0.3 * self.p) h = phi(self.a * h - 0.15 * self.p) if return_states: states.append(h) output = self.fc(h) return (output, torch.stack(states, dim=1)) \ if return_states else output def phase_snapshot(model, phase): model.validate_structure() return { "phase": str(phase), "hidden_size": model.hidden_size, "dtype": model.gru_cell.weight_ih.dtype, "state_dict": { key: value.detach().clone() for key, value in model.state_dict().items() }, "controls": { "a": model.a, "g": model.g, "p": model.p, "activation": model.activation, "decay_rate": model.decay_rate, }, "training": model.training, "optimizer_policy": "fresh_optimizer_at_next_training_call", } def restore_phase(saved): model = CheckedGRUNetwork( saved["hidden_size"], seed=0, dtype=saved["dtype"] ) model.load_state_dict(saved["state_dict"]) for key, value in saved["controls"].items(): setattr(model, key, value) model.train(saved["training"]) model.enforce() return model @torch.no_grad() def evaluate_explicit(model, sequence, labels, seed, batch_size=1000, mode="ordinary", xi=0.0, tau=0.0, sigma=0.0, beta=0.0): if len(sequence) == 0 or len(sequence) != len(labels): raise ValueError("nonempty aligned assessment data required") if not isinstance(batch_size, int) or batch_size <= 0: raise ValueError("positive integer batch size required") streams = noise_streams(seed) was_training = model.training correctness = [] try: model.eval() for start in range(0, len(sequence), batch_size): xb = sequence[start:start + batch_size] yb = labels[start:start + batch_size] logits = model( xb, mode=mode, xi=xi, tau=tau, sigma=sigma, beta=beta, streams=streams ) correctness.append((logits.argmax(dim=1) == yb).double()) finally: model.train(was_training) values = torch.cat(correctness) return { "accuracy": float(values.mean()), "correctness": values, "n_examples": len(values), "sequence_length": sequence.shape[1], "mode": mode, "noise": (xi, tau, sigma), "bias": beta, "seed": int(seed), "batch_size": batch_size, } def checked_match(rows, target, tolerance, metric="d_w"): target, tolerance = finite(target, "target"), \ finite(tolerance, "tolerance") if target < 0 or tolerance < 0: raise ValueError("invalid matching controls") eligible = [] for row in rows: value = finite(row["budget"][metric], metric) distance = abs(value - target) if distance <= tolerance: eligible.append((distance, str(row["candidate_id"]), row)) if not eligible: return None return min(eligible, key=lambda x: (x[0], x[1]))[2]sectionA source-aligned CPU implementation coreA source-aligned CPU implementation core · lines 2392–2401
Open as its own pageThis core does not implement a training-convergence guarantee, a full scoring/regrowth pipeline, or a cognitive-construct validation. Its snapshots are phase-boundary snapshots with a declared fresh-optimizer policy. Live optimizer, controller, dataset, and stream state must be saved separately when continuation requires them.
Fresh paired probe designs and delayed cues
sectionFresh paired probe designs and delayed cuesFresh paired probe designs and delayed cues · lines 2403–2414
Open as its own pageThe following generator changes the source's finite distractor-bank sampling to fresh independent distractor centers. That change aligns the ideal blend theorem and makes each row a paired latent example block. It must be labeled as a changed assessment protocol.
Transformations use the source's row-vector rotation convention. The delayed-cue generator supplies a new temporal task; it is not presented as an evaluation already performed in the source.
listingListing: ListingFresh paired probe designs and delayed cues · lines 2415–2528
Open as its own pagedef repeat_point(x, length): if not isinstance(length, int) or length < 1: raise ValueError("positive sequence length required") return x[:, None, :].expand(-1, length, -1) def normal_cdf(x): return 0.5 * (1.0 + math.erf(x / math.sqrt(2.0))) def fresh_paired_probes(n, length, seed, dtype=torch.float64): if not isinstance(n, int) or n < 1: raise ValueError("positive example count required") gen = generator(seed, "fresh_probe_latents") centers = torch.tensor( [[-3., -3.], [3., 3.], [-3., 3.], [3., -3.]], dtype=dtype ) y = torch.randint(0, 4, (n,), generator=gen) distractor_y = torch.randint(0, 4, (n,), generator=gen) clean, distractor = centers[y], centers[distractor_y] z = torch.randn((n, 2), dtype=dtype, generator=gen) angle = math.pi / 4 rotation = torch.tensor( [[math.cos(angle), -math.sin(angle)], [math.sin(angle), math.cos(angle)]], dtype=dtype ) raw = { "clean": clean, "standard": clean + 0.8 * z, "rotation_row_minus_45": clean @ rotation, "scale_1.5": 1.5 * clean, "fine_0.5_noise_0.8": 0.5 * clean + 0.8 * z, "input_noise_2.0": clean + 2.0 * z, } ceilings = { "clean": 1.0, "standard": normal_cdf(3.0 / 0.8)**2, "rotation_row_minus_45": 1.0, "scale_1.5": 1.0, "fine_0.5_noise_0.8": normal_cdf(1.5 / 0.8)**2, "input_noise_2.0": normal_cdf(3.0 / 2.0)**2, } for alpha in (0.25, 0.5, 0.75): key = f"fresh_center_blend_{alpha}" raw[key] = (1.0 - alpha) * clean + alpha * distractor ceilings[key] = 9.0 / 16.0 if alpha == 0.5 else 1.0 return { key: { "sequence": repeat_point(value, length), "labels": y, "task_ceiling_before_extra_corruption": ceilings[key], "mode": "ordinary", "xi": 0.0, "tau": 0.0, "sigma": 0.0, "beta": 0.0, "design": "fresh_iid_latent_rows_shared_across_probes", } for key, value in raw.items() } def delayed_cue(n, length, seed, distractor_std=0.5, dtype=torch.float64): if not isinstance(n, int) or n < 1 or length < 2: raise ValueError("nonempty task and at least two steps required") distractor_std = finite(distractor_std, "distractor_std") if distractor_std < 0: raise ValueError("negative distractor intensity") gen = generator(seed, "delayed_cue") centers = torch.tensor( [[-3., -3.], [3., 3.], [-3., 3.], [3., -3.]], dtype=dtype ) labels = torch.randint(0, 4, (n,), generator=gen) sequence = distractor_std * torch.randn( (n, length, 2), dtype=dtype, generator=gen ) sequence[:, 0, :] = centers[labels] # Subsequent inputs contain no repeated label-bearing cue. return sequence, labels def battery_assessment(checkpoints, probes, seed, delta=0.05): delta = finite(delta, "delta") if not checkpoints or not probes or not 0 < delta < 1: raise ValueError("invalid battery specification") number_of_means = len(checkpoints) * len(probes) result = {} for checkpoint_id, model in checkpoints.items(): result[checkpoint_id] = {} for probe_id, probe in probes.items(): # Same per-probe seed couples draws across checkpoints. probe_seed_gen = generator(seed, "probe:" + probe_id) probe_seed = int(torch.randint( 0, 2**31 - 1, (1,), generator=probe_seed_gen )) row = evaluate_explicit( model, probe["sequence"], probe["labels"], probe_seed, mode=probe["mode"], xi=probe["xi"], tau=probe["tau"], sigma=probe["sigma"], beta=probe["beta"] ) n = row["n_examples"] radius = math.sqrt( math.log(2.0 * number_of_means / delta) / (2.0 * n) ) row["simultaneous_radius"] = radius row["interval"] = ( max(0.0, row["accuracy"] - radius), min(1.0, row["accuracy"] + radius) ) row["checkpoint_stage"] = str(checkpoint_id) row["probe_design"] = probe["design"] row["task_ceiling_before_extra_corruption"] = \ probe.get("task_ceiling_before_extra_corruption") result[checkpoint_id][probe_id] = row return resultsectionFresh paired probe designs and delayed cuesFresh paired probe designs and delayed cues · lines 2528–2542
Open as its own pageThe radius is a mathematical population statement only when the rows are genuinely independent of the fixed checkpoints or conditionally fresh as specified in the main text. Function names and pseudorandom seeds do not prove that hypothesis.
For paired differences, use the saved per-example correctness vectors and the appropriate interval-length radius. For extra input corruption, a tightened ceiling can use Theorem thm:measurementbayes. The stored uncorrupted task ceiling remains only a data-processing upper reference when additional corruption is introduced.
Unexecuted regression specifications
listingListing: ListingUnexecuted regression specifications · lines 2546–2644
Open as its own pagedef ideal_blend_accuracy(alpha): centers = [(-3., -3.), (3., 3.), (-3., 3.), (3., -3.)] groups = defaultdict(Counter) for label, visual in enumerate(centers): for distractor in centers: observation = tuple( (1.0 - alpha) * visual[j] + alpha * distractor[j] for j in range(2) ) groups[observation][label] += 1 return sum(max(counts.values()) for counts in groups.values()) / 16 def proposed_tests(): # These tests are specified, not reported as executed. net = CheckedGRUNetwork(hidden_size=3, seed=7) gen = generator(9, "test_cell") u = torch.randn((4, 2), dtype=torch.float64, generator=gen) h = torch.randn((4, 3), dtype=torch.float64, generator=gen) # Verify the actual reset-gated hidden affine convention. gi = nn.functional.linear( u, net.gru_cell.weight_ih, net.gru_cell.bias_ih ) gh = nn.functional.linear( h, net.gru_cell.weight_hh, net.gru_cell.bias_hh ) ir, iz, inn = gi.chunk(3, dim=1) hr, hz, hn = gh.chunk(3, dim=1) r = torch.sigmoid(ir + hr) update = torch.sigmoid(iz + hz) candidate = torch.tanh(inn + r * hn) manual = (1.0 - update) * candidate + update * h torch.testing.assert_close( manual, net.gru_cell(u, h), rtol=1e-12, atol=1e-12 ) x = torch.zeros((5, 20, 2), dtype=torch.float64) _, states = net( x, mode="ordinary", tau=1e6, streams=noise_streams(11), return_states=True ) assert float(states.min()) >= 0.0 assert float(states.max()) <= 1.0 net.activation = "tanh" _, states = net( x, mode="biased", sigma=1e6, beta=10.0, streams=noise_streams(12), return_states=True ) assert float(states.abs().max()) <= 1.0 # Biased ReLU has no unit-cube invariant, even without Gaussian noise. net.activation, net.a, net.p = "relu", 1.0, 0.0 _, states = net( x, mode="biased", beta=10.0, return_states=True ) assert float(states[:, 0, :].min()) >= 9.0 before = phase_snapshot(net, "before") deleted = net.delete_fraction(0.0, permanent=True) assert all(value == 0 for value in deleted.values()) for key, value in before["state_dict"].items(): assert torch.equal(net.state_dict()[key], value) net.delete_fraction(0.5, permanent=True) saved = phase_snapshot(net, "post_scar") restored = restore_phase(saved) for tag, _ in restored.weight_items(): mask = getattr(restored, "M_" + tag) scar = getattr(restored, "S_" + tag) assert not bool((mask & scar).any()) # Repeated calls reset h_0 and replay named evaluation streams. labels = torch.zeros(5, dtype=torch.long) first = evaluate_explicit( restored, x, labels, seed=20, mode="ordinary", tau=0.5 ) second = evaluate_explicit( restored, x, labels, seed=20, mode="ordinary", tau=0.5 ) assert torch.equal(first["correctness"], second["correctness"]) for alpha, expected in ( (0.0, 1.0), (0.25, 1.0), (0.5, 9.0/16.0), (0.75, 1.0), (1.0, 0.25) ): assert ideal_blend_accuracy(alpha) == expected row = {"candidate_id": "c0", "budget": {"d_w": 0.02}} assert checked_match([row], 0.01, 0.001) is None assert checked_match([row], 0.02, 0.001) is row # Complete deletion preserves permanent-mask admissibility. restored.delete_fraction(1.0, permanent=True) for tag, parameter in restored.weight_items(): assert int(getattr(restored, "M_" + tag).sum()) == 0 assert int(torch.count_nonzero(parameter)) == 0sectionUnexecuted regression specificationsUnexecuted regression specifications · lines 2644–2650
Open as its own pagePassing these tests in a recorded environment would provide implementation evidence for those endpoints. It would not prove optimization convergence, statistical freshness, clinical validity, or a treatment ranking.
Claim-status and debugging ledger
sectionClaim-status and debugging ledgerClaim-status and debugging ledger · lines 2652–2722
Open as its own pageand exact boundaries of the principal claims. Claim Status Boundary Claim Status Boundary The recurrent source is the earlier hidden-noise MLP unrolled Excluded Different input and hidden perturbation interfaces. Ordinary Gaussian stress makes hidden states unbounded False under stated controls External ReLU invariant cube; external tanh range bound. Bounded states prove contraction False A separate gate-aware or tube certificate is required. Zero recurrent matrix removes every carry path False Update-gate interpolation retains the preceding state. Recurrent gate spectral radii certify stability Insufficient Full cell Jacobian includes gates, candidate, and biases. Twenty repeated steps provide twenty independent task samples False One latent point is repeated; extra per-step corruption is separate. Rotation/scaling loss proves cognitive impairment Not established Invertible shift preserves ideal label information. Fine and high-noise tasks have exact reference ceilings Proved ideal laws Equal-prior Cartesian Gaussian centers. Blend implements conflicting voice labels False for this evaluator Voice labels are not read. More distractor weight monotonically destroys information False in the ideal noiseless blend Exact collision-dependent Bayes reference. Lower clean-to-probe drop means better probe performance False generally Report absolute accuracy and checkpoint contrasts separately. Battery confidence follows from recurrent step count False Independent unit is the complete latent example block. Scar correlation establishes scar causation Not established Paired admitted interventions and common probe law required. Three-seed and four-rate iso controls are unused False in this version They are used; matching tolerance remains ignored. Quantum carrier contraction erases different scar distributions Not established Persistent classical labels can retain distinguishability. Delayed phase-label retention is exact Proved finite pilot Specified channels, encoding, inputs, and readout. Phase sensitivity proves quantum advantage Not established No scalable baseline or resource separation. Clinical mechanism or inherited analytic admission Outside scope No biological correspondence or characteristic construction. bibliographyReferencesClaim-status and debugging ledger · lines 2723–2943
Open as its own pageCheungPruning
N. Cheung, Phased pruning in neural networks recapitulates selectivity–fragility trade-offs in brain development. Scientific Reports (2026). Published online 13 July 2026.
https://doi.org/10.1038/s41598-026-62244-5. Computational motivation, not a universal density or biological correspondence theorem.CheungModes
N. Cheung, Divergent mechanisms of antidepressant efficacy: a unified computational comparison of synaptogenesis, stabilization, and tonic inhibition in a model of depression. Cureus 18, no. 3 (2026), e105040. Published 11 March 2026.
https://doi.org/10.7759/cureus.105040. No clinical ranking is imported as a mathematical premise.CheungCliff
N. Cheung, The synaptic pruning cliff: threshold-like network fragility under internal stress and efficient recovery in a computational model of depression. Preprints.org, version 1, posted 13 January 2026. Not peer reviewed.
https://doi.org/10.20944/preprints202601.0805.v1.CheungOCD
N. Cheung, Structural synaptogenesis superior to functional modulation in a pruning-based recurrent network model of OCD. Frontiers in Computational Neuroscience 20 (2026), 1799705. Published 20 July 2026.
https://doi.org/10.3389/fncom.2026.1799705. A separate computational task and model; not validation of the present probe battery or a clinical treatment hierarchy.Cheung068G
N. Cheung, 068g_cognitive_impact_v2.py. Complete version-2 source supplied for this analysis, undated. Its header identifies the exported notebook
068G_Cognitive_Impact_v2.ipynb. The supplied snapshot defines the static audit. No executed reproduction or artifact checksum is asserted.CheungPsy01A
N. Cheung, Psy01-A: Phased magnitude pruning in task-gated ReLU networks: cue certificates, stability, and conditional selectivity–fragility trade-offs. Undated manuscript,
Psy01-A.tex, supplied in full. Relevant records includethm:cueobstruction,thm:globalstress,thm:parameterstability,thm:accuracystability, andprop:harddiscontinuity. Its architecture and perturbation interface are not identified with the present GRU.CheungPsy02A
N. Cheung, Psy02-A: Conditional scalar-carrier bounds and operational separation: a mathematical framework for evaluating Orch-OR hypotheses. Undated manuscript,
Psy02-A.tex, supplied in full. Relevant records concern dephasing, instruments, complete-record identification, and interpretive boundaries. Its scalar and reduction models are not imported here.CheungPsy02B
N. Cheung, Psy02-B: Quantitative viability and identifiability of a branch-matched reduction pilot: complete records, collective mass energies, and a self-contained interface to the inherited analytic problem. Undated manuscript,
Psy02-B-v2.tex, version 2, supplied in full. Relevant records:thm:process,thm:overlap,prop:dynamic, andthm:sampling. Its analytic I3/J2 and admission obligations remain outside this paper.CheungPsy03A
N. Cheung, Psy03-A: Structural repair, noise adaptation, and dynamical modulation in pruned networks: intervention budgets, classical certificates, and a separately defined quantum extension. Undated manuscript,
Psy03-A.tex, supplied in full. Relevant records:cor:stress,thm:ranking,thm:evaluation,prop:rng,thm:classicalboundary,prop:dynamic, andprop:nontransfer.CheungPsy03B
N. Cheung, Psy03-B: Irreversible structural memory and threshold-triggered feedback in pruned networks: longitudinal certificates and a quantum–classical extension. Undated manuscript,
Psy03-B-v1.tex, version 1, supplied in full. Relevant records:cor:capacity,prop:reset,thm:conditional,prop:fixeddesign,thm:paired, andthm:operationalmemory. Its feed-forward perturbation equation is not the present recurrent interface.PyTorchGRU
PyTorch Contributors, GRUCell. Official PyTorch main documentation.
https://docs.pytorch.org/docs/main/generated/torch.nn.modules.rnn.GRUCell.html. Cited for the reset-gated hidden affine convention, tensor dimensions, and GRU cell interface. The implementation version must be recorded in an executed reproduction.Hoeffding
W. Hoeffding, Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association 58, no. 301 (1963), 13–30.
https://doi.org/10.1080/01621459.1963.10500830. Conditional applications fix the relevant history and preserve the stated boundedness and independence hypotheses.FujiiNakajima
K. Fujii and K. Nakajima, Harnessing disordered-ensemble quantum dynamics for machine learning. Physical Review Applied 8 (2017), 024030.
https://doi.org/10.1103/PhysRevApplied.8.024030. Earlier author manuscript: Harnessing disordered quantum dynamics for machine learning, arXiv:1602.08159v2 (2016).https://arxiv.org/abs/1602.08159v2. Cited as a quantum-reservoir precedent, not as an advantage theorem for the present pilot.Whitfield
J. D. Whitfield, C. A. Rodríguez-Rosario, and A. Aspuru-Guzik, Quantum stochastic walks: a generalization of classical random walks and quantum walks. Physical Review A 81 (2010), 022323.
https://doi.org/10.1103/PhysRevA.81.022323.https://arxiv.org/abs/0905.2942. The journal author order is used.PollockMarkov
F. A. Pollock, C. Rodríguez-Rosario, T. Frauenheim, M. Paternostro, and K. Modi, Operational Markov condition for quantum processes. Physical Review Letters 120 (2018), 040405.
https://doi.org/10.1103/PhysRevLett.120.040405.https://arxiv.org/abs/1801.09811. Operational history dependence is not automatically a quantum-memory resource.PollockProcess
F. A. Pollock, C. Rodríguez-Rosario, T. Frauenheim, M. Paternostro, and K. Modi, Non-Markovian quantum processes: complete framework and efficient characterization. Physical Review A 97 (2018), 012127.
https://doi.org/10.1103/PhysRevA.97.012127.https://arxiv.org/abs/1512.00589.GKS
V. Gorini, A. Kossakowski, and E. C. G. Sudarshan, Completely positive dynamical semigroups of -level systems. Journal of Mathematical Physics 17 (1976), 821–825.
https://doi.org/10.1063/1.522979.Lindblad
G. Lindblad, On the generators of quantum dynamical semigroups. Communications in Mathematical Physics 48 (1976), 119–130.
https://doi.org/10.1007/BF01608499.Watrous
J. Watrous, The Theory of Quantum Information. Cambridge University Press, 2018. Author's manuscript:
https://cs.uwaterloo.ca/ watrous/TQI/. Cited for finite channels, measurements, trace distance, state discrimination, and reference-stable channel norms.PyTorchRandom
PyTorch Contributors, Reproducibility. Official PyTorch documentation.
https://docs.pytorch.org/docs/main/notes/randomness.html. Environment- and version-specific software guidance, not a proof of statistical independence or biological validity.