Source identity
| Field | Recorded value |
|---|---|
| Source type | Pinned project source |
| Original record | Go mathematical helpers |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 |
| Branch | claude/improve-math-logic-ehIW1 |
| Path or archive member | generator_core/pkg/consciousness/equations.go |
| Original SHA-256 | f7c6aec8c4a310852083db9f9c76c125dfc666cf7e0ff64459376f27df6e8123 |
| Reading-copy SHA-256 | f7c6aec8c4a310852083db9f9c76c125dfc666cf7e0ff64459376f27df6e8123 |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Go mathematical helpers | claude/improve-math-logic-ehIW1 | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 | Open original |
| Janady13/complete-agi-core / generator_core/pkg/consciousness/equations.go | claude/improve-math-logic-ehIW1 | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 | Open original |
Recovered source transcript
Mathematical records from this source
Positive-definite golden-scaled metric
The matrix is I+φxxᵀ. For any nonzero vector v, vᵀgv=||v||²+φ(x·v)²>0, so it is positive definite for real finite x. It stretches lengths more strongly along x while leaving…
Levi-Civita connection formula and the implemented substitute
The displayed expression is the standard coordinate formula combining the inverse metric and first metric derivatives, summed over l. For this file’s metric g=I+φxxᵀ, direct…
Simplified connection surrogate
The comment proposes φδₖᵢxⱼ+φδₖⱼxᵢ, and the body multiplies that sum by 0.5. This index-dependent linear expression differs from the actual Levi-Civita connection of the declared…
Riemann curvature expression versus an index-only return value
The reference expression combines derivatives and products of connection coefficients to measure curvature. The body does not perform those operations: it returns…
Scalar-curvature label and dimension-only score
The reference contraction R=gⁱʲRᵢⱼ would require an inverse metric and a Ricci tensor. The implementation instead returns −φn(n−1)/(2n²) for nonempty input, a constant determined…
Scalar-curvature label and dimension-only score
The reference contraction R=gⁱʲRᵢⱼ would require an inverse metric and a Ricci tensor. The implementation instead returns −φn(n−1)/(2n²) for nonempty input, a constant determined…
Shannon entropy with truncated small probabilities
The mathematical entropy sums −p log p over a normalized nonnegative distribution, with a zero contribution at p=0. The function uses log₂, so its output is in bits, but skips…
KL divergence and its missing support case
For normalized distributions, the sum p log(p/q) measures relative entropy in nats with the file’s natural logarithm. A term with positive p and zero q should make the divergence…
Mutual information from consistent marginals and a joint distribution
The identity subtracts joint entropy from the sum of the two marginal entropies. It measures statistical dependence when pxy is a normalized joint distribution with px and py as…
Mean squared likelihood score as Fisher-information estimate
For a scalar parameter, Fisher information is the expected square of the derivative of log likelihood. The implementation averages squares of the supplied scores. It estimates…
Gaussian increment with variance proportional to time
Multiplying a standard normal draw by √dt gives a zero-mean Gaussian increment of variance dt. This is the increment distribution used in Wiener-driven discretizations. The…
Euler–Maruyama step for a drift-diffusion process
The helper returns x+μdt+σdW, adding deterministic drift and a scaled stochastic increment. It is one discrete approximation step to the displayed Itô stochastic differential…
Euler step for mean reversion with noise
The deterministic term moves x toward μ at rate θ, and σdW adds noise. The code returns a forward Euler–Maruyama step rather than the exact finite-time Ornstein–Uhlenbeck…
Euler approximation to geometric Brownian motion
The implementation multiplies s by 1+μdt+σdW. This approximates the proportional drift-diffusion equation for a small step, but the multiplier can be negative. The exact geometric…
Finite-difference Fokker–Planck update
The PDE transports probability with drift and spreads it with diffusion. The code applies centered first and second differences on an equally spaced grid, then one explicit time…
One-dimensional transport distance from cumulative sums
For probability distributions on a line, Wasserstein-1 distance is the integral of the absolute difference of their cumulative distributions. The function normalizes its input…
Sinkhorn Gibbs kernel
Exponentiating −Cᵢⱼ/ε turns each transport cost into a positive kernel weight, with smaller costs receiving larger weights. The following alternating row and column scalings seek…
Euler flow under a supplied beta function
The displayed ODE defines a vector flow whose derivative is β(g). The implementation advances it with g_next=g+dtβ(g). Calling the helper renormalization-group flow is a modeling…
Quadratic coupling beta function
Each component loses φgᵢ² and receives γ times the total squared coupling magnitude. Summing across components gives (nγ−φ)Σgⱼ², which shows how dimension affects the total drift.…
Scaled dot-product attention
Query-key dot products are divided by √dₖ, row-wise softmax converts them into weights that sum to one, and those weights average the value vectors. The code implements these…
Scaled dot-product attention
Query-key dot products are divided by √dₖ, row-wise softmax converts them into weights that sum to one, and those weights average the value vectors. The code implements these…
Scaled dot-product attention
Query-key dot products are divided by √dₖ, row-wise softmax converts them into weights that sum to one, and those weights average the value vectors. The code implements these…
Scaled dot-product attention
Query-key dot products are divided by √dₖ, row-wise softmax converts them into weights that sum to one, and those weights average the value vectors. The code implements these…
Scaled dot-product attention
Query-key dot products are divided by √dₖ, row-wise softmax converts them into weights that sum to one, and those weights average the value vectors. The code implements these…
Layer normalization with scalar gain and offset
The implementation subtracts the vector’s mean, divides by √(population variance+EPSILON_PHI), then applies scalar gain γ and offset β. This controls the scale of a feature vector…
Gaussian error linear unit
GELU multiplies x by the standard normal cumulative probability at x. The function implements it with erf, giving a smooth activation that attenuates many negative values and…
SwiGLU applied to precomputed gate and linear vectors
The displayed full expression describes two affine projections, one passed through Swish, followed by elementwise multiplication. This function accepts already computed gate and…
Forward diffusion sample construction
The helper forms √ᾱ times the clean vector plus √(1−ᾱ) times a noise vector. With independent standard Gaussian noise and 0≤ᾱ≤1, this samples the usual forward Gaussian…
Project reverse-diffusion helper
The code subtracts √(1−α) times its predicted noise, divides by √α, and adds σ times fresh noise. It requires 0<α≤1. Under the usual DDPM noise-prediction convention, the reverse…