API Reference
Core Types
SelfConsistentLogisticNoise.QuadraticMap — Type
QuadraticMap(a)Quadratic map T_a(x) = a - (a+1)x^2 on the period-2 torus [-1,1].
SelfConsistentLogisticNoise.GaussianNoise — Type
GaussianNoise(σ)Periodized Gaussian noise kernel on the period-2 torus with standard deviation σ. Fourier coefficients: ρ̂_σ(k) = exp(-(π²/2)σ²k²)
SelfConsistentLogisticNoise.FourierDisc — Type
FourierDisc(N, M)Fourier discretization parameters.
- N: truncation level (modes from -N to N, total 2N+1 coefficients)
- M: FFT oversampling grid size (typically M = os * (2N+1) with os = 8 or 16)
SelfConsistentLogisticNoise.SCProblem — Type
SCProblemSelf-consistent problem specification containing all parameters and the precomputed B matrix.
Observables and Coupling
SelfConsistentLogisticNoise.CosineObservable — Type
CosineObservable()Default observable Φ(x) = cos(πx). Fourier coefficients: Φ̂₁ = Φ̂₋₁ = 1/2, others = 0.
For this observable: m(f) = Re(f̂₁)
SelfConsistentLogisticNoise.LinearCoupling — Type
LinearCoupling(δ, observable)Linear coupling: G(m) = m, so c(f) = δ * m(f).
SelfConsistentLogisticNoise.TanhCoupling — Type
TanhCoupling(δ, β, observable)Saturating coupling: G(m) = tanh(β*m), so c(f) = δ * tanh(β * m(f)).
Problem Construction
SelfConsistentLogisticNoise.build_problem — Function
build_problem(; a=0.915, σ=0.02, N=256, δ=0.0, coupling_type=:linear,
β=1.0, oversample=8, η=0.1, σ_sm=0.005,
taper=true, M_override=nothing, cache=true)Convenience function to build a complete SCProblem.
SelfConsistentLogisticNoise.build_B — Function
build_B(map::QuadraticMap, disc::FourierDisc; cache=true, cache_dir=".cache",
η=0.1, σ_sm=0.005, taper=true)Build the matrix Ba where: (Ba){k,ℓ} = (1/2)∫{-1}^{1} e^{-iπk T_a(y)} e^{iπℓy} dy
Uses FFT trick: for each k, compute Fourier coefficients of gk(y) = e^{-iπk Ta(y)}. When taper=true, uses the tapered + smoothed map T̃_a. by sampling on a fine grid and taking FFT.
If cache=true, attempts to load from / save to disk.
Solver
SelfConsistentLogisticNoise.solve_fixed_point — Function
solve_fixed_point(prob::SCProblem; kwargs...)Solve for fixed point f* such that 𝒯(f) = f using damped Picard iteration.
Keyword Arguments
α=0.2: damping parameter (0 < α ≤ 1). Smaller values give more stability.tol=1e-12: convergence tolerance for relative residual.maxit=5000: maximum number of iterations.init=:uniform: initial condition (:uniform, :bump, :random, or a Vector{ComplexF64})verbose=false: print progress information.enforce_symmetry=true: enforce conjugate symmetry at each step.
Returns
FixedPointResultcontaining converged solution and diagnostics.
SelfConsistentLogisticNoise.FixedPointResult — Type
FixedPointResultResult of a fixed-point computation.
Operator Application
SelfConsistentLogisticNoise.apply_Pc — Function
apply_Pc(prob::SCProblem, fhat::Vector{ComplexF64}, c::Float64)Apply the noisy transfer operator with shift c: (Pc f)̂k = ρ̂σ(k) * e^{-iπkc} * (Ba f̂)_k
where ρ̂_σ(k) = exp(-(π²/2)σ²k²) is the Gaussian kernel.
SelfConsistentLogisticNoise.reconstruct_density — Function
reconstruct_density(fhat::Vector{ComplexF64}, xgrid::AbstractVector)Reconstruct density f(x) from Fourier coefficients on the given grid.
reconstruct_density(fhat::Vector{ComplexF64}; npts=1000)Reconstruct density on a uniform grid with npts points.
Parameter Sweeps
SelfConsistentLogisticNoise.sweep_delta — Function
sweep_delta(prob::SCProblem, δ_range; warm_start=true, kwargs...)Sweep over δ values, optionally using warm-start continuation.
Returns a DataFrame with columns: δ, m, c, residual, iterations, converged
SelfConsistentLogisticNoise.sweep_delta_a — Function
sweep_delta_a(; a_range, δ_range, σ=0.02, N=256, kwargs...)Sweep over both a and δ values.
Returns a DataFrame with columns: a, δ, m, c, residual, iterations, converged
SelfConsistentLogisticNoise.multistart_solve — Function
multistart_solve(prob::SCProblem; n_starts=5, kwargs...)Run solver from multiple initial conditions to detect multiple fixed points.
Returns a vector of FixedPointResults, clustered by uniqueness.
Rigorous Verification
SelfConsistentLogisticNoise.verify_fixed_point — Function
verify_fixed_point(prob, fhat; τ=0.01, verbose=false)Attempt to rigorously verify that fhat is close to a true fixed point. Uses BallArithmetic for certified bounds on singular values.
Returns a RigorousResult with verification status and all computed constants.
SelfConsistentLogisticNoise.RigorousResult — Type
RigorousResultResult of rigorous verification.
SelfConsistentLogisticNoise.GaussianConstants — Type
GaussianConstantsContainer for the Gaussian smoothing constants S{τ,σ}, S^(1){τ,σ}, S^(2)_{τ,σ}.
SelfConsistentLogisticNoise.compute_gaussian_constants — Function
compute_gaussian_constants(σ, τ)Compute the Gaussian smoothing constants for given σ and τ. Uses rigorous interval arithmetic to ensure correct upper bounds.
SelfConsistentLogisticNoise.compute_jacobian_matrix — Function
compute_jacobian_matrix(prob::SCProblem, fhat::Vector{ComplexF64})Compute the Jacobian DT_N(f) = A(c) + b ⊗ a* at the candidate f̂. Returns the full matrix representation.
I/O
SelfConsistentLogisticNoise.save_result — Function
save_result(filename::String, result::FixedPointResult)Save a FixedPointResult to a JLD2 file.
SelfConsistentLogisticNoise.load_result — Function
load_result(filename::String)Load a FixedPointResult from a JLD2 file.
Indexing Utilities
SelfConsistentLogisticNoise.modes — Function
modes(N)Return the range of Fourier modes: -N:N
SelfConsistentLogisticNoise.idx — Function
idx(k, N)Convert Fourier mode k ∈ {-N,...,N} to 1-based array index. Mode k maps to index k + N + 1.
SelfConsistentLogisticNoise.mode — Function
mode(i, N)Convert 1-based array index i to Fourier mode k. Index i maps to mode i - (N+1).