Lean 4 formalizations of security reductions used by lattice-based fully homomorphic encryption. The repository currently contains decisional LWE and finite negacyclic RLWE interfaces, executable centered-binomial RLWE errors, concrete Regev and ring-Regev one-time IND-CPA reductions, the block-binary secret reduction of ePrint 2023/958, the shared-randomness LWE hardness reduction of ePrint 2023/979, and a checked embedding of shared-randomness LWE into a generalized heterogeneous two-subspace game. It also contains the adaptive affine-projection oracle and rank-loss accounting needed for the broader Subspace-LWE hardness theorem. The TFHE layer formalizes finite-modulus native TLWE and structured TRGSW ciphertexts, key extraction, concrete cloud-key samplers, their circular dependency cycle, and an adaptive one-time encryption theorem together with a fixed-batch, query-counted extension. It also includes a query-bounded sequential encryption-oracle theorem in which later message pairs may depend on earlier ciphertexts, plus an asymptotic negligible-advantage theorem for families carrying explicit polynomial query bounds and a finite centered-binomial instantiation with executable base gadgets. All direct-TLWE key-switch and challenge obligations reduce to shared-secret binary LWE. Native TRGSW sampling is proved exactly equivalent to direct gadget-phase module-LWE rows, exposing the remaining circular premise as bilinear cross-key KDM security rather than an unspecified ciphertext-format assumption. A separate cut-cycle theorem proves that once the opposite KSK edge is zero, native BRK replacement follows from ordinary parallel binary-secret module-LWE; the unresolved premise is therefore confined to the first hop while the two-way cycle is intact. The optimized shared-randomness IKSK is proved to introduce no security assumption beyond the conventional full-size IKSK between independent keys.
Initialize the pinned proof-framework dependency and build the Singularity image:
git submodule update --init vendor/VCVio
scripts/container-build
scripts/checkThe generated build/formalproof4fhe.sif is intentionally not tracked. Lean, Lake, and all proof
checks run inside the container; no host Lean installation is required.
-
FormalProof4FHE.RLWE.quotientOf_bijectiveandquotientOf_mulconnect the executable negacyclic carrierZMod q[X]/(X^N+1)to its semantic polynomial quotient.FormalProof4FHE.RLWE.PowerOfTwoCyclotomic.cyclotomic_two_pow_succ_eqprovesΦ_(2N) = X^N + 1forN = 2^k;executableToCyclotomic_bijectiveandexecutableToCyclotomic_multhen identify the executable carrier bijectively and multiplicatively with that exact cyclotomic quotient. The companion game module transports arbitrary source secret and error laws through this equivalence, proves equality of the complete real and uniform transcript distributions, and preserves every distinguishing advantage in both directions. Its two hardness-transfer theorems therefore lose nothing at this representation boundary.uniformSecretProblem_eq_moduleProblem_oneanduniformAdvantage_eq_moduleRankOneprove that finite uniform-secret decisional RLWE is exactly rank-one module-LWE, with no loss in advantage. This is the average-case assumption interface, not the LPR worst-case ideal-lattice reduction; seedocs/RLWE.mdfor the boundary and roadmap. -
FormalProof4FHE.RLWE.CenteredBinomial.coeffBounded_of_mem_supportandprobOutput_negcheck an executable centered-binomial polynomial sampler: every coefficient has a representative in[-eta, eta], and swapping its bit pairs proves exact negation symmetry. -
FormalProof4FHE.RLWE.RingRegev.oneTime_abs_signedAdvantage_le_rlwe_add_leftoverproves rank-one ring-Regev one-time IND-CPA from the existing uniform-secret RLWE game, with the explicit finite masking termsqrt(q^(2N) / 2^m) / 2. The corresponding hardness-transfer theorem and centered-binomial specialization are checked as well. This is base-encryption security; it does not by itself cover homomorphic evaluation keys, relinearization, or circular security. -
FormalProof4FHE.RLWE.LeakyCircular.kdmAdvantage_le_two_fullLeaky_probCompchecks the candidate error-only Leaky-RLWE reduction for one unscaled two-component square ciphertext. The target laws areS=e₂+ρ₂andE=e₃-e₀(e₁+ρ₁)with independent sampler blocks. Both square/uniform and zero/uniform hops are exact reductions from the complete four-sample leakage view, including explicit uniform-branch bijections; their sum bounds square/zero KDM advantage. The leakage matrix has checked Gram bound3, and the product-noise and weighted-error identities are also formalized.FormalProof4FHE.LWE.Leaky.advantage_le_lwe_add_paperLossnow checks the complete finite-game reduction from the paper's statistical simulator certificate to ordinary LWE, with exact loss4ε/(1-ε); its Condition-2 specialization permits an arbitrary identical secret law and error-only leakage. The multivariate discrete-Gaussian theorem producing that certificate remains analytic input, and gadget-weighted relinearization with weight-independent errors is not solved; seedocs/RLWE.md. -
FormalProof4FHE.RLWE.IntervalMaskedQuadratic.binary_kdmAdvantage_leandternary_kdmAdvantage_leprove the interval-mask completion of unscaled quadratic KDM security. For an independent coefficient maskZ ∈ {0,…,M-1}^N, the checked public mapA=C-2H,B=Y-H²withH=S-Zsends hinted RLWE exactly to(A, AS+S²+E-Z²)and sends its random branch exactly to uniform. A one-sample ordinary short-secret RLWE reduction handles(A,AS+E-Z²), while the cancellation-free two-copy reduction has losssqrt(2 ((M+1)/M)^N Adv)for binary coefficients and the sharpersqrt(2 ((M+2)/M)^N Adv)for ternary coefficients. The public interval code and its injectivity, both affine game identities, the squared-bias probability identity, and the concrete cardinality factors are all checked. The conclusion deliberately uses the modified error lawE−Z²; it does not claim gadget-weightedgS²security with narrow weight-independent noise. -
FormalProof4FHE.RLWE.QuadraticKDM.kdmAdvantage_le_search_add_loss_add_zeroformalizes the conditional fixed-gadget theorem fromrlwe_quadratic_kdm_security.tex. For arbitrary public weights satisfyingsum_r α_jr β_jr = g_j, the checked compiler sends the corrected correlated HNF source view exactly to(A_j, A_j S + g_j S² + H_j)and sends its random branch exactly to joint uniform through an explicit inverse. The one-coordinate split-field correct/wrong candidate laws, joint public-key extension, relinearization phase, latent reconstruction, source-error size bound, and projected discriminant identity are checked as well. The final theorem deliberately requires aSplitSearchToDecisionCertificate, its correlated-HNF search bound, and a zero-message RLWE bound; the BJTW general-distribution search theorem and its boundedness, entropy, sample-count, automorphism, and lattice inequalities are not asserted as consequences of ordinary decisional RLWE. -
FormalProof4FHE.RLWE.QuadraticKDMBinaryTernary.binary_kdmAdvantage_le_search_add_loss_add_zeroandternary_kdmAdvantage_le_search_add_loss_add_zeroformalize the centered-mask extension inrlwe_quadratic_kdm_binary_ternary_extension.tex. The finite hint fibers are shown surjective with a unique mask for each(hint,secret), giving exact residual entropyN log₂(dM/(M+d−1)). The masked source compiler sendsb₀=X−S,dⱼ=cⱼX+gⱼZ²+Eⱼexactly to(Aⱼ,AⱼS+gⱼS²+Eⱼ)and its random branch exactly to uniform. Centered ternary and mask signed actions, the binary affine complements ↦ −s+1, real/random affine source symmetry, the conditioned source-error bijection, thegⱼ-dependent source norm bound, and the direct weighted identity with residual errorW−gⱼZ²are checked. The two concrete security theorems remain deliberately conditional on a checked split search-to-decision certificate, correlated HNF-RLWE search hardness, and exact binary/ternary zero-message RLWE; they do not silently instantiate the external general-distribution search theorem. -
FormalProof4FHE.RLWE.RNSSplitSearchToDecisionCorrelated.rns_quadraticKDMAdvantage_le_search_add_loss_add_zeroformalizesrns_split_search_to_decision_correlated.texover the genuine heterogeneous product(i : Limb) -> Slot -> K_i. The wrong-candidate permutation is lifted through an arbitrary coherent error/leakage state sampler, the non-target secret shift retains that state, and a liftable common HNF anchor upgrades one recovered limb to the complete secret. Binary and centered-ternary coefficient anchors are proved limbwise liftable forq_i>2through explicit per-limb NTT equivalences. The limb-majors*Nhybrid endpoints, one-coordinate adjacency,epsilon/(s*N)gap, diagonal automorphism action, binary affine-complement action, exact narrow-error quadratic compiler, random affine permutation, and KDM/source game correspondence are checked. The final finite advantage theorem keeps acceptance estimation, amplification, anchor-failure, and oracle-cost accounting in an explicitSearchToDecisionCertificate; the library does not claim its unmodeled asymptotic runtime formula as an executable Lean cost theorem. -
FormalProof4FHE.RLWE.RankOneHNFLossinessRLWENTRU.realUniformHNFRecovery_le_coefficientAdvantage_add_averageLossinessformalizes the rank-one lossiness reduction fromsketch/rank_one_hnf_lossiness_rlwe_ntru.tex. The mapb₀=X-S, dⱼ=aⱼX+Eⱼ ↦ (b₀,aⱼ,dⱼ-aⱼb₀)is an explicit bijection and sends the original game exactly to an independent uniform anchor plusaⱼS+Eⱼ. Conditional guessing probability is operationally defined as the supremum over every finite estimator, yielding the exact boundPr[recover] ≤ Adv_coeff + P_guess. The module proves the common masked-ratio identity, the DSPR/statistical-ratio plus Hermite-RLWE hybrid, direct joint-NTRU, RLWE-only wide-ratio, coherent-RNS, rerandomization, and quadratic product-cancellation compositions. Gaussian smoothing, singular-value tails, joint-ratio/DSPR hardness, Hermite RLWE, and Stehlé--Steinfeld ratio uniformity are explicit certificate premises; they are not introduced as Lean axioms. In particular, the final product-cancellation theorem still requires the actual jointP_guessbound forsum F⋅G+Hconditioned on all public leakage. -
FormalProof4FHE.RLWE.RankOneHNFLossinessRefined.contextualSupportAwareGuessingBoundformalizes the refinements insketch/rank_one_hnf_lossiness_refined.tex. It proves the exact complete-leakage cancellation(a,Y) ↦ (a-K,Y-P), invariance of operational guessing under that public bijection, and exact advantage preservation for the leakage-dependent translationa=K(Λ)+aTilde. For finite alphabets it provesP_guess(S|Y)=sum_y max_s Pr[(s,y)], derives contextual and additive-channel maximal-leakage bounds, integrates descriptor-dependent bounds, and composes conditional leakage over RNS limbs whose law may depend on the complete preceding history. The Fano algebra and covariance residual identity are native. Differential-entropy maximization, continuous/discrete Gaussian existence, smoothing, and subgaussian concentration are retained as typed certificates rather than axioms. -
FormalProof4FHE.RLWE.RankOneHNFLossinessSupportAware.weightedSpanningTreeGuessingBoundformalizessketch/rank_one_hnf_lossiness_support_aware.tex. For an actual finite secret-support tree it provesP_guess <= pi(root) + sum_edges ||pi(u)P_u-pi(v)P_v||_1, proves the sharp weighted-TV edge estimate, and derives the uniform1/M + 2(1-1/M)deltacorollary. Descriptor averaging, finite interval cells, randomized data processing, full-ternary and exact-weight support cardinalities, and the quadratic local-edge factorization are native. The complete coherent CRT/RNS channel samples one shared error, has an exact center-lift/consistency likelihood and maximal-leakage expansion, and is invariant under CRT recombination. The IID and fixed-weight tensor pushforwards to the stated square covariance are checked by matrix algebra. Continuous-Gaussian TV/log-determinant entropy, concrete negacyclic tensor/moment construction, and Bernstein row-energy tails remain ordinary proof-carrying certificate inputs, not axioms. -
FormalProof4FHE.RLWE.RankOneHNFLossinessRenyi.conditionalRenyiProductGuessingBoundformalizessketch/spanningtree.mdand replaces the additive tree estimate by the exact finite conditional Renyi product theorem. It proves the prior-sensitiveL^alphaguessing bound and exact tensorization across independent evaluation-key rows, with each coherent CRT/RNS row kept as one joint output. Row-energy and min-entropy reduction, centered-MGF arithmetic, the explicit exponential margin and its displayedrchoice, fixed-weight conditioning loss, descriptor averaging/bad-set splitting, finite coordinate oscillations, and quadratic codebook update and sensitivity identities are native. The equal-covariance Gaussian integral, Hoeffding/Doob MGF step, product-Laplace density integral, and infinite-lattice theta estimate are isolated as proof-carrying certificates; their use through the ternary and discrete-Gaussian endpoint theorems is checked without new axioms. -
FormalProof4FHE.RLWE.RankOneHNFLossinessMixtureRenyi.conditionalGaussianMixtureClusterGuessingBoundformalizessketch/mahalanobisimprove.mdand removes the artificial absolute-Mahalanobis-energy cost of a single zero-centred reference. Lean proves the arbitrary-reference theorem, the exact optimized Renyi centre, its finite variational optimality, the expected posterior-norm and posterior-collision formulas, and the fact that the actual-marginal objective is at most one. Weighted log-sum-exp then gives the local-cloud exponent(alpha-1)D + (alpha-1)A/2 + (alpha-1)^2*‖dbar‖^2/2; uniform-support cancellation, the displayed exponential lossiness criterion, posterior-neighborhood mass, descriptor/leakage averaging, normalized discrete-Gaussian weights, and the quadratic codeword-difference factorization are native. The equal-covariance density-ratio integral and standard-Gaussian linear MGF are the two explicit fields ofEqualCovarianceGaussianMixtureCertificate, not hidden axioms. The optimized finite theorem itself also applies directly to wrapped, modular, and coherent-RNS channels. -
FormalProof4FHE.RLWE.RankOneHNFLossinessGaussianCluster.conditionalGaussianMixtureEffectiveOverlapBadSetBoundformalizessketch/gaussiancluster.md. Lean constructs the soft-overlap Gibbs law, proves its exact entropy--energy decomposition, and proves the barycenter-aware primal--dual gap. A proof-carrying Gibbs fixed point certifies strong duality and optimizer quality. Full and restricted local clouds, the floored effective-codebook bound, exponential bad-set theorem, arbitrary finite non-Gaussian likelihood-ratio inequality, and tail-truncation/data-processing theorem are native. The quadratic product-cancellation difference and complete embedded row energy are factored exactly. Continuous equal-covariance Gaussian integration remains the explicit inherited certificate boundary; existence or numerical discovery of a fixed point is not assumed as an axiom. -
FormalProof4FHE.RLWE.RankOneHNFLossinessSparseRank.primitiveDifferenceRank_dyadic_lower_boundandexact_encodedPrimitiveRank_count_eq_syndrome_count_sub_succformalize the symbolic sparse-rank refinements for binary repeated-root negacyclic rings. Lean proves the Hasse-syndrome characterization of(X-1)-adic valuation, the exact repeated-root minimum distance2^(d-log2 r), and the resulting dyadic lower bound on every distinct fixed-weight ternary primitive difference. It also decodes the existing support-and-sign secret representation, proves its exact cardinality, classifies exceptional low-rank pairs by adjacent syndrome counts, and derives exact rank-enumerator, coarse minimum-rank, Markov, and finite union bounds. The odd-determinant lifting theorem proves that any certified nonzero binary minor gives uniformly distributed production coordinates even after a fixed quadratic translation. Selecting such a minor for the concrete implementation channel and supplying its one-coordinate Gaussian/theta or bounded-support estimate remain explicit premises, not axioms. -
FormalProof4FHE.RLWE.RankOneHNFLossinessSparseRankChannel.card_primitiveDifference_binaryQuotient_rangeconnects that symbolic rank to literal multiplication inF₂[X]/(X^(2^d)+1): the primitive ternary difference has image cardinality exactly2^primitiveDifferenceRank, hence an abstract equivalence with that many independent binary coordinates. A production minor certificate lifts any concrete nonsingular binary minor and proves affine uniformity after the factored quadratic shift. The module also gives a VM-executable finite(two-adic exponent, Hasse rank)histogram, proves its Boolean coefficient scanner equal to the mathematical Hasse valuation, expresses every cell as adjacent branch-restricted syndrome counts, and aggregates exponent-dependenttheta_e^rfactors. For bounded noise it proves the local factor itself by finite coordinate-box counting. Finally, it proves that a wrong candidate is exactly uniform on its principal ideal, computes the missing cokernel as2^valuation, proves that positive valuation prevents promotion to full-ring uniformity by deterministic reindexing, and shows precisely how an independent cokernel coordinate would complete it. Finding a public, hidden-difference-independent completion (or padding construction) remains a reduction-design obligation, not an axiom. -
FormalProof4FHE.RLWE.RankOneHNFLossinessTwoSmith.card_quotientPowerOfTwo_twoPrimary_range_eq_layeredformalizessketch/twosmith.mdin the literal ring(ZMod (2^K))[X]/(X^(2^d)+1). Lean proves that a primitive lift with binary Hasse depthvis a unit times(1-X)^v, proves2is a unit times(1-X)^(2^d), and consequently computes the image as2^((K-e)(n-v)+(K-e-1)v)and the cokernel as2^(e*n+v). The module supplies carrier equivalences with the two-level Smith image and cokernel models; it deliberately does not expose a high-norm Smith basis change. Instead, a concrete triangular Pascal minor proves that the firstvcoefficient positions form a Hasse information set, yielding the exact binary-cube enumerator bound and the IID factorp_e^(n-v) p_(e+1)^v. It also proves the invariant finite local-overlap identity, its two-level joint-stratum aggregation, and an exact annihilator-character formula for arbitrary correlated finite error tapes. All of these are native theorems; converting an implementation's analytic Gaussian or bounded-noise model into the scalar local masses remains the parameter-specific input. -
FormalProof4FHE.RLWE.RankOneHNFLossinessTwoSmithExact.jointTupleAggregationformalizessketch/twosmith_exact_parameter_note.tex. The native Hasse/Pascal code has an exact IID Fourier collision identity, and its row-space and kernel weight enumerators satisfy the Lucas recurrences used by the rational evaluator. Lean proves the IID parity-bias square identity, the exact Hasse factor and its two-level product bound, the adjacent-kernel coefficient formula, and both branches of the signed fixed-weight ternary pair histogram. For the literal power-of-two quotient it also proves capped multiplicativity of the chain valuation and applies it to the complete descriptor(t-s)*(z+f*g*(t+s)), without assuming the second factor is a unit. Finally, finite sums are regrouped by the complete row tuple, with rowwise factorization available only after explicit conditional independence. -
FormalProof4FHE.RLWE.TFHEppLvl5BootRenyiObstruction.lvl5_firstOrderRenyiMargin_not_posis the concrete arithmetic screen for TFHEpplvl5bootparam. Lean bounds the corrected fixed-weight support2^96 choose(32768,96)below2^1038, checks the exact square moment600806592/32767, and proves that theg=2^622,sigma=2^33top row alone exceeds twice the entire support entropy. This rules out the direct uniform-prior, equal-covariance Renyi sufficient condition for these rows; it neither proves insecurity nor discharges the abstract continuous-Gaussian/channel-identification premise. -
FormalProof4FHE.RLWE.TFHEppLvl5BootGaussianClusterScreen.radiusTwoGoodMask_no_128bit_certificatechecks the follow-up Gibbs-cluster experiment against the source-bound TFHEpp parameters. The support-radius-two cloud is represented by the three replacement orbits2^96 choose(96,k) choose(32672,k)fork=0,1,2; it haslog2(M)=137.1463, so unlike radius one it is large enough for 128 bits under hypothetical perfect overlap. One top-row mask coordinate makes every nonidentity Gaussian kernel smaller than2^-604in expectation. Lean checks the resulting Markov arithmetic (Pr[K > 1+2^-128] < 2^-338) and proves that an effective size below two cannot yield even a one-bit Renyi bound at any positive order. It also checks the exact signed-int64support diameter and the finite-channel union arithmetic (<2^-436): on the good mask event, every tested neighbor is support-disjoint from the centre in one coefficient. The integer theta-sum estimate and source-to-uniform-coordinate refinement are explicit certificate boundaries; this rejects the tested cluster, not security itself. -
FormalProof4FHE.RLWE.TFHEppLvl5BootTwoSmithScreen.lvl5_literalCompleteCodebookOverlap_ltextends that experiment from radius two to the complete fixed-weight codebook using the exact two-level principal image. Lean proves a general finite-ring mask-overlap count and candidate union bound, then specializes the literal2^640, degree-32768 ring. Every bare ternary difference has total order at most2n-1, hence at least20905985image bits; the complete signed-int64 error-difference box has fewer than2^(65n)elements, with no independence premise. Since the whole secret support is below2^1038, one uniform row has probability below2^-18775027of overlapping any nonidentity shifted support. This correlation-safe support obstruction subsumes anisotropic information-set, correlated-Fourier, and nonlocal cluster refinements for the actual uniform-mask low-order strata. The proof-only DSPR/NTRU lossy descriptor remains uninstantiated; Lean records that its complete-product total order must first reach18840435 = 574n+31603merely to escape the coarse 128-bit screen. This is a proof-route obstruction, not a computational attack. -
FormalProof4FHE.RLWE.TFHEppLvl5BootRepresentation.lvl5DoubleDecompositionEquivcloses the representation gap for those rows. Lean checks2^640 = (2^16)^40and proves that TFHEpp's public centering offset, signed digit conversion, coefficientwise decomposition, and35 * 40 = 1400row layout form an equivalence. For every FFT equipped with an exact round-trip decoder,finiteRenyiMoment_lvl5RepresentationandconditionalGuessingProbability_map_lvl5EncodedRowsprove exact Renyi-moment and guessing invariance, including when the encoded codomain contains unreachable values;idealDigitFFTEncodingdischarges that contract unconditionally for the exact complex DFT. The SPQLIOS/IEEE-754 source routine remains an implementation-level numerical boundary rather than an axiom hidden in the cryptographic theorem. -
FormalProof4FHE.RLWE.PowerOfTwoQuadraticKDMStatistical.tvDist_quadratic_ideal_le_literalPowerOfTwoformalizes the unconditional collision theorem frompower_of_two_quadratic_kdm_statistical.tex. For arbitrary correlated finite secret, error, and leakage tapes it proves the exact gadget-independent boundTV ≤ sqrt(Theta - 1) / 2; the zero-message, quadratic-to-zero, masked-HNF, compiler, and relinearization statements are checked too.PowerOfTwoCyclotomicChainRingproves directly that the literal quotientZMod (2^kappa)[X]/(X^(2^r)+1)is the required chain ring: parity has principal kernel(1-X),(1-X)^(kappa*2^r)=0, every ideal is a power of(1-X), and the level-videal has2^(kappa*2^r-v)elements. Thus the final literal-ring theorem has no ramification certificate premise. As in the paper, usefulness for narrow FHE noise still depends on numerically showingTheta - 1is negligible. -
FormalProof4FHE.Regev.oneTime_abs_signedAdvantage_le_lwe_add_leftoverproves one-time Regev security from decisional LWE with the concrete termsqrt(q^(n+1) / 2^m) / 2; the finite leftover hash lemma and binary subset-sum two-universality are checked inFormalProof4FHE.Probability.LeftoverHash. -
FormalProof4FHE.BlockBinary.advantage_le_randomized_ordinaryLWE_add_jointGap_cappedis the sharp reduction-specific block-binary-secret LWE theorem over a finite ring. It folds both matrix-masking sides and every row transition into one randomized narrow-LWE adversary, retaining cancellation, and keeps noise absorption plus extraction as one exact TV distanceΔ_joint. Forkblocks of lengthℓ, the bound ismin(1, 2kℓ · Adv_narrow(B±) + Δ_joint + Adv_wide).advantage_le_of_ordinaryLWEBounds_tightgives the convenient uniform corollarymin(1, 2kℓ · ε_narrow + ε_noise + sqrt((|R|^d - 1) / (ℓ+1)^k) / 2 + ε_wide). The sharper split theoremadvantage_le_randomized_ordinaryLWE_nonlinearuses the exact finite expectation of1 - ∏ⱼ(1 - dⱼ), where eachdⱼis the translation TV of the complete summed narrow-error shift in samplej. It has no caller-supplied shift, moment, or tail hypothesis and is formally no worse than the older boundε_noise ≤ min(1, m·kℓ/(ℓ+1) · δ_scalar).card_keys_with_activeBlockCountandprobEvent_activeBlockCount_uniform_keyprove the exact active-block lawPr[H=h] = choose(k,h)ℓ^h/(ℓ+1)^k;extractorHash_leftover_tightchecks the finite extraction constant. -
FormalProof4FHE.ModularGaussian.torusDistributiondefines the ideal mod-qdiscrete Gaussian exactly asD_ℤ,αq mod q.shiftDistance_distribution_le_valMinAbsproves modular data processing through the centered integer lift, whileshiftDistance_torusDistribution_le_natAbs_mul_unitreduces every centered modular shift to its integer magnitude times one underlying integer-Gaussian unit-shift distance. The genericshiftDistance_zsmul_leproof uses only translation subadditivity and sign symmetry. That unit distance is proved exactly equal to the centered Gaussian's mass at zero, and any natural windowW ≤ αqbounds it byexp(1/2)/(W+1)using a finite normalization window. Finally,convolutionDistance_le_conditionalShiftCostproves that mixing the summed error before TV can only improve on revealing the shift. These are infinite-support mathematicalPMFs. They are deliberately not identified with an executableProbComp: an implementation has finite support and must be analyzed as the actual sampler used by the finite reduction. -
FormalProof4FHE.FiniteFieldRank.rankFailure_leproves that a uniform(d + δ) × dfinite-field matrix loses column rank with probability at most2 / |F|^(δ+1).rankMulFailure_le_rectangularproves the fixed high-rank overlap bridge used in Pietrzak's reduction.GeneralizedSubspaceLWE.Adaptive.noisyInnerProduct_eq_secretAffinealso exposes every fixed Subspace-LWE response as a public affine function of its one hidden secret. Together with the full binary-key-support TFHE non-affinity theorem, this formally records why that reduction cannot directly generate the native secret-secret mask-block product. -
FormalProof4FHE.SharedRandomness.zmod_advantage_eq_batchimplements Theorem 6 of ePrint 2023/979 as an exact reduction to ordinary LWE withm + msamples. The scalar error- convolution premise is proved to lift to IID vectors. -
FormalProof4FHE.SharedRandomness.KeySwitching.sharedIKSK_advantage_eq_fullIndependentproves the no-new-assumption result for shrinking/shared-randomness IKSKs. A full-size IKSK for independent input and output keys encrypts gadget messages forunusedPrefix || suffix; its public suffix projection has exactly the shared IKSK distribution, which publishes only the suffix messages under the retained key. Both real and uniform branches, and hence advantages, are equal with no hybrid or IKSK-size factor.sharedIKSK_hardAgainst_of_fullIndependentstates the corresponding bound-preserving transfer for arbitrary adversary classes closed under the explicit projection reduction; this is the formal no-new-security-assumption statement.affineIKSK_advantage_eq_lweindependently gives an exact whole-batch reduction to LWE under the retained key, whilesampleRestriction_advantage_eqproves exact monotonicity in the number of LWE samples.twoPairProjection_advantage_eqapplies two independently sampled, possibly heterogeneous IKSK projections jointly without a factor-two loss. The theorem does not include or make a claim about BRK security. -
FormalProof4FHE.SharedRandomness.KeySwitching.blockBinarySharedIKSK_advantage_le_of_ordinaryLWEBounds_nonlinearcomposes that lossless IKSK layer with the checked nonlinear block-binary reduction. Thus, for the ePrint 2023/958 retained key, the only cryptographic premises remain the same ordinary-LWE bounds already exposed by the block-binary theorem. -
The source-to-target ring-key extension layer now formalizes the intended shared-randomness construction with two nested ring keys
S_target = S_source || S_suffix. A source-key TLWE/GLWE row is extended by appending zero mask coordinates. A full target-layout TGSW ciphertext also needs the new suffix gadget rows; these are constructed by externally multiplying the source BRK entry with the corresponding suffix-only ring-KSK row.rowError_extendWithKeySwitch_suffixproves the exact completion formula, including the KSK and external-product residuals. Applying this construction to every BRK entry keeps the message vector fixed and gives the formal public arrowBRK(messages, S_source) -> derived BRK(messages, S_target).tvDist_realDerivedTarget_zero_le_sourceCircularproves that the converted target real/zero distance is no larger than the source one-circular BRK-plus-KSK distance. Thus conversion creates no new target-key circular assumption. The corresponding continuation theorem proves the same bound after any randomized evaluator or distinguisher uses the derived BRK. The output is deliberately called a derived BRK: no equality with a freshly sampled native target BRK is asserted. The converter uses a ring-valued suffix KSK underS_source; this is stronger public material than the standard scalar TFHE KSK. If only the scalar KSK is available, a separate LWE-to-GLWE packing theorem is still required. -
The full-target-message security layer instantiates the fixed-message arrow exactly as
BRK(KeyExtract(S_target), S_source) -> derived BRK(KeyExtract(S_target), S_target), withS_sourcea literal prefix ofS_target. Coefficient lemmas identify the source and suffix coordinates inside the fixed target-message vector. The target scalar encryption key isKeyExtract(S_target); sample extraction returns to that same key, so this variant needs no scalar shrinking KSK. The complete derived-BRK replacement, including an arbitrary secret-dependent continuation, adaptive encryption, and public FHE evaluation, is exactly one contextual source term. A checked suffix-only hybrid further splits it into the genuine source-prefix self-key replacement and an acyclic independent-suffix replacement; the refined adaptive and public-evaluation bounds display both terms separately. The acyclic hop is also definitionally identified with a generic auxiliary-input real/zero game and bounded by its real/uniform plus zero/uniform branches, retaining the same ring-extension table and adaptive input tape. For positive ring degree and one common ring-error sampler, a checked sample- extraction conversion now combines the complete suffix-only BRK, ring-extension table, and query-counted target-key input tape into one ordinary same-source-secret blocked module-LWE problem. Exact real branches and a common uniform endpoint bound the complete adaptive acyclic hop by two ordinary module-LWE advantages; the reductions never receive either secret. The genuine prefix hop is additionally packaged as one exact auxiliary-input CircRLWE problem in the PKC 2024 sense. Its real/reference KDM advantage is exactly the existing prefix term, and a triangle bound separates real/uniform CircRLWE from the prefix-zero/suffix-retained reference branch. For a public FHE continuation, that reference branch is now bounded by two ordinary blocked module-LWE advantages, rather than retained as another circular assumption. Fixed-secret native generation is exactly the degree-two monomial presentation: source coordinates are self-key monomials, while suffix coordinates contain an independent suffix coefficient. This equality is now lifted through nested-secret sampling, the real extension table, the complete query-counted target-key tape, and every public continuation. Consequently the remaining public BRK CircRLWE advantage in the full adaptive FHE theorem is exactly its explicit degree-two monomial presentation, not only rowwise equivalent at fixed keys. It is also exactly the earlier PKC-style prefix CircRLWE problem with the adaptive tape sampled by its experiment continuation. The matching complete-view recovery problem gives the solver the BRK, extension table, and tape, while keeping the latter two objects in the uniform-BRK recovery baseline. The associated public exact-recovery problem is explicit. Same-noise and narrow-search/widened-decision interfaces now carry any checked shifted-evaluation and guess-and-check certificate into the final adaptive theorem, producing exactly nested-key recovery, the certificate loss, and one ordinary blocked module-LWE term. The BRK-first recovery view(BRK,(extension,tape))is also proved exactly equivalent to the established tape-first view(tape,(BRK,extension)): the public solver conversions are inverse, success probabilities agree, and real-valued search hardness is equivalent. Thus both circular formulations share one nested-key search obligation rather than postulating two reordered assumptions. The same chain is now lifted to security-parameter families: negligible tape-first recovery, negligible checked reduction loss, and ordinary module-RLWE security imply negligible adaptive TFHE advantage, with distinct narrow-search and widened-decision error families. However, the shifted-function evaluator needed for search-to-decision—and hence any reduction from ordinary RLWE—remains a research obligation. Uniform source-BRK and fresh-input errors give exact zero advantage for arbitrary ring-extension errors. This is confidentiality only; for narrow centered-binomial or discrete-Gaussian errors, the prefix self-key term remains the circular research obligation. A sharper public BRK challenge retains the real extension table and target-key tape as auxiliary input and compares the complete target-message source BRK directly with a uniform BRK. After this single circular hop, one ordinary joint module-LWE reduction reaches a fully uniform tape, which is exactly fair for every query-bounded adversary. The strongest adaptive theorem is therefore one explicit degree-two monomial CircRLWE advantage plus one ordinary blocked module-LWE advantage, with no separate zero-BRK endpoint. A second, more direct FHE circular-security formulation now retains the complete real public evaluation material(BRK(KeyExtract(S_target), S_source), Ext(S_suffix, S_source))and challenges the query-counted zero-encryption tape underKeyExtract(S_target)against a uniform tape. The adaptive adversary is a public distinguisher receiving no secret, and for every query-bounded adversary Lean proves exact equality between its absolute honest TFHE IND advantage and this direct auxiliary-input CircLWE advantage. Independent XOR masks give an exactly fresh nested secret. A specialized PKC-style shifted-view certificate now states the remaining operation: publicly transform the complete(tape, BRK, extension)view to the widened fresh-key law. Same-distribution and narrow-search/widened-decision reduction theorems charge the supplied guess-and-check/smudging loss once. The view certificate is now narrowed to(BRK, extension): arbitrary nested XOR masks transport the complete target-key tape exactly, with no scalar-noise widening, and centered-binomial noise transports the changed BRK plaintext vector exactly. For a rank-one source GLWE, global complementation of both nested keys transports the extension table exactly and bounds the complete adaptive view solely by the established BRK complement- shear distance. A certified discrete-Gaussian corollary gives the explicitlevels * degree * scalarLinearShiftBoundenvelope. Every complete fresh nested mask is now proved uniquely equivalent to a normalized relative mask (with one fixed source anchor coefficient) plus one Boolean global-complement bit. Uniform relative mask and uniform anchor send every fixed nested key to the exact fresh-key law. A checked compiler lifts any evaluator for just the normalized-relative(BRK, extension)material through the exact target tape, applies the concrete anchor transform, and produces the complete PKC-style view randomizer with errorrelativeError + globalComplementViewError. Constructing that normalized nonconstant relative evaluator is still the research step; the candidate-dependent one-coordinate guess-and-check layer around it is checked below. A checked classification shows why the PKC vector-LWE rerandomizer does not instantiate it directly: at modulus greater than two, a normalized source-relative XOR mask has a scalar-affine ring-key transport only when every retained source coefficient is false. Ordinary RLWE is not assumed to provide the missing nonlinear transport. The additive case itself is now carried through the native rank-one TGSW format: after ordinary LWE key translation, the public row shear(row_mask,row_body) -> (row_mask-delta*row_body,row_body)repairs every gadget phase and produces the same TGSW message unders+delta. Its complete statistical cost is exactly the corresponding error shear, and the full BRK cost is bounded by the number of entries times that distance. Thus the gadget rows are not the obstruction. At coefficient modulus two this gives an exact arbitrary-XOR BRK transport under shear-invariant noise; at practical moduli the XOR mask is not an additive ring shift, so this boundary theorem does not remove the remaining evaluator. The missing endpoint is now stated without any source/target ambiguity. Centered-binomial symmetry first changes the BRK messages exactly fromKeyExtract(S)toKeyExtract(S')while retaining the old source encryption key and extension table. The remaining certificate must map(BRK(KeyExtract(S'),S_source), Ext(S_suffix,S_source))to(BRK(KeyExtract(S'),S'_source), Ext(S'_suffix,S'_source)). This first hop adds zero error, and the checked compiler carries the key-shift error unchanged into the relative evaluator. The binary guess-and-check layer around this endpoint is now checked as well. Randomizing one coordinate of every target-tape row with a candidate bit preserves the complete real view for the correct candidate and makes the entire tape independently uniform for the wrong candidate. The relative/anchor compiler preserves both decision branches with the same budgetkeyShiftError + globalComplementViewError. Postcomposition with any public direct-CircLWE distinguisher and canonical sign selection therefore gives an executable one-coordinate predictor with success at least(1 + advantage - 2 * budget) / 2. This completes the probabilistic PKC guess/check implication, but remains conditional on constructing the displayed nonlinear ring-key-shift evaluator; ordinary RLWE is still not claimed to supply it. Running that tester once for every extracted target-key coordinate on the same public view is also formalized. Coefficient extraction is an explicit equivalence with the pair(S_source,S_suffix), and a finite union bound gives a public exact-nested-key solver without assuming independence of coordinate events. The resulting checked narrow-search/wide-decision certificate yields the adaptive TFHE bound with loss equal to the sum of the one-shot coordinate errors. That sum is normally too large without amplification; amplification on a shared view needs a stronger conditional-fiber law and is not silently inferred from the averaged result. -
A separate prefix-message nested-ring optimization embeds the same converter in a complete TFHE cloud-key and adaptive encryption experiment. Its scalar encryption key is
KeyExtract(S_source), the derived BRK encrypts that fixed message vector underS_target = S_source || S_suffix, and a separate scalar suffix-only KSK returns extracted target-ring rows to the shared scalar key. The ring-valued extension key is consumed during key generation rather than published.tvDist_continuation_eq_sourceOneCircularproves that the complete derived-BRK replacement, including arbitrary secret-dependent encryption and public FHE evaluation, is exactly one source self-BRK replacement. The adaptive IND theorem therefore has one source-circular term plus the explicit BRK-zero endpoint, rather than a heterogeneous two-key circular term. Uniform source-BRK and fresh-input errors discharge both terms exactly and give zero adaptive/evaluated distinguishing advantage for arbitrary extension and scalar-KSK errors. This is a confidentiality-only endpoint: those uniform errors are incompatible with useful TFHE correctness. For narrow centered-binomial or discrete-Gaussian errors, proving the source one-circular term and the cross-presentation BRK-zero endpoint remains open. -
A separate coefficient-nesting model,
TFHE.Native.SharedRandomnessOneCycle, specializes the ePrint 2023/958 key relation to a rank-one TFHE variant. One uniform master ring key splits exactly into an independent scalar prefix and suffix; the KSK publishes rows only for the suffix and reduces as one batch to ordinary binary-secret LWE. In TFHE source/target terminology, the BRK source scalar key iss = prefix(S)and the BRK target encryption key is the full ring keyS; hence the remaining object is exactlyBRK_S(prefix(S)), a genuine one-key object rather than the original heterogeneous two-key cycle. Its diagonal Boolean self-products are affine, whileoffDiagonalBinarySelfProduct_not_affineproves that every distinct-coordinate product with nonzero gadget remains quadratic, so shared randomness alone does not turn narrow-noise native TRGSW security into ordinary RLWE. There is nevertheless an unconditional security-only endpoint. Uniform ring-row errors make every fixed-message native TGSW ciphertext exactly uniform, and this equality survives an arbitrary continuation that receives the master secret and the correlated suffix KSK.secretContinuationAdvantage_le_uniformRingErrorextends the result to any finite error sampler at distancedeltafrom uniform with loss at most2 * BRKrowCount * delta.TFHE.Encryption.SharedRandomnessOneCyclenow instantiates that context with the actual one-time left-or-right TFHE encryption experiment. It resamples the real BRK as independent uniform, splits the master key into independent prefix and suffix keys, and places the complete suffix KSK plus adaptive input row in one unequal two-block LWE transcript. The checked final bound isBRKrowCount * delta + Adv_LWE; only one sampler-replacement side is needed for confidentiality. With equal KSK/input noises this is exactly ordinary binary-secret batch LWE onsuffixDimension * keySwitchLevels + 1rows. Uniform or nearly uniform BRK noise is incompatible with the usual TFHE correctness margin, so no security-and-correctness claim for standard narrow Gaussian TFHE is made.TFHE.Encryption.Adaptive.SharedRandomnessOneCycleproves the reusable-key strengthening. One hidden bit and cloud key are reused across a sequential, query-bounded encryption oracle; later message pairs may depend on earlier ciphertexts. The eager-tape proof charges exactlyqueryCountinput rows, proves the uniform adaptive branch fair, and gives the same one-BRK statistical cost plus ordinary batch LWE onsuffixDimension * keySwitchLevels + queryCountrows in the equal-noise case. At exactly uniform BRK error the full adaptive advantage equals that ordinary batch-LWE advantage, and the adversary-class theorem derives reusable-key confidentiality from batch-LWE hardness alone: no circular- or KDM-security premise remains for this wide-noise variant. The asymptotic packaging turns this equality into negligible reusable-key advantage for polynomial-query adversaries and preserves it through arbitrary efficient public evaluation. It also proves the near-uniform version whenever the one-draw ring-error distance from uniform is negligible and the BRK dimensions grow polynomially. A concrete executable instance now uses positive-width centered-binomial BRK errors at coefficient modulus two. Lean proves that this ring-error sampler has total-variation distance zero from uniform and therefore derives reusable-key adaptive confidentiality, including after arbitrary deterministic public evaluation, from ordinary query-counted binary-secret batch LWE alone. This is a genuine no-circular-premise security theorem, but only a security-only boundary case: uniform error modulo two eliminates TFHE's decryption and bootstrapping noise margin, so it does not give correct standard TFHE parameters. The narrow-noise endpoint is now stated separately and exactly. The complete master ring key is the sole secret of an auxiliary-input CircLWE problem; the real challenge is the native self-circular BRK, the comparison challenge is a uniform BRK of the same type, and the retained side information is the real suffix-only KSK. The real challenge is proved to have the exact degree-two self-monomial presentation. For arbitrary finite ring noise, including the existing centered-binomial and discrete-Gaussian samplers, reusable-key adaptive confidentiality is bounded by this one native CircLWE advantage plus ordinary binary-secret batch LWE onsuffixDimension * keySwitchLevels + queryCountrows. Public deterministic evaluation keeps the same two terms. This is the precise one-circular conditional theorem requested for usable narrow noise; it does not assert that ordinary RLWE proves the remaining self-quadratic term. A second, more literal endpoint now avoids using real-versus-uniform CircLWE as the name of the circular premise. Its first term is exactlyBRK_S(prefix(S))versusBRK_S(0)under the same master key; the non-circular zero-BRK versus uniform-BRK encryption term and the ordinary scalar batch-LWE term remain explicit. Finite, asymptotic, and public-evaluation theorems all use this three-term decomposition. This prevents the current/shifted full-master states used inside a possible randomizer from being confused with TFHE's source scalar key and target ring key. The asymptotic lift packages this as a conventional negligible-advantage result: negligible one-cycle auxiliary-input CircLWE and negligible ordinary batch LWE imply negligible complete adaptive TFHE advantage. It includes explicit constructors for the executable centered- binomial family and for certified finite discrete-Gaussian ticket samplers, and the evaluated- ciphertext game inherits the same theorem without an additional security loss. The matching exact search experiment is also formalized. A solver receives the native self-monomial BRK and real suffix KSK and must recover the complete master key. At the uniform- BRK endpoint this is exactly affine shared-KSK search LWE; complete prefix/suffix recovery is bounded by conventional binary-secret batch search LWE under the prefix key. If both public transcripts are uniform, recovery is exactly2^-(prefixDimension + suffixDimension). Hence the remaining search-to-decision task is localized to transforming the real self-circular BRK, rather than to the KSK or the independent guessing endpoint. The complete master-key randomization geometry is now checked as well. Coefficientwise XOR by a uniform binary ring-key mask gives an exactly fresh master key and preserves both the shared prefix and suffix. The public additive ciphertext correction used by the PKC 2024 CircLWE randomizer exactly transports a ring key by addition. At modulus two this realizes binary XOR, but at every modulusq > 2a complete characterization proves that such an additive implementation exists only for the all-false mask. In particular, toggling one master-key coefficient rules out the direct additive route for native binary TFHE. For rank-one TGSW, the additive transport is nevertheless complete rather than merely an LWE-row observation: a checked mask/body row shear repairs the key-dependent gadget phase, preserves uniform challenges, exposes the exact narrow-noise TV defect, and lifts pointwise through the BRK. The characteristic-two arbitrary-XOR specialization is exact with shear-invariant errors, but is a diagnostic boundary rather than a practical TFHE parameter choice. That diagnostic is now closed through the entire direct relative-material interface. Lean proves that every positive- width centered-binomial coefficient modulo two is exactly uniform, hence the complete ring sampler is uniform and both additive and complement TGSW error shears have zero loss. Ordinary additive key transport plus a public gadget-message body shift transports the ring-extension table, so the message-normalized pair(BRK(KeyExtract(S'), S_source), Ext(S_suffix, S_source))maps exactly to(BRK(KeyExtract(S'), S'_source), Ext(S'_suffix, S'_source)). The resulting relative evaluator, adaptive-tape lift, and global anchor instantiate the complete fresh-key view randomizer with error zero. This validates the theorem chain but supplies no usable correctness parameters: the positive-width noise already fills the coefficient ring, and the additive identity fails for nonconstant XOR masks at everyq > 2. The checked boundary now also covers the larger natural scalar-affine class: inverse-scaling the public RLWE challenge and correcting the body transportsstou*s+dexactly, but atq > 2such a map realizes coefficientwise XOR only for the identity mask or the global-complement mask. For a key with at least two coefficients, arbitrary randomized selection among those surviving maps is formally proved not to have the fresh uniform-key law. This excludes additive and scalar-affine public randomization, not nonlinear homomorphic evaluation or a circular-security proof using a different secret representation. The surviving action is characterized exactly: every positive-length binary key is equivalent to one global anchor bit plus its relative XOR pattern, a fresh key makes those two parts independently uniform, and global complement refreshes only the anchor while fixing the complete relative pattern. The generic CircLWEViewRandomizationinterface is now proved inconsistent with a uniform fresh-secret law when all of its native key actions come from this scalar-affine class. Thus the missing evaluator must randomize the relative pattern nonlinearly, rather than merely choose the complement bit. Full XOR is now factored exactly into a normalized relative-mask action followed by global complement, and a uniform relative mask paired with a uniform anchor is proved to recover the complete fresh-key law. This leaves the future evaluator with a preciseN-1-bit nonlinear obligation. The final one-bit action is now lifted through the evaluation key itself. For the suffix-only KSK, negating each row, adding the all-one gadget table, and applying the existing target-key XOR transport exactly complements both source and target keys under any negation-symmetric scalar noise. For a rank-one TGSW/BRK, a checked public conjugation also complements the ring key and plaintext, but it necessarily maps every matched mask/body error pair to(e_mask + d*e_body, -e_body). Besides the exact invariant-noise theorem, the formal comparison now bounds one TGSW by the total-variation defect of this shear, the full BRK bylweDimensiontimes that defect, and the joint BRK+KSK by the same quantity: the KSK term is exactly zero. Under negation symmetry the defect is at mostlevelstimes a scalar translation envelope. For the certified symmetric discrete-Gaussian sampler this becomeslevels * degree * scalarLinearShiftBound(certificate, q / 2). The universalq / 2bound is unconditional but conservative, so it does not establish negligibility for standard narrow TFHE parameters. A second, exact route now changes the joint row-error geometry: average any IID narrow vector with its image under the involutive shear using one hidden uniform bit per TGSW entry. The resulting correlated TGSW sampler is proved equivalent in its structured and direct presentations and has zero complement loss through the complete BRK+KSK. With centered-binomial base widtheta, every resulting row has norm at mosteta + degree * eta(wheredegreeis the actual ring length). Thus the shared-randomness variant removes the shear obstruction without uniform errors, at the cost of a modified correlated noise law. The relative and complement steps are now composed in the generic search-to-decision interface: their total-variation errors add once, while the concrete correlated centered-binomial BRK plus suffix-KSK complement step has error exactly zero. Therefore any relative-mask evaluator with errorepsilonyields full fresh-master-key view randomization with error exactlyepsilon. The suffix KSK is now removed from the relative step too: selectively negating its source rows and adding their gadget values transports every arbitrary suffix mask, while the existing target transform transports the prefix mask. Under centered-binomial symmetry this simultaneous full-master KSK action is exact. Conditional independence at a fixed master key then proves that any BRK-only relative evaluator with errorepsilonyields the complete(BRK,KSK)relative view, and hence full fresh-key randomization, with the sameepsilon. The BRK plaintext part is now removed from that obligation too. The shear-centered-binomial error vector is exactly invariant under complete negation, so public TGSW toggling transports every selected BRK message bit exactly. In the search-to-decision randomizer, this first installsprefix(S')in a BRK still encrypted under the current masterS, before a supplied evaluator transports that view to the shifted masterS'. HereSandS'are two same-size randomization states—not TFHE's source and target keys. The KSK, BRK messages, and final complement add zero error. This compiler is an internal ingredient; the actual one-circular security target remainsBRK_S(prefix(S))versusBRK_S(0). Constructing the current-to-shifted-master evaluator and completing the decision-to-search accounting remain the central obligations. The native CMux/key-change mismatch is now checked explicitly. For every TGSW row, interpreting a fixed ciphertext under a new ring secret adds the dot product of the secret difference with the ciphertext's homogeneous mask. Hence a correct candidate has target-key error equal to its existing same-key residual plus this exact defect, and the claimed shifted-key residual holds if and only if the defect is zero. The same equivalence survives any finite sequence of correct-coordinate CMux calls. Sequential guess testing therefore does not silently instantiate the whole relative-key evaluator; a future nonlinear construction must cancel or quantitatively smudge the named defect. Every signed negacyclic monomial is proved to act bijectively on ring masks, so merely retaining a uniformly masked row across the+X^ior-X^idifference of a one-coordinate binary-key flip makes its target-key phase uniform. The result now holds jointly for any number of independently masked rows. This does not make the public ciphertext table uniform:rankOneMaskPhaseView_not_surjectiveproves that retaining the masks leaves the mask/phase transcript on a proper deterministic graph over every nontrivial ring. In the augmented reduction,coordinateSource_context_evalDist_eq_realPublicViewadditionally proves that forgetting the tested secret bit gives exactly the real circular BRK+KSK+tape view. Hence the present candidate evaluator is an internal CircLWE search-to-decision step, not yet an ordinary-RLWE simulator for its own source. -
FormalProof4FHE.LWE.AffineCircular.advantage_eq_lweproves an exact fixed-affine KDM theorem for direct fresh LWE rows. A simultaneous challenge-matrix translation absorbs every affine function of the encryption secret, so there is no per-row hybrid loss. By itself this does not cover the bilinear cross-key messages in native TGSW mask blocks. -
FormalProof4FHE.LWE.MultiKeyAffine.advantage_eq_batchstrengthens that baseline to an arbitrary fixed affine clique: every fresh row under any ofusersindependent binary keys may encrypt an affine function of all user keys. A checked master-key/mask coupling produces exactly independent keys, and the complete real and uniform games equal one ordinary binary-secret LWE batch withusers * samplesrows. This proves direct 1-circular, 2-circular, and affine-clique security; it still does not cover TFHE's bilinear ring/vector gadget phases. -
FormalProof4FHE.TFHE.PackedLinearCircularRLWE.gadgetAdvantage_eq_binarySecretRLWEchecks the power-of-two ring analogue of the proved linear circular-LWE argument from PKC 2024. Independent coefficient bit planes pack bijectively into a uniform negacyclic-ring key, and one triangular transcript permutation produces powers-of-two gadget encryptions of every plane together with arbitrary zero-message rows. The resulting advantage is exactly one ordinary binary-secret RLWE advantage for any finite error sampler. This is a nondegenerate practical-modulus linear baseline, not a proof of native TFHE circular security: the TRGSW mask blocks contain degree-two scalar-bit/ring-bit products, and the source binary-secret RLWE assumption remains explicit. -
FormalProof4FHE.TFHE.RGSWCoefficientCircularSecurityproves coefficient-dependent rank-one RGSW circular security by revealing a finite-valued secret coefficient and removing that leakage with a checked squared-bias reduction. The optimized loss is its order-1/2Rényi concentration; unconditional binary and ternary losses are two and three. The concrete reduction is exactly ordinary batch RLWE on4 * levelsrows, followed by a zero-message hop on2 * levelsrows. A joint theorem covers any bounded coefficient tuple through its joint concentration. For the complete coefficient family, public aggregation of the top gadget-one rows is proved to yield an RLWE row encrypting-eta * S^2; this formally records the quadratic KDM barrier to iterating the one-coordinate theorem over a full bootstrapping key. -
FormalProof4FHE.TFHE.DirectSubsetKeyBRKproves the direct subset-key theorem for an independent additive splitS = Z + iota(P). The reduction samplesP, adds the known contributionA * iota(P)to every suffix-RLWE body, and applies the public RGSW gadget translations. Its abstract auxiliary-view constructor givesAdv(real,zero) <= 2 * Adv(suffix-RLWE) + sigmaReal + sigmaZero + sigmaUniform. The exact rank-one native instantiation proves both real-branch distribution identities and the common uniform branch by explicit transcript bijections, flattens all entries into one ordinary suffix-RLWE batch, and checks the symbolic row count2 * levels * entries. There is no prefix-support or Rényi loss. The premise is RLWE for the independent suffix distribution; auxiliary objects carrying unknown suffix functions still require a constructor proof. -
FormalProof4FHE.TFHE.JointSubsetKeyBRKformalizes the constrained batch constructor for that missing unknown-suffix auxiliary case. It proves that an individual KSK mask has zero linear overlap with the hidden suffix in the direct-BRK orientation, then replaces the per-row route by a public factorizationL * A = G. The identityL(AZ + E) = GZ + LEgives the exact KSK message term. A full-joint error-law comparison and a factorization-failure event give onenoiseError + factorizationErrorcharge per real branch, and the final checked bound is2 * Adv(source) + 2 * factorizationError + 2 * noiseError + uniformError + auxiliaryError. Over finite fields, full column rank constructsLand the standard rectangular rank bound controls failure. The theorem deliberately retains closeness of the complete derived errorLEto the prescribed KSK error as a hypothesis; full rank alone gives no shortness or correctness-compatible noise claim. -
FormalProof4FHE.TFHE.JointSubsetKeyBRKRefinedproves the main proof-side refinements of that boundary. It permitsL * A = G + Rand checks the complete corrected identityL(AZ + E) + F = GZ + (RZ + LE + F). An exact correction-noise certificate compares the complete solver-state/error law, while an approximate certificate survives arbitrary public postprocessing. The native finite-mixture theorem givesTV <= sqrt(E[Mahalanobis energy]) / 2; for IID centered ternary coordinates it proves exactlyE[||RZ||^2] = (2/3) * sum_ij R_ij^2, and substitutes the resulting single square-root term into the joint advantage bound. Independently, a finite counting theorem provesPr[exists l in C, l^T A = g] <= |C| / |R|^nfor unit-coordinate candidates, with automatic filtering whengis nonzero in a residue field. Finally, binary full rank lifts through a surjective local homomorphism toL * A = G; forZMod (2^k)the factorization-failure event is bounded by the exact binary rank experiment and hence by2 / 2^(slack + 1). The sampler-level continuous, wrapped, or rounded Gaussian covariance-completion identity remains an explicit analytic certificate rather than an unproved axiom. -
FormalProof4FHE.TFHE.JointSubsetKeyBRKCenteredMixtureproves the second-order refinement of that analytic boundary. Given the equal-covariance Gaussian pair-kernel identity, centering cancels its complete linear term. On the certified interaction range|z^T B z'| <= 1, this yieldsTV <= sqrt(E[(z^T B z')^2]) / 2, instead of the first-order square root of expected Mahalanobis energy. For IID uniform ternary secrets the pair moment is exactly(2/3)^2 * sum_ij B_ij^2. For the canonical uniform exact-Hamming-weight support-plus-sign sampler, the file proves exact weight, centeredness, isotropic varianceweight / dimension, and pair moment(weight / dimension)^2 * sum_ij B_ij^2. It also reservesR Sigma_Z R^Tinside the target covariance and proves that transformed source covariance, correction covariance, and residual covariance add exactly to the target. Only the selected continuous/wrapped/rounded Gaussian pair-density and convolution laws remain certificate fields. -
FormalProof4FHE.TFHE.TFHEppSubsetJointScreenspecializes the necessary covariance and factorization conditions to TFHEpp's standard subset-key dimensions. For equal spherical source and target variance, positive-semidefinite correction forces every nonzero integral postprocessing row to be a single signed selector and forces its residual row to vanish. A zero postprocessing row at the top key-switch gadget cannot evade this conclusion: the resulting IID-ternary residual variance already exceeds the complete nominal target variance. Finally, for at most2^127source rows, a uniformZMod (2^16)source matrix admits even one prescribed signed-selector suffix row with probability at most2^-6176; complete factorization succeeds no more often. On the covariance-compatible zero-residual branch the Mahalanobis interaction is exactly zero, so the interaction-range check passes. This rejects the current equal-covariance centered-mixture instantiation as a high-probability proof route; it is not an insecurity statement. TFHEpp's rounded C++ normal sampler still needs an exact finite pair-kernel model or an explicit approximation-distance charge. -
FormalProof4FHE.TFHE.JointSubsetKeyBRKDelayedProjectionformalizes the remaining unequal-word route. A translation-equivariant projection and a scaled approximate factorization prove the exact identityproject(L(AZ + E)) = GZ + project(RZ + LE), so source rows can be combined at the large modulus before one final projection. For the32 -> 16power-of-two conversion, Lean constructs the scaled embedding and proves this law both for high-word extraction and for the rounded high word with the half-unit offset used by TFHEpp. The continuous proxy scales both transformed source covariance and residual covariance before matching the target. Independently, a two-budget union bound proves that primitive postprocessing and residual candidate families succeed on one uniform source row with probability at most|C_L| * |C_R| / |R|^n; the concrete large-modulus suffix theorem exposes the corresponding entropy slack. The image-aware extension applies to arbitrary coefficient rows, discards residuals outside each row's additive image, and divides by the exact image cardinality. For aZMod (2^k)row2^v uwith a unit coordinate inu, this denominator is exactly2^((k-v)n); fixed- and mixed-valuation union bounds and an entropy-slack corollary are proved. Every coefficient row is automatically assigned its least bounded valuation stratum. The exact finite rounded-error bridge expands the complete secret/error/correction law into a finite triple-convolution mass table, characterizes exact independence by pointwise table equality, and carries an explicit total-variation approximation charge through gadget assembly. -
FormalProof4FHE.TFHE.JointSubsetKeyBRKDelayedProjectionSolvercloses the finite algebraic obligations isolated by that route. It proves the exact centered-interval congruence count and coordinatewise compatible-box product, then selects one invertible binary minor per disjoint source block. The lifted public postprocessing matrix satisfies the gadget product exactly, has zero residual-secret map, and fails only if some binary block loses column rank; the checked bound isoutputCount * (2 / 2^(slack + 1)). Every output row uses at mostdimensionsource entries, distinct rows have disjoint support, and the centered lift of every modular coefficient is proved to have magnitude at mosttargetModulus / 2. Lean proves the resulting IID covariance is diagonal with each variance at mostsourceVariance * dimension * (targetModulus / 2)^2, including the corresponding simultaneous positive-semidefinite matrix inequality. For deterministically bounded source errors it also proves|derivedError| <= dimension * (targetModulus / 2) * sourceErrorBound; any larger isotropic target variance consequently has a positive-semidefinite correction covariance. The target-ring solution lifts through a ring-compatible delayed projection; for TFHEpp's32 -> 16map the required scale/reduction multiplication law is proved. If the prescribed target error is chosen to be the exact derived law, the complete secret/error distributions are equal and the noise defect is zero; the final joint advantage theorem then retains only twice the block-rank budget as its factorization term. A continuous/discrete Gaussian realization, the geometric ellipsoid lattice-point estimate, and a concrete comparison with the C++ error sampler remain analytic or implementation-level obligations; no such equality is assumed by the Lean theorem. -
FormalProof4FHE.TFHE.TFHEppSubsetTechnicalspecializes that solver boundary to the current unequal-word parameters. It proves that every nonzero integral target-ring factorization row already contributes more source-error variance than the complete target budget, so the lifted invertible-minor solver cannot certify this instance. A genuinely short high-modulus row is not excluded: the exact rowwise covariance budget accepts integral Euclidean radius3104and rejects3105. The module also represents each native subset-KSK body as a linear sample under the complete630 + 394 = 1024coordinate secret. Finally, exact natural-number arithmetic checks the first ternary-candidate row counts meeting both target-space capacity and an extra 128-bit multiplicity margin, and proves their worst-case row energies fit the radius. These are raw cardinality/noise checks; the stronger target-family theorem below supersedes them for information-theoretic existence. -
FormalProof4FHE.TFHE.TFHEShortPreimageSecondMomentproves the clustered finite first and second moments and the exact zero-hit bound(M - 1)/N + (C - 1)H/N^2. It also proves the canonical-ternary pair-classification algebra: different supports expose a unit minor and give a surjective pair map, while equal supports have identical parity and expose a±2minor. Disjoint source blocks give an exactly diagonal Gram matrix and the simultaneous PSD boundL Lᵀ ⪯ bound I. Finally, two ternary preimages of adjacent geometric targets under the same public matrix give a nonzero bounded homogeneous SIS relation. Exact source-bound arithmetic now puts the all-target 128-bit block sizes at8044for the suffix target and20764for the full-secret target, both inside the current noise radius. This resolves existence and Gram control, not efficient public search: the latter is the explicit SIS boundary. The remaining research and implementation obligations are stated indocs/TFHESubsetResearchQuestions.md. -
FormalProof4FHE.TFHE.SubsetKeyNTRUDualModesupplies the conditional NTRU lossy dual-mode composition layer for the same complete subset-key setting. It packages exact recovery of the HNF auxiliary secret as a search problem and proves that this experiment is exactly the existing rank-one HNF search game. A heterogeneous cross-reduction may change both challenge and auxiliary-input types, so a checked TFHE-view compiler transfers complete public decision advantage to HNF recovery with its loss charged once. The real-versus-zero theorem then adds the genuine zero-message-versus-uniform term, and direct corollaries consume either the joint NTRU-ratio or masked DSPR/NTRU HNF theorem. The NTRU descriptor remains hidden inside the lossiness assumption; it is never exposed to an LWE adversary. Constructing the concrete full-view TFHE-to-HNF reduction and discharging its analytic certificates remain explicit research obligations, so this module does not yet certify a TFHEpp parameter set. -
FormalProof4FHE.TFHE.SubsetKeyNTRUTrapdoorproves the finite claims behind the hidden-witness argument. The optimal probability of recovering the HNF auxiliary secret after revealing the NTRU descriptor is exactly the optimal probability of recovering the entropic secret from the complete descriptor/leakage/channel observation; explicit estimator translations prove both directions. The solver-induced coefficient distinguisher has exactly the uniform/structured recovery gap, and public computations are invariant under any change of descriptor that preserves the public coefficient marginal. Coordinatewise denominator scaling is proved bijective and transformsa_j*S+E_jexactly intoh_j*S+f_j*E_j, including the masked-ratio channel. The resulting pointwise theorem adds coefficient, lossiness, compiler, and zero-message losses exactly once. Finally, exact affine noiseless KSK compilation is proved equivalent to equal public offsets andL ∘ A = G, formally isolating the remaining public batch-preimage construction rather than treating the hidden NTRU witness as simulator input. -
FormalProof4FHE.TFHE.SubsetKeyTrapdoorTheoremsconsolidates the finite theorem chain insubset_key_trapdoor_theorems.tex. It gives a quantitative witness-separation inverter, restates the exact affine factorization and derived-error necessity, proves the taggedG-trapdoor phase identities and native suffix-mask erasure equation, and derives the complete tagged joint loss2 Adv_LWE + 2 epsilon_reg + 2 epsilon_noise + epsilon_aux. For the built-in-preimage route it proves exact two-universality on fixed-weight supports, the tight one-block leftover-hash bound, its independent-block hybrid, squared normweight+1, the two-variance weighted energy, and the complete diagonal Gram identity. For the source-aligned route it defines factor-carrying ciphertexts and proves exact key switching plus closure under public addition and scaling, then specializes the joint public-view reduction for a constructor with exact real branches and charges its auxiliary defect once. The projected-error theorem exposes the primitive-vector distance and uniform-image law as hypotheses. Their concrete power-of-two orbit/counting instantiation, continuous-Gaussian sampler realization, the concrete source-aligned view constructor, and a short factor-preserving TFHE bootstrap remain explicit boundaries; the module does not claim that the current implementation satisfies them. -
FormalProof4FHE.TFHE.MPAllButOneHashTrapdoorcloses the reusable finite algebra behind an MP-style all-but-one digest layer. It proves that the programmed digest is the unique zero tag, that every other full-rank-difference tag is a linear equivalence, and that the tagged public mask has the exact programmed kernel and normalized wrong-candidate preimage/phase identities. A determinant interface builds this structure from unit matrix differences and reflects those units through a local ring map. The final bounds charge a supplied tagged-mode defect exactly once in the candidate and direct-projected hash-CMUX routes. A concrete tag family, trapdoor regularity and preimage law, and the native nonce-row compiler remain explicit obligations; seedocs/MPAllButOneHashTrapdoor.md. -
FormalProof4FHE.TFHE.SourceAlignedFactorPropagationcloses the operation-level algebra for the source-aligned route. Finite public row combinations carry the identical combination of factor vectors and phases, yielding exact external-product and identity-plus-external-product CMUX recurrences even when gadget digits are recomputed from the current public ciphertext. TFHE's executable blind-rotation step is proved equal as a complete ciphertext—not only in phase—to this CMUX normal form, and the equality is lifted to the complete native control trace. Public signed-monomial rotations scale the factor exactly. Coefficient sample extraction preserves the complete split-key phase under one explicit ring/scalar gadget compatibility equation. Finally, the exact CMUX factor-energy identity retains its cross-correlation term; Cauchy--Schwarz also gives a conservative external-product bound, one-step CMUX recurrence, and uniform deterministic trace bound. Factors remain proof-only ghost state. The concrete column and extraction constructions are supplied by the next module; this operation-level module alone makes no parameter claim. -
FormalProof4FHE.TFHE.SourceAlignedGadgetConstructionconstructs the canonical common gadget whose columns are all native BRK/TGSW masks and proves that materializing each unit-factor row recovers the complete native row exactly. Coefficient extraction is an additive equivalence; conjugating any ring gadget through it gives an explicit scalar matrix satisfying the former extraction-compatibility premise. The induced source-aligned KSK body then composes with sample extraction in one exact phase theorem. Native control factors occupy disjoint blocks: one external product has exactly its digit energy, and the accumulated block energy is exactly the sum over controls, with no cross-control or exponential loss. This construction module alone does not prove a joint-law replacement between the widened KSK and TFHE's independently sampled native KSK layout. The conditional modified-format theorem and the exact obstruction to the deterministic native bridge are supplied after the native marginal module below; these algebraic results by themselves do not certify a TFHE parameter set. -
FormalProof4FHE.TFHE.SourceAlignedNativeGadgetDistributionproves the corresponding native marginal law. Direct TGSW masks are uniform independently of the fixed secret, message, and error law; finite-product generation makes the complete BRK mask tensor jointly uniform; and the exact native/direct BRK equality transports this fact to the structured native sampler. Flattening control and TGSW-row axes is an explicit equivalence, so the common ring gadget is itself jointly uniform. This closes the random-gadget marginal, but intentionally does not turn the BRK-derived widened KSK into an independent native KSK or prove their complete joint views indistinguishable. -
FormalProof4FHE.TFHE.SourceAlignedBRKKSKJointLawproves the complete-view theorem for the modified source-aligned cloud-key format. It first corrects the coefficient adjoint identity: reciprocal extraction is used for ring masks/factors, while ordinary coefficient extraction is used for secrets/bodies. Two public branch constructors then compose one suffix-RLWE and two prefix-LWE reductions without a rowwise KDM hybrid, yielding2 ε_Z + 4 ε_P + 2 ε_sm + ε_aux; reproducing the derived complete error correlation removesε_sm. The native-compiler analysis provesDᵀc_Nhas the exact aligned phase whenHD = G, but also proves the exact public-mask separation1 - (|im(u ↦ uD)| / q^M)^nand its1 - q^(-n(M-K))width lower bound. Thus deterministic compilation is not a fresh-law replacement. At evaluator level the residual lies inker H, its error discrepancy is the exact residual/error inner product, and a finite MGF certificate implies the stated two-sided subgaussian and reachable-factor union bounds. Concrete instantiation of the public constructors, finite noise certificate, and native correctness budget remains separate; no current TFHE parameter is certified by this theorem alone. -
FormalProof4FHE.TFHE.SuffixRLWEPRGcloses the finite and game-accounting obligations in the suffix/seeded-mask proof note. A tagged known prefix is an exact public transcript permutation and preserves the uniform batch law. Conversely, exposing a deterministic expansion together with its seed has exact recomputation advantage1 - 1 / |Output|, so ordinary PRG security cannot justify that hybrid. For the random-oracle route, a finite eager table splits exactly into an injectively embedded uniform block and an independent complement, while prior seed guesses cost at mostQ / |Seed|. Complete-view compactness costs the two branch TV defects, shared BRK error cancels algebraically, and the conditional endpoint theorem gives2 ε_Z + 2 ε_P₁ + 2 ε_P₂ + ε_aux. Ternary suffix-subspace RLWE hardness and, for a concrete standard-model expander, direct public-seed structured-matrix LWE hardness remain explicit computational premises. -
FormalProof4FHE.TFHE.SourceAlignedDenseJointLawinstalls the previously abstract constructors for the dense modified-format route. The complete random-suffix branch is reparameterized by one affine bijection on a uniform body/mask pair, and the second KSK hop is a uniform-body translation. Both real laws and both uniform-branch laws are exact, so the endpoint bound is one structured suffix advantage plus two dense prefix-LWE advantages, with no rowwise loss or constructor defect.TFHEppCandidateLvl02DenseSecuritythen fixes the balanced candidate's binary prefix sampler, zero-prefix centered-ternary suffix sampler, 64-bit rank-one ring-mask sampler, scalarized aligned width, and leading-prefix gadget rows. Its hardness corollary is2 ε_Z + 4 ε_P. The complete finite error samplers, the public BRK message/contribution map, hardness of the resulting ternary suffix-subspace source, full correctness composition, and the widened evaluator remain explicit obligations; the theorem does not certify native TFHEpp. -
FormalProof4FHE.TFHE.SourceAlignedParityTernarySecuritymakes the parity-placed suffix reduction independent of the torus modulus and complete gadget-row count. A binary degree-1024 prefix occupies the even coefficients and an independent centered-ternary degree-1024 secret occupies the odd coefficients; the complete suffix source is exactly ordinary ternary RLWE with twice the ring-row count, and the endpoint loss remains2 ε_RLWE + 4 ε_LWE.CenteredBinomialProofErrorSamplerproves the sharp finite CBD MGF proxyeta / 2and identifies its modular tape exactly with the executable coefficient sampler.TFHEppCandidateLvl02CBDParameterScreenthen checks the proposedq = 2^27,eta = 2048, base-four/13-level arithmetic, including one discarded decomposition bit, no modular wrap, aligned width54525952, Chernoff exponent2048 / 13, and adaptive correction failure strictly below2^-226. The concreteTFHEppCandidateLvl02CBDParitySecuritytheorem binds that same CBD law to the ordinary ternary-RLWE and binary-LWE source games without a Gaussian comparison, suffix PRG, or NTRU term.SourceAlignedExecutableJointFormatthen fixes the implementation sampling order—first the complete BRK, then an independent dense mask and CBD correction—and proves that its reused BRK-body formula is exactly the real dense joint view. It also proves the row formula used by the streamed evaluator under the explicit BRK-contribution split and checks that a literal candidate KSK occupies223556403200bytes. This closes the widened row/sampler mechanics, not the native TRGSW cryptographic bridge: the theorem's public linear BRK-contribution map still has to be instantiated despite the nonce rows' secret-message products. Complete bootstrap rounding and modulus-boundary composition also remain required. -
FormalProof4FHE.TFHE.NativeTRGSWBarrierAndSpectralBoundarymakes that native boundary exact. It proves the body-row public-linear coefficients, the nonce row's complete degree-two form, the suffix-variation and mixed-Boolean-derivative impossibility theorems, displayed-mask independence and the sharp one-half raw-mask recovery bound, private cancellation, and the complete TGSW/BRK xor-normalization law. It then proves Walsh orthogonality, the exact diagonal Fourier and orbit-filter identities, the low/high split with multipliersum_{k=1}^d choose(t,k), and the finite leakage-removal loss. For an arbitrary finite complete BRK/KSK/auxiliary channel it derives the exact posterior-parity quotient and the distinguisher-independenttheta_Scoefficient bound. The final native circular-security inequality is conditional on a low-degree complete affine-source compiler, the random/zero endpoint, and the explicitly namedNativeDiagonalSpectralDecaypremise. A point-oracle witness proves normalization alone cannot imply secret prediction. Consequently this closes the finite reduction algebra but does not assert spectral decay or certify current native TFHE parameters; seedocs/NativeTRGSWBarrierAndSpectralBoundary.md. -
FormalProof4FHE.TFHE.NativeTRGSWCompleteChannelinstantiates that framework with the actual shared-prefix/suffix native BRK plus retained KSK sampler. The real sampler is proved exactly equal to the diagonal channel law, the comparison sampler independently randomizes the BRK message, and the complete xor normalization retains all BRK/KSK correlation. After conditioning on a known message, each direct TGSW body is proved affine in the ring key by absorbing the public gadget-mask shift into its challenge. Frequency-support leakage has exactly2^|S|values, so its square-root loss is derived rather than manually selected. The affine identity is lifted to an exact distributional equality for every BRK entry and then for the whole conditioned BRK-plus-retained-KSK view, preserving the shared prefix/suffix key. A bundled low-frequency certificate feeds these facts into the final native acceptance theorem, while a decoder lower bound rules out incompatible spectral-tail claims. The joint affine-source hardness reduction, high-frequency posterior decay, and random/zero endpoint remain explicit; seedocs/NativeTRGSWCompleteChannel.mdanddocs/NativeTRGSWRemainingHardProofs.md. -
FormalProof4FHE.TFHE.NativeTRGSWSpectralInfeasibilityresolves the statistical feasibility check conditionally in the negative. For native suffix-KSK rows it constructs the exhaustive typical-set decoder and proves failure at mosttau_E + (2^t-1)|Z| product_j (|E_j|/q). Adding correct-key BRK failure gives a full secret/message decoder, which forces every posterior Walsh radius above1-2 epsilonand the high-degree sum above the exact binomial count times that value. It also packages the one-batch heterogeneous affine assumption, restates the bounded-leakage square-root loss, formalizes the perfectly secure-marginals/fully revealing-joint xor counterexample, and proves the two-hop random-message/zero endpoint.FormalProof4FHE.TFHE.NativeTRGSWConcreteSuffixSeparationnow instantiates the KSK decoder at the native TFHEpp lvl10 layout: a top unit row separates centered-ternary suffix values by2^14, radius127gives row density255/2^16, and the complete 5516-row false-candidate term is at most2^-42710. Executable centered-binomial width at most 127 has zero tail, while the current C++ normal-distribution sampler still needs an exact finite-law tail certificate.FormalProof4FHE.TFHE.NativeTRGSWConcreteBRKRecoveryindependently closes the native lvl01 correct-key BRK decoder: the selected final-block top row carries codewords0and2^26, so every executable CBD BRK with2 eta < 2^26decodes its entire 630-bit control vector with exactly zero failure, for an arbitrary level-one ring secret. Thus the viable unresolved route is a joint aggregate computational theorem, not statistical spectral decay or further native decoder arithmetic. Seedocs/NativeTRGSWSpectralInfeasibility.md. -
FormalProof4FHE.TFHE.NativeTRGSWAggregateSecurityAndComplexityLeveragingreplaces the rejected absolute posterior tail by one canonical aggregate high-pass game. The Jordan decomposition ofdelta_0 - 2^-t K_{<=d}gives two exact finite probability tables; their Walsh gap is zero through degreedand1/lambda_dabove it, with1-N_{<=d}/2^t <= lambda_d <= (1+sqrt(N_{<=d}))/2. The resulting game gap is exactly the signed high-degree diagonal Fourier sum divided bylambda_d, so the native bridge needs only one efficient aggregate distinguisher rather than exponentially many coefficient reductions. A point-oracle witness preserves a nonzero aggregate gap, showing that this premise is not a black-box consequence of the low-degree source and endpoint. The full-key match-and-square theorem then bounds the aggregate advantage bysqrt(2 C_half(K) epsilon_RLWE), proves the square-root tilted fake-key law optimal within this argument, and derivesC_half(K)=2^t 3^rfor a uniform binary-prefix/ternary-suffix key. The final theorem includes complete-view construction defects and the zero-message endpoint. Thus the standalone aggregate assumption is reduced conditionally to a doubled full-key zero-row source, but instantiating that complete native constructor and removing the exponential concentration loss remain research problems; seedocs/NativeTRGSWAggregateSecurityAndComplexityLeveraging.md. -
FormalProof4FHE.TFHE.NativeTRGSWAggregateConcreteChannelnow instantiates the aggregate experiment with the actual complete native cloud-key kernel. It samples a uniform prefix, keeps the mask private, and generates the BRK plus correlated suffix KSK at messageprefix xor mask. Its acceptance is exactly the abstract weighted orbit mean. Exact Jordan point-mass samplers therefore give zero construction defect; proof-carrying ticket-table approximations contribute their two explicit total-variation defects. The final concrete theorem leaves only the low-degree affine certificate, the actual native aggregate advantage, and the endpoint as security premises. Reducing that concrete aggregate advantage to accepted full-key zero-row RLWE, and improving the exponential full-key concentration loss, remain research work; seedocs/NativeTRGSWAggregateConcreteChannel.mdanddocs/NativeTRGSWAggregateZeroRowHardProblem.md. -
FormalProof4FHE.TFHE.NativeTRGSWAggregateProjectedLeakageproves the projected-leakage extension and the corresponding limitation of natural zero-row builders. Public gadget translation constructs exact known-message native TGSW rows and erases the message exactly on a uniform source. For arbitrary deterministic leakageL, match-and-square costssqrt(2 C_half(L(K)) epsilon), with an explicit approximate-erasure variant. An inverse-weight witness proves that the diagonal concentration factor is exact. Finite Walsh inversion then identifies the common stabilizer of the canonical aggregate laws: it is trivial ford+2<=tand is even parity atd=t-1. Thus any exact phase-oblivious public-translation builder must recover the complete binary prefix in the usual cutoff regime, forcingC_half(L(K)) >= 2^t; at the exceptional cutoff it must still reveal full parity, forcing the exact residual boundC_half(L(K)) >= 2. A qualitatively nonlinear, KSK-synthesizing, correlated-source, or trapdoor simulator is not ruled out; seedocs/NativeTRGSWAggregateProjectedLeakage.md. -
FormalProof4FHE.TFHE.NativeTRGSWCompleteViewAuxiliarySourceimplements the row-only native complete-view simulator fromsketch/completeview.md. It forwards the genuine KSK and auxiliary transcript, proves exact diagonal native body/nonce translation for arbitrary real-view correlations, and proves exact positive/negative sign erasure when the uniform row block is sampled independently of that forwarded side state. The match-and-square loss is exactly the Renyi-half concentration of the prefix marginal—2^tfor a uniformt-bit prefix—with no suffix factor. The resulting aggregate and Fourier theorems retain the auxiliary-input CVZR bound as an explicit premise; they do not derive it from ordinary RLWE. Seedocs/NativeTRGSWCompleteViewAuxiliarySource.md. -
FormalProof4FHE.TFHE.NativeTRGSWCVZRReductionconditionally discharges that auxiliary-input premise using the construction insketch/CVZR.md. Known-suffix translation maps a complete prefix-RLWE zero-row block to full-key rows by one exact permutation, both abstractly over the ring and directly in the coefficient-form source representation. Signed coefficient extraction gives exactly uniform prefix masks and exact native affine KSK rows while retaining the complete joint extracted-error vector. Disjoint uniform source blocks make the two public constructor branches identical even though their common side output need not be genuine. The checked reduction provesAdv_CVZR <= 2 Adv_PreRLWE, exact equality with half the target advantage, the complete-view approximate bound, and the two-copy specialization. The remaining premises are a real-source public side builder with the genuine joint KSK/auxiliary law and prefix-subspace RLWE when the prefix is not full-dimensional. Seedocs/NativeTRGSWCVZRReduction.md. -
FormalProof4FHE.TFHE.NativeTRGSWCVZRConcreteInstantiationdischarges that generic side-builder premise for the literal native shared-prefix/suffix cloud key with coefficientwise CBD noise. An explicit index equivalence partitions every BRK and KSK row; whole-vector coefficient extraction gives the native scalar-CBD KSK law; whole-BRK transport is bijective; and deferred sampling identifies the resulting joint source view with the native zero-BRK/uniform-BRK views retaining the genuine KSK. The exact theorem isAdv_native-CVZR <= 2 Adv_prefix-subspace-RLWE, with the source reduction advantage exactly half the native gap and no row-count loss. Only the binary prefix-subspace RLWE hardness premise remains for this zero-row endpoint. Seedocs/NativeTRGSWCVZRConcreteInstantiation.md. -
FormalProof4FHE.RLWE.EvenSecretReductionandFormalProof4FHE.TFHE.NativeTRGSWCVZRParityPrefixgive the exact parity-layout alternative. A binary prefix in the even coefficients of a doubled ring splits into two ordinary half-degree binary-RLWE blocks with no loss or twist. The checked representation layer includes known odd-suffix transport, jointly uniform extracted KSK masks, the complete paired-CBD to scalar-CBD error law, and exact batched KSK extraction. Composing any exact parity CVZR compiler leaves2 * Adv_binary-RLWE, with source advantage exactly half of the CVZR advantage. The existing literal native compiler still uses its contiguous layout; a parity cloud-key carrier must instantiate the final compiler record. Secret-message nonce rows remain a separate cryptographic problem. Seedocs/NativeTRGSWCVZRParityPrefix.md. -
FormalProof4FHE.TFHE.NativeTRGSWQuadraticKDMAndTFHETformalizes the positive restricted quadratic-KDM route for those secret-message nonce rows. A nonce row is proved exactly equal to an RLWE row encrypting-h m S; complete nonce/body translation is a whole-BRK permutation on the uniform source; and public aggregation exposes-h E(P) S, specializing to-h S^2when the encrypted prefix is the full key. For the parity split, Lean proves the full even/odd product law, constructs one homogeneous full-ring row from two half-ring samples, and gives an explicit inverse establishing exact uniform transport. A direct source compiler maps real RLWE to the match-and-square experiment and uniform RLWE to its fair endpoint, so its advantage is exactly the complete-view source term without the extra CVZR branch-selection factor. The final bound issigma_real + sigma_zero + sqrt(2 C_half(P) Adv_half-RLWE), with exact generic sample accounting andC_half(P)=2^tfor a uniform binary control prefix. Heretis the number of BRK control bits, not a key-switch digit count. The exact joint BRK/KSK/auxiliary sampler law remains visible in the compiler record, and the parity key law is not asserted to be an implementation default. Seedocs/NativeTRGSWQuadraticKDMAndTFHET.md. -
FormalProof4FHE.TFHE.CircularSecurityMinimalAssumptionformalizes the minimal-assumption hierarchy for true self-key native TFHE. It proves exact public affine closure for an entire message-RLWE batch, including branch erasure on an exactly uniform batch and the resulting factor-two ordinary source bound. Public aggregation of native body rows gives a scaled encryption ofS, while negated nonce aggregation gives a scaled encryption ofS^2with the exact error sign. Complete-view coefficient-product and square experiments separate the self/independent correlation step from the independent/zero endpoint; triangle composition charges each correlation, endpoint, layout, auxiliary, sampler, and evaluator term once. Coefficient-product correlation implies square correlation under public projection, with no converse claimed. The correlation propositions are the intentionally exposed nonstandard cryptographic assumptions, not conclusions from ordinary RLWE. Seedocs/CircularSecurityMinimalAssumption.md. -
FormalProof4FHE.TFHE.NativeCircularSecurityInstantiationremoves the arbitrary-view gap from that theorem for the native shared-prefix construction. Its self, independent, and zero games are definitionally the concrete native BRK/KSK samplers; the self distribution is proved equal to the existing literal real cloud-key view. A second exact experiment attaches a prescribed encryption-prefix-dependent payload or auxiliary transcript, so the base ciphertext challenge can live in the same public view. The compact theorem isAdv_native <= epsilon_correlation + epsilon_standard: the standard term bundles independent-message hiding and the final zero endpoint. Only the concrete diagonal-to- independent correlation bound remains nonstandard. Seedocs/NativeCircularSecurityInstantiation.md. -
FormalProof4FHE.TFHE.NativeTRGSWHashCompressedSecurityformalizes the two routes for avoiding the full-prefix2^tmatch-and-square factor. For any fixed balanced publicr-bit hash, the projected leakage concentration is exactly2^r, giving the checked conditional boundsigma_plus + sigma_minus + sqrt(2^(r+1) sourceBound). The builder type exposes only the digest and public source view, and the dual-mode theorem adds both mode switches and the sampler defect. Conversely, the aggregate-stabilizer theorem proves that no shorter balanced hash can drive the existing exact phase-oblivious translation builder at the usual cutoff. The module also proves the acyclic block-cycle telescope, its exact source-exponent budget, vector-LWE XOR transport, and the native ring scalar-affine obstruction. Constructing the complete-view hash-lossy mode remains an explicit cryptographic premise. Seedocs/NativeTRGSWHashCompressedSecurity.md. -
FormalProof4FHE.TFHE.NativeTRGSWHashLossyCompleteViewformalizes the complete theorem package for the hash-lossy proposal. A surjective linear hash has an executable uniform-fiber resampler; its complete-view law factors exactly through the digest, and for an independent uniform prefix its unconditioned marginal is exactly the ordinary marginal. For a public balancedr-bit hash family, the averaged conditional concentration is2^r. Approximate source erasure givessqrt(2^r * (2 sourceAdvantage + erasureDefect^2)), while exact erasure recoverssqrt(2^(r+1) sourceAdvantage); the final theorem adds both mode switches and one sampler defect. Exact phase-oblivious translation forcesr >= t, approximate translation has defect at least1/(4 lambda_d), and an information-theoretically digest-factorized view allows prefix decoding with probability at most2^(-(t-r)). The last fact yields the statistical mode-switch lower bound by total-variation data processing. The computational joint BRK/KSK/auxiliary dual-mode generator remains an explicit unresolved premise. Seedocs/NativeTRGSWHashLossyCompleteView.md. -
FormalProof4FHE.TFHE.NativeTRGSWProofDualModecompletes the finite synthesis requested bysketch/proofdualmode.md. A source-independent constructor is proved unable to provide a nontrivial source reduction: its two target branches are within the two diagonal defects plus the reference erasure defect. The full five-edge native/ordinary/lossy hybrid now displays both ordinary-fidelity terms, both computational mode-switch terms, both diagonal defects, one sampler defect, and the exact public-hash termsqrt(2^r * (2 sourceAdvantage + erasureDefect^2)); exact erasure givessqrt(2^(r+1) sourceAdvantage). A generic fiber-collision theorem also proves that adding a nonconstant native nonce KDM message to a digest-factorized hidden-rank residual destroys exact digest factorization. This isolates the nonce-row obligation without claiming the missing computational BRK/KSK/auxiliary dual-mode generator. Seedocs/NativeTRGSWProofDualMode.md. -
FormalProof4FHE.TFHE.NativeTRGSWAggregateRobustLeakagereplaces the worst-case low-frequency multiplier by the exact support-sensitive sumsum_(j=1)^d choose(t,j) delta_j, including approximate aggregate samplers and the endpoint. Applied to the existing affine-source certificate, its concrete term issum_(j=1)^d choose(t,j) sqrt(2^(j+1) delta), paying the actual support size rather than the cutoff in every summand. It also makes the projected-leakage barrier quantitative. If a nonzero prefix collision flips a retained Walsh character, the two Jordan translation defects satisfy2 <= lambda_d (D_plus + D_minus). Consequently, if every plaintext construction hasL1defect at mostetaand4 lambda_d eta < 2, equal deterministic leakage still forces equal prefixes. Randomized leakage has the same pointwise support-separation threshold, while its pairwise overlap is bounded by the four average construction defects. Thus negligible approximate correctness or stochastic leakage does not evade the natural-builder barrier; seedocs/NativeTRGSWAggregateRobustLeakage.md. -
FormalProof4FHE.TFHE.NativeTRGSWHardTheoremCompositionformalizes the theorem implications in the remaining hard-TRGSW note without asserting the missing cryptographic constructions. A public complete-view positive/negative compiler gives the exact one-shot tail bound2 lambda_d epsilon_source + lambda_d (rho_plus + rho_minus + rho_U), and2 lambda_d <= 1 + sqrt(N_{<=d})exposes polynomial loss for fixed cutoff. The distribution-aware constrained-batch premises imply their full BRK/KSK bound with each branch defect counted once; two appropriately scaled ternary preimages yield an explicit nonzero kernel vector with coefficient boundB+1, making the SIS obstruction concrete. The approximate-recovery lemma also provesC_half(L) >= |P| (1-beta)^2from decoder success1-beta. The hidden ordinary/lossy-mode premises compose by the exact five-hop hybrid, including the finite-sampler defect. Finally, the one-shot reduction is combined with the support-sensitive affine-source sum and endpoint. The public aggregate compiler, short noise-compatible factorization, and witness-independent hidden lossy mode remain the genuinely hard objects; seedocs/NativeTRGSWHardTheoremComposition.md. -
FormalProof4FHE.TFHE.Circular.circularAdvantage_le_replacementsformalizes TFHE's actual heterogeneous evaluation-key cycle and splits real-to-zero cloud-key replacement into the bootstrapping-key and key-switching-key hops.fullAdvantage_le_circular_add_zeroKey_add_circularandfullHardAgainst_of_circular_and_zeroKeythen compose contextual circular security on both challenge branches with payload security in the zero-message cloud-key game. -
FormalProof4FHE.TFHE.Native.nativeCycleSpecinstantiates that cycle with concrete finite-modulus TLWE/TRGSW layouts: one TRGSW ciphertext per scalar-key bit and one direct TLWE row per extracted ring-key coefficient and gadget level.TFHE.Encryptiondefines the adaptive symmetric one-time IND-CPA game in which messages are chosen after the cloud key is visible. -
FormalProof4FHE.TFHE.TGSW.encrypt_evalDist_eq_directEncryptproves thatZ + message * Hhas exactly the distribution of fresh direct module-LWE rows carryinggadgetPhase; there is no statistical or hybrid loss.gadgetPhase_castSuccandgadgetPhase_lastidentify the messages as bilinear-(ringKey_j * (scalarBit * gadget_l))in mask blocks and affinescalarBit * gadget_lin the final block.TFHE.TGSW.CircularBoundary.gadgetPhase_eq_affine_add_crossrecords this as an exact affine-plus-cross-key decomposition and proves that the cross-key part vanishes at the zero-message cut.continuationBootstrapReplacementAdvantage_eq_directBilinearlifts this equality through the real key-switch key and every downstream continuation.DirectBilinearHardAgainstis the exact concrete circular-security interface; the library does not claim that ordinary LWE/RLWE proves this KDM assumption. Seedocs/TFHECircular.mdfor the boundary and roadmap.TFHE.TGSW.MonomialKDM.scaledProduct_not_affinenow proves that a nonzero mask-block gadget product cannot be affine in the two native key coordinates. The growing centered-binomial family proves its first concrete TGSW gadget coordinate nonzero and specializes that obstruction innativeMaskBlockPhase_not_affine, so the nonlinear boundary is non-vacuous for the exact parameters used by the security theorem. The stronger binary-support theorem permits arbitrary affine coefficients on every bit of both complete native key vectors and still rules out the selected cross coordinate. The full-support specialization additionally embeds an arbitrary binary ring polynomial and proves the complete selected mask-block function non-affine in every ring-key coefficient and scalar-key bit, matching the input model of affine LWE-KDM results. Conversely,gadgetPhase_eq_expandedGadgetPhasefactors the complete normalized phase through the explicit degree-two coordinatesringKey_j * scalarBit_i, after which every row message is a public linear projection and gadget scaling. The resulting monomial BRK sampler is exactly—not merely statistically—equal to the direct native sampler, andAsymptotic.MonomialKDM.adaptiveSecurityGame_secureAgainst_iff_directBilinearlifts this identification to polynomial-query adaptive families. This matches the algebraic monomial-lift viewpoint of Brakerski--Goldwasser--Kalai while explicitly not importing their transformed encryption scheme's KDM theorem into native TFHE. In particular, the native assumption is not security for an arbitrary degree-two polynomial KDM family. It is only the fixed outer-product tableringKey_j * scalarBit_i, at the public gadget scales and row positions used by TRGSW. AddingscalarBit_i * gadget_lto a uniform mask (nonce) coordinate does not remove that product: after renaming the translated mask toa', the corresponding body has phaseb - <a', ringKey> = error - scalarBit_i * gadget_l * ringKey_j. Thus nonce placement explains the restricted monomial shape, but it does not reduce the intact narrow-noise BRK to affine KDM or ordinary RLWE.TFHE.TGSW.MonomialKDM.FullTable.phase_selfMaskRowCombination_eqfurther records the joint-table qualification: one GSW entry is rank one, but a complete self-BRK contains every pairwise monomial. A public linear combination of its fixed-level mask rows has phase equal to any weighted quadratic form plus the exact combined row error. The native specializationFullBRKQuadraticSpan.extractedOuterProduct_coefficientchecks coefficient by coefficient that the ring-valued table contains the corresponding Boolean products. Hence the native game is narrower than a general adaptive quadratic-KDM oracle, while still spanning all static quadratic forms once the full self-key table is public. The Boolean refinementselfQuadraticForm_embedBinarySecret_eq_diagonal_add_offDiagonalsplits every such form exactly into an affine diagonal term, usings_i^2 = s_i, and a square-free off-diagonal term containing onlys_i * s_jfori != j. The matching phase theorem tracks the same split together with the exact combined row error. Thus the irreducible nonlinear premise is smaller than general degree-two KDM, but it still contains every off-diagonal pair exposed by a practical full BRK.CoefficientAffineCircularRLWEnow checks the missing qualification. Its bundledcoefficientTransferis the elementary coefficient-linear mapE_(i,i), andcoefficientEquiv_diagonalCrossAtDegree_rankOneproves that the actual native diagonal cross coordinate is exactly this projector.rightNegacyclicMulLinearproves that subsequent public gadget multiplication is coefficient linear, and the mask/body product theorems identify the native terms respectively withrightMul ∘ E_(i,i)andrightMul ∘ E_(0,i). In every nontrivial coefficient ring and ring degree at least two,nativeFirstDiagonalCross_not_ringMultiplicationOnBinaryproves that no fixed public negacyclic polynomial realizes the underlying projector by multiplication, even only on Boolean secrets. Thus the diagonal lies in a precisely defined coefficient-affine structured-LWE class, but the ordinary rank-one RLWE challenge translation cannot discharge it. A compatible coefficient-linear/circulant circular theorem is still required. The same module packages the exact diagonal-only BRK versus zero-BRK experiment as a fixed-auxiliary-input circular-RLWE problem retaining the real shared KSK. Its real and zero games are definitionally the existing cloud-key games, and the checked refined bound isAdv_one-cycle <= Adv_square-free + Adv_coefficient-affine-CircRLWE + Adv_zero-BRK-LWE. The native shared-randomness one-cycle game now has the matching exact game split.SharedRandomnessOneCycle.SquareFreeSecurity.generateBootstrappingKey_evalDist_eq_splitrewrites the honest BRK as diagonal plus square-free phases without changing its distribution, andoneCircularAdvantage_le_squareFree_add_diagonalprovesAdv_one-cycle <= Adv_square-free + Adv_diagonal. The first term removes exactly the fixed distinct-coordinate outer-product table; the second removes the remaining coefficient-affine diagonal table. This is the precise restricted premise to attack—neither arbitrary degree-two KDM security nor an unqualified appeal to ordinary RLWE is inserted.BlockBinarySelfCircularspecializes this boundary to a true same-key bootstrap without IKS. It packs the compact one-hot block key into one rank-one ring key and proves that every same-block off-diagonal product is zero, so the nonlinear table contains cross-block pairs only. The exact identity is lifted through the full native BRK and an arbitrary same-key auxiliary-input view with no KSK field. Its final bound is cross-block fixed-table security plus diagonal coefficient-affine security plus an explicit zero-BRK endpoint. The implementation's inclusive raw block choice, where the last value denotes zero, is also proved to be a coordinate-preserving uniform permutation of the proof representation, where zero is encoded by the first value.BlockCategoricalSelfCircularadds the proof-only categorical completion requested byblock_categorical_self_circular_tfhe.tex. Literal table reindexing gives exact category equivariance. An explicit finite count proves the wrong-candidate kernellambda I + (1-lambda)Jwithlambda=(L-1)^(-2), and the checked predictor loss is(L-1)^2/(L-2)forL>=3. The block telescope and contextual squared-bias bridge yieldcoefficient(L) * sum_b sqrt(2 L epsilon_ctx,b)plus the CVZR, correlated-zero, and sampler endpoints, with noL^kfactor. Sample extraction is a signed permutation, and an explicit barycentric equivalence certifies the original simplex action over every finite carrier. The future-leakage theorem is formalized with the pairwise-separation premise actually needed for recovery; the manuscript's single separated pair is insufficient. The contextual native-source hardness remains an explicit research premise. Seedocs/BlockCategoricalSelfCircular.md.BlockCategoricalHashCMUXSelfCircularformalizes the hash-CMUX extension. Lean checks the literal complete-batch sanitizer phase, exact mask rerandomization jointly with arbitrary retained context, canonical fresh-encryption data processing from the joint context/error law, conditional finite-box and Mahalanobis smudging, and exact wrong-candidate uniformization of the complete mask/body carrier. It also proves equal-cardinality finite-support TV, the exact centered-interval overlap count, literal Cartesian-box overlap factorization, the product-box/L1 bounds, decoding-box correctness, and the covariance obstruction to returning to an already saturated native narrow covariance. The hash predictor pays one digest-cardinality factor on top of contextual leakage removal; for anr-bit balanced hash its exact coefficient is2^r * sqrt(2^(r+1)), whose square is2^(3r+1). The direct projected dual-mode route retains onlysqrt(2^(r+1) epsilon_projected). The TeX formula using denominator2*(rho-B)+1requires an attained/closed boundary choiceR=rho-B; it does not follow from the manuscript's strict conditionB+R<rho, so Lean keeps the actualRin that case. Encrypted equality, discrete/rounded/wrapped Gaussian approximation, a source-to-secret-message-BRK compiler, and contextual/projected source hardness remain explicit premises. Seedocs/BlockCategoricalHashCMUXSelfCircular.md. The same split now holds for the stronger secret-dependent continuations used by the adaptive encryption experiment, not merely for public cloud-key distinguishers. The asymptotic theorem composes it all the way through reusable encryption and arbitrary public deterministic FHE evaluation:Adv_TFHE <= Adv_square-free-table + Adv_coefficient-affine-CircRLWE + Adv_batch-LWE. Thus the former generic circular-RLWE premise has been eliminated from the theorem statement, while the two exact native research assumptions have not been claimed to follow from ordinary LWE or RLWE. A separate security-only route now removes both native circular components statistically for a sufficiently shift-tolerant certified discrete-Gaussian BRK sampler. Each exact TGSW gadget phase is moved into its independently sampled body error; data processing and the finite-product hybrid charge one additive translation distance per native BRK row. This is proved for the complete self-key message and arbitrary secret-dependent continuations, so it simultaneously covers the diagonal and square-free tables. Polynomial layout growth and negligible certificate error together with negligible(q/2)/(window+1)make the complete real-versus-zero KDM loss negligible. The generic finite-group averaging theoremFiniteProduct.tvDist_uniform_le_of_addShiftDistance_leadditionally proves that a never-failing sampler stable under every additive shift is close to exact uniform. Applied to the same certified Gaussian, it removes the zero-BRK endpoint as well. The strongest adaptive encryption and public-evaluation theorems therefore retain only ordinary batch LWE, with no circular/KDM or auxiliary zero-BRK hardness premise. This does not claim correctness: the necessary Gaussian width may be too large for bootstrapping correctness.SharedRandomnessOneCycleConcreteWideGaussianSecuritynow instantiates every numerical premise. It takesq = (2N)^(lambda+1), relative Gaussian widthalpha = 2^lambda, hence integer standard deviationq * 2^lambda, and uses the same quantity as the universal translation window. A rounded finite ticket table with denominatorq * (q+1) * 2^lambdahas compilation error at most2^-lambda; the modulus-scaled inverse-window term is also at most2^-lambda. The checked polynomial layout absorbs both losses. Consequently the literal real-self-BRK KDM game, its adaptive form, full reusable-key encryption, and arbitrary public deterministic FHE evaluation are secure assuming only ordinary query-counted batch LWE. The rounded table is currently a noncomputable existence witness, and this deliberately enormous noise is not claimed to preserve TFHE correctness or yield a practical implementation. The supplied GSW papers do not close either term. The original GSW paper proves its leveled scheme from LWE but explicitly invokes circular security for bootstrapping. Gay--Pass prove non-circular shielded-randomness-leakage security of GSW from LWE, while their encrypted-key cycle is a separate 2-circular SRL conjecture. The current GG-GSW manuscript explicitly marks its principal IND-CCA1 proof as incorrect, so it is not used as a circular-security reduction.LWE.AuxiliaryInputnow adds the PKC 2024-style real/zero/uniform fixed-side-information interface.TFHE.MonomialKDMAuxiliaryInputinstantiates it with the exact paired native keys, monomial BRK, uniform native BRK type, and retained real KSK; its real and zero games are definitionally the existing monomial games. The two triangle bounds prove that native monomial-KDM and real-versus-uniform auxiliary-input CircLWE are equivalent modulo the explicit zero-message-versus-uniform side-information term for arbitrary continuations. The equivalence is lifted to adaptive negligible-function games byAsymptoticAuxiliaryInputCircularLWE.TFHE.AuxiliaryInputZeroSecuritythen handles the continuations induced by query-bounded adaptive TFHE adversaries: a zero BRK with uniform ring errors is exactly uniform, and a fair hidden-bit intermediate bounds the zero-side term by the actual-BRK-context and uniform-BRK-context joint-LWE games. Equal scalar noises flatten both exactly to ordinary binary-secret batch LWE. Thus this zero-side obligation is no longer an independent assumption, while real-versus-uniform auxiliary-input CircLWE remains the named circular assumption; no ordinary LWE/RLWE reduction for that remaining game is claimed.TFHE.ScalarSecretRandomizationproves the next search-to-decision prerequisite for the executable centered-binomial model: every fixed binary mask transports the scalar key through both native evaluation-key components, and the same public bijection preserves the joint real BRK+KSK and uniform-BRK+real-KSK endpoint distributions exactly. Sampling the mask uniformly is further proved to yield a fresh uniform scalar key and its corresponding view, with the ring key held fixed. The TGSW step uses exact centered-binomial negation symmetry, while the KSK affine transform preserves its errors.LWE.AuxiliaryInputSearchandTFHE.AuxiliaryInputCircularSearchdefine exact paired-secret recovery from the public BRK+KSK view and prove that experiment equal to the existing native monomial real game; the scalar-mask coupling is connected directly to this search view.TFHE.ScalarMaskCandidateViewnow audits that coupling in the actual coordinate-recovery experiment: after averaging over the uniformly sampled native scalar and ring keys, every fixed public scalar mask preserves the complete real BRK+KSK endpoint exactly. It packages the result as an averaged candidate transformer with zero correct-view error and wrong-view error exactlyTV(realPublicView, uniformPublicView). Because this transform ignores the candidate,candidateCheckGap_toCandidateCheck_eq_zeroproves that postcomposition with any public distinguisher has candidate gap exactly zero. Thus scalar rerandomization is a checked prerequisite, but cannot by itself replace a candidate-dependent freshness step.TFHE.KeySwitchCandidateRandomizationandTFHE.KeySwitchFirstCandidateViewnow close one exact candidate-dependent route on the opposite edge of the cycle. They add a fresh vector to one scalar-coordinate row of every KSK challenge and add the proposed bit times that vector to the bodies. The true bit preserves the complete real KSK distribution; for the opposite bit, the embedded difference is+1or-1, so an explicit inverse proves that the complete KSK is exactly uniform over every finite commutative ring. Keeping the real BRK fixed, the resulting candidate gap equals the real-BRK/real-KSK versus real-BRK/uniform-KSK decision advantage. The existing coordinate union bound and centered-binomial KSK decoder then give a checked paired-secret recovery lower bound.TFHE.KeySwitchFirstSearchToDecisionpackages this endpoint as a generic auxiliary-input problem with the KSK as challenge and the real BRK as side input. It proves that swapping the sampling and argument order preserves both public games and native paired-search success, then constructs a checkedReduction. Its additive loss is exactlymax 0 (advantage - oneShotLowerBound.toReal), so native paired-search hardness transfers to KSK-first decision hardness without concealing the coordinate union-bound deficit. This is a complete one-shot KSK-first search-to-decision certificate, but its loss is not claimed negligible at production dimensions. It does not make the BRK uniform, prove the original BRK-first auxiliary-input CircLWE endpoint, or derive circular search hardness from ordinary LWE/RLWE.Probability.MajorityAmplificationandTFHE.KeySwitchFirstFreshViewnow provide the stronger fresh-view route needed to improve that loss. A generic whole-vector theorem repeats independently sampled trials inside each majority tree while keeping one hidden-key fiber; it charges∑ᵢ amplifiedErrorᵢplus oneaverageFiberError / thresholdterm, rather than paying the same bad fiber once per coordinate. For native TFHE, an opaque sampler handle returns fresh BRK+KSK views under one fixed key pair. The fixed-secret candidate laws prove that every scalar coordinate has the same conditional error, whose average is exactlyofReal((1 - keySwitchDecisionAdvantage)/2). Centered-binomial KSK completion then preserves amplified paired-key success exactly, and fresh-view search hardness transfers with an explicit schedule-dependent loss. This premise is deliberately named separately: no theorem identifies fresh-view search hardness with single-evaluation-key search hardness or ordinary LWE/RLWE.TFHE.KeySwitchFirstFiniteViewremoves the unrestricted-query ambiguity for the concrete reduction. At one common amplification depthr, its paired-search challenge samples exactlylweDimension * 3^r + 1independent native BRK+KSK views under one hidden key pair: one ternary majority tree per scalar coordinate and one final KSK for ring-key completion. A deferred- sampling theorem proves that the finite-batch solver has exactly the fresh-view solver's output distribution, and finite-batch search hardness transfers to KSK-first decision hardness with the same explicit loss. This makes the stronger premise finite and auditable, but does not derive multi-view native circular-search hardness from ordinary LWE/RLWE or from one evaluation key. The KSK-first cloud-key composition is also checked end to end. It follows the exact hybrids real/real, real/uniform-KSK, zero/uniform-KSK, and zero/zero. Uniform scalar errors make a zero-message KSK exactly uniform, so the two post-search hops reduce to two conventional ring batch-LWE advantages and one conventional scalar batch-LWE advantage. The resulting theorem derives native cloud-key circular security from finite-batch paired-search hardness, its explicit amplification loss, and those ordinary LWE assumptions. It does not silently promote the bounded multi-view search premise to ordinary LWE/RLWE, and it does not yet include a secret-dependent adaptive encryption transcript.LWE.AuxiliaryInputSearchToDecisionthen formalizes a quantitative paper-aligned boundary: narrow and widened views, probabilistic shifted evaluation/smudging with one explicit TV loss, a public-distinguisher-to-search-solver certificate, and the additive hardness transfer theorem.TFHE.AuxiliaryInputSearchToDecisioninstantiates the scalar randomizer with zero loss.TFHE.KeySwitchRecoveryproves that a known scalar key recovers every extracted ring-key bit from any supported centered-binomial real KSK under an explicit gadget margin, andTFHE.AuxiliaryInputPairedRecoveryproves exact equality of scalar-only and completed paired-search success. ConsequentlyScalarSecretReduction.toPairedSecretReductionconstructs the full paired certificate without extra loss.TFHE.ScalarCoordinateRecoverythen constructs a scalar solver from randomized per-coordinate tests and proves the whole-key error boundPr[failure] ≤ ∑ᵢ εᵢwithout assuming independence of the shared public view.CoordinateSecretReduction.toScalarSecretReductionconnects that theorem to the existing scalar boundary.Probability.BinaryGuessChecknow gives the executable per-coordinate tester and proves its exact one-shot error formula.CandidateViewTransformerisolates the native scheme law needed by that tester: the correct candidate must transform the correlated view to a fresh real BRK+KSK view, while the wrong candidate must produce uniform BRK plus real KSK. Under those laws the coordinate error is exactly(1 - publicAdvantage) / 2, andCandidateViewTransformerReduction.toScalarSecretReductionpackages the conditional one-shot path to scalar recovery.Probability.MajorityAmplificationadditionally implements an executable majority-of-three tree with exact error recurrencee ↦ e²(1 + 2(1 - e)). Its shared-context theorem samples BRK+KSK once and is therefore driven by a support-wise conditional error bound.TFHE.PointwiseCandidateViewstates that law and now proves its overlap obstruction: if the same fixed public context supports both hidden bits, the statistical real/uniform distance is at most the sum of the two claimed pointwise errors.TFHE.AveragedCandidateViewrecords the strictly weaker averaged law and proves the sound threshold fallbackamplifiedError(rounds, τ) + averageError/τ; the second term prevents an averaged gap from being misused as per-context freshness. The widened reduction now carries that thresholded error through the scalar-key union bound, exact centered-binomial KSK completion, and final search-hardness transfer. Meanwhile,TFHE.WidenedAuxiliaryInputSearchToDecisioncompletes the narrow-centered-binomial to arbitrary- wide-sampler accounting: it subtracts the two conditional TV errors from the target decision advantage, amplifies coordinatewise, applies the union bound and KSK completion, and exports the final additive hardness transfer theorem. The averaged transformer now also exposes a strictly one-shot endpoint. Its executable tester predicts one selected scalar-key coordinate from one narrow augmented(BRK, KSK, tape)view, and the checked finite inequality ispublic augmented CircLWE advantage <= selected-coordinate prediction bias + correct-view error + wrong-view error.There is no repetition, threshold, bad-context division, coordinate union bound, or correctness premise in this theorem. The asymptotic lift turns negligible prediction bias and negligible selected-coordinate statistical errors into public augmented CircLWE security. This is the preferred security-only boundary when the averaged whole-key amplification loss cannot be shown negligible. The exact scalar-key randomizer does not invalidate that caution: it holds the ring key fixed and transports one sampled cyclic evaluation-key view, rather than sampling independent full BRK--KSK contexts. The unused effective-gap premise has therefore been removed from the averaged reduction interfaces; the pointwise amplifier retains its genuinely needed support-wise gap hypothesis.
TFHE.ConditionalSmudgingproves pointwise TLWE/TGSW body-smudging bounds for any executable finite wide sampler.TFHE.NativeConditionalSmudgingsums the translation costs across the exact native BRK+KSK layout.TFHE.NativeResidualCandidateViewturns exact correct/wrong residual normal forms into the complete pointwise transformer automatically and now also has a genuinely averaged residual certificate: the normal-form laws need hold only after sampling the original hidden bit and public context, while support-wise fresh-evaluation residual costs are integrated soundly. Its reduction adapter carries those averaged laws through thresholded amplification, the scalar-key union bound, exact KSK completion, and narrow-search hardness.TFHE.AsymptoticNativeResidualCandidateViewlifts the resulting inequality to negligible- function games: public CircLWE advantage is bounded by generated paired-search success plus the explicit residual/amplification loss. It also proves exact equality with the existing native CircLWE carrier on continuations that ignore both secret arguments. The growing centered- binomial family selects KSK gadget level one, proves its centered distance is exactly2N, discharges the width-λ+1recovery margin, and exports the corresponding public CircLWE and public-continuation monomial-KDM security theorems.TFHE.InternalProductnow defines native rowwise TGSW internal product and CMux and proves their exact phase/residual normal forms: data-row error, decomposition residual, weighted control-row error, and (for CMux) the retained false-branch error are all explicit. These algebraic theorems now also prove complete-ciphertext zero/one endpoints: exact gadget decomposition reconstructs the whole TLWE row, and CMux is the selected branch plus one explicit homogeneous-control internal product. They deliberately make no distributional freshness claim about that perturbation. The scalar-only audit proves that masking without candidate-dependent evaluation has exactly zero candidate gap.TFHE.NativeShiftedCandidateEvaluatornow implements the construction-specific step itself: it toggles the selected TGSW control by the candidate, exactly decomposes every branch difference, applies native CMux pointwise to a complete BRK, and canonically writes every arbitrary public BRK as its declared binary gadget message plus a homogeneous remainder. It proves an exact correct-candidate phase law whose residual is the actual digitized-CMux computation, with no structural-generation premise. It also proves, as equalities of complete ciphertexts, that every correct whole-BRK output is its source entry plus the named internal- product perturbation and every wrong output is its fresh branch entry plus that perturbation. The proof includes the explicit coherence bridge between the executable and proof-facingRqoperation dictionaries.TFHE.NativeAdaptiveShiftedCandidateEvaluatorsamples a uniform scalar mask and uniform true-branch BRK, transports the complete(BRK, KSK, tape)context and candidate coherently, and fixes this executable map in its certificates with no abstract transform field. The exact uniformized experiment is now proved equal to the existing uniform public view, including the transported KSK and adaptive tape. Conditioning the selected mask coordinate on a requested target bit is proved to be an exact reparameterization of the original uniform mask, and the equality remains exact after adding the independent uniform true-branch BRK. This gives a total concrete sampler for the computed correct-branch residual, together with its rowwise phase theorem, at zero conditioning loss. Pointwise branch bijectivity is retained as an exact sufficient condition, while the usableDirectStatisticalCertificatecharges the actual mask-averaged branch-map TV distance and therefore permits rare rank loss. It also exposes the concrete evaluator's averaged correct-view distance directly, so security does not depend on an unjustified fixed residual representation.SampledResidualCertificatesupplies the preferred smudging route: evaluator coins may sample a residual correlated with the fresh secret, and explicit totality plus a support-wise translation bound imply the direct correct-view distance. The deterministicStatisticalCertificateis proved to be its probability-one special case. The fully fixedConcreteStatisticalCertificatenow splits the only remaining evaluator losses into output-mask/error-law freshness for that concrete residual experiment, support-wise smudging, and the mask-averaged wrong-branch distance.TFHE.NativeShiftedResidualBoundsnow identifies the correct residual exactly as one retained source-row error plus the digit-weighted error of the zero-message control. Secret-bit toggling preserves every control-row error up to sign, so it creates no second support obligation. The executable digit and convolution bounds give both a sharp centered-binomial budget for coupled keys and a soundq / 2fallback for an independent fresh-secret boundary.TFHE.NativeShiftedDiscreteGaussianBoundsconverts either budget into a coefficientwise translation bound for the certified modular discrete-Gaussian sampler and dischargessmudgingCost_lesupport-wise for the concrete residual sampler. Its sharper route costs, per scalar coefficient, twice the sampler-certificate error plus the residual bound times a single integer-Gaussian unit-shift TV distance; the latter is exactly the mass at zero and has the checked finite-window boundexp(1/2)/(W+1). It does not sum over all bounded residues.TFHE.AsymptoticNativeShiftedDiscreteGaussianBoundsnow proves that this complete correct-side loss is negligible when the native dimensions, gadget, and residual grow polynomially, the ticket-certificate error is negligible, and a checked window of size2^λfits belowαq. It also proves closure under a negligible normal-form error and polynomially many uses. The growing centered-binomial dimensions have a concrete polynomial growth witness, while the theorem explicitly does not claim that their present polynomial modulus supports the exponential Gaussian window. The universal bound is intentionally conservative. The coupled endpoint now retains the complete source key pair, regenerates only the residual-bearing BRK under the masked scalar key, proves that its monomial comparison is exactly the ordinary augmented real view, and carries the sharpetaenvelope through averaging. Its direct-certificate adapter leaves only output-mask/error-law freshness and the wrong-branch law as construction premises. The remaining BRK-first construction work is therefore output-mask/error-law freshness, a parameter family compatible with the exponential smudging window, the canonical one-control wrong-branch estimate, and narrow paired-search hardness. The public augmented route now carries the complete bounded input tape as auxiliary input instead of passing either hidden key to a continuation. Exact XOR transport preserves the real and uniform-BRK endpoints, and the actual adaptive real-to-zero hop is exactly this public augmented KDM game. Its zero branch is discharged by two ordinary joint-LWE games, so public augmented CircLWE is the sole circular premise in the finite and asymptotic adaptive theorems. The retained KSK also completes any augmented scalar solver to paired-key recovery with no loss under the centered-binomial decoding margin. The augmented candidate-view frontend now averages over the complete(BRK, KSK, tape)source, applies the sound threshold/bad-context amplification bound, unions all scalar-coordinate errors, and feeds exact residual-smudging normal forms into paired recovery. What remains is to prove the concrete native evaluator's output-mask/error-law freshness for the explicit perturbation, bound the canonical-control statistical rank/freshness distance and residual loss negligibly, and supply augmented paired- search hardness. No secret-aware batching or ciphertext-algebra bridge remains. The exact KSK-first alternative above isolates the obligation to the other edge rather than leaving both coordinate transformations open. -
FormalProof4FHE.TFHE.Native.BootstrapCutSecurity.cutBootstrapReplacementAdvantage_le_two_batchModuleLweproves the complementary post-cut result: with the KSK messages already zero, replacing the native BRK by zero-message rows costs at most two ordinary parallel binary-secret module-LWE advantages. Sampler regrouping and uniform gadget translation are exact.TFHE.Encryption.CutCycleSecurity.oneTimeCutBootstrapReplacementAdvantage_le_two_parallelModuleLwecarries the same result through the adaptive one-time challenge. Together with the existing KSK-after-zero-BRK reduction, both second hybrid hops are standard LWE/module-LWE; only the intact-cycle first hop remains circular.LWE.ParallelBatch.advantage_eq_batchsubsequently flattens those equal-size batches exactly, andcutBootstrapReplacementAdvantage_le_two_batchModuleLwestates the final result using two conventional binary-secret ring batch-LWE problems withlweDimension * TGSW.rowCountsamples.TFHE.Circular.continuationCircularAdvantage_le_keySwitchFirst_add_bootstrapAfterformalizes this opposite ordering in the common game layer. The two...add_postCutstheorems and their concretekeySwitchFirstReplacementAdvantage_le_directBilinear_add_postCutLweconverse pair prove that BRK-first direct-bilinear KDM and KSK-first intact-cycle security are equivalent up to the checked post-cut LWE terms.Encryption.Adaptive.CutCycleSecurityproves the same converse pair for the complete sequential oracle, andAsymptotic.CutCycleSecurity.adaptiveFirstHop_secureAgainst_ifflifts it to negligible polynomial-query adversary families. The alternative-order end-to-end result isabs_signedAdvantage_real_le_keySwitchFirst_add_two_batchModuleLwe_add_jointLwe.NativeIntactCycleKDMHardAgainstnames that exact scheme-specific first-hop premise, andoneTimeHardAgainst_of_nativeIntactCycleKDM_and_batchLwecomposes it with explicit hardness bounds for both conventional ring batch-LWE reductions and the zero-cloud joint-LWE reduction into an adversary-class one-time TFHE security theorem. In the equal-noise setting,oneTimeHardAgainst_of_nativeIntactCycleKDM_and_standardBatchLwe_same_noiseleaves only the named circular premise plus three conventional batch-LWE assumptions. -
FormalProof4FHE.TFHE.Encryption.Security.abs_signedAdvantage_real_le_bootstrap_add_jointLweproves the one-time TFHE encryption bound. The honest advantage is at most the contextual structured-TRGSW bootstrapping-key replacement cost plus one heterogeneous shared-secret binary-LWE advantage containing every key-switch row and the fresh challenge row. If key-switch and input errors use the same sampler,abs_signedAdvantage_real_le_bootstrap_add_batchLwe_of_same_noisereduces that term exactly to ordinary binary-secret batch LWE with((ringRank * degree) * keySwitchLevels) + 1samples. Distinct noise samplers remain explicit unless a relation is supplied.abs_signedAdvantage_real_le_bootstrap_add_batchLwe_of_input_convolutionproves that when the input error is the KSK error plus a total independent widening sampler, the same ordinary batch-LWE conclusion holds with the KSK error distribution. The underlying generic theorem isLWE.TwoBlock.heterogeneous_advantage_eq_batch_of_convolution.oneTimeHardAgainst_of_directBilinear_and_jointLweand its equal-noise batch-LWE specialization compose explicit bounds for both remaining assumptions into a complete conditional one-time TFHE security theorem for an arbitrary reduction-closed adversary class. -
FormalProof4FHE.TFHE.Encryption.MultiQuery.abs_signedAdvantage_real_le_bootstrap_add_jointLwelifts the same native game to a fixed batch ofqueryCountleft-or-right challenges selected after the cloud key is visible. The whole vector uses one hidden challenge bit and one scalar key. Its reduction places every KSK row and exactlyqueryCountchallenge rows in one heterogeneous LWE transcript; when the scalar noises agree,abs_signedAdvantage_real_le_bootstrap_add_batchLwe_of_same_noiseflattens this exactly to ordinary binary-secret batch LWE on((ringRank * degree) * keySwitchLevels) + queryCountrows. The BRK/circular term is paid once for the whole continuation, andhardAgainst_of_directBilinear_and_batchLwe_same_noisepackages the adversary-class conditional theorem. This remains the simpler fixed-batch multi-challenge interface; the sequential strengthening is described next. -
FormalProof4FHE.TFHE.Encryption.Adaptive.abs_signedAdvantage_real_le_bootstrap_add_jointLweformalizes a query-bounded sequential left-or-right encryption oracle. The adversary is anOracleCompthat sees one cloud key and may choose each new message pair from all earlier ciphertexts and its internal uniform randomness. The proof installs an eager tape of exactlyqueryCountLWE rows, proves one source-row query per encryption query, and proves that adaptive translations of a uniform tape are bit-independent. The final circular term is still paid once, while equal scalar noises give ordinary binary-secret batch LWE onkeySwitchSamples + queryCountrows. The corresponding adversary-class theorem ishardAgainst_of_directBilinear_and_batchLwe_same_noisein theEncryption.Adaptivenamespace. -
FormalProof4FHE.TFHE.Encryption.Adaptive.CutCycleSecurity.abs_signedAdvantage_real_le_keySwitchFirst_add_two_batchModuleLwe_add_jointLweextends the KSK-first cut-cycle proof to that full sequential oracle. The cloud key is replaced once for the entire adaptive transcript: one exact native intact-cycle KDM term, two ordinary binary-secret ring batch-LWE terms, and the query-counted zero-cloud joint-LWE term bound the honest advantage.hardAgainst_of_nativeIntactCycleKDM_and_batchLwepackages the corresponding adversary-class theorem. With equal scalar noises, the joint endpoint is exactly an ordinary scalar batch-LWE problem onkeySwitchSamples + queryCountrows. -
Encryption.Adaptive.KeySwitchFirstFiniteView.hardAgainst_of_finiteSearch_and_lwereplaces that intact-cycle continuation term by a concrete finite augmented-search premise. Each public view contains a real BRK, a real KSK, and a zero-message input tape under the same fixed scalar key; common-fiber majority amplification uses exactlylweDimension * 3^roundssuch views. The full bounded adaptive advantage is then controlled by finite scalar-search success, its explicit amplification loss, two ordinary ring batch-module-LWE bounds, and one ordinary scalar batch-LWE bound on exactlyqueryCountinput rows. The remaining nonstandard premise is the bounded augmented native search problem, not an unmodeled secret-dependent continuation and not a claimed consequence of ordinary LWE/RLWE. -
Encryption.Adaptive.Asymptotic.KeySwitchFirstFiniteView.secureAgainst_of_universal_finiteSearch_and_lwelifts that theorem to security-parameter families without a separate amplification-residual premise. APolynomialViewSchedulecertifies that the exactlweDimension * 3^roundsaugmented views remain polynomially bounded. The balanced threshold(2 - advantage)/4givesdecision ≤ 2·search + 2·summedMajorityError, and the capped formbalancedResidual = min(summedMajorityError, decision / 2)also handles zero-advantage families. Quantitative majority bounds now choose, for each exponent in the definition of negligibility, a logarithmic-depth schedule whose3^roundsview cost is polynomial and whose dimension-scaled capped residual is inverse-polynomially smaller than that exponent. Thus security for augmented scalar search under every polynomial-view schedule, two ordinary ring batch-module-LWE games, and the ordinary input-tape batch-LWE game imply negligible adaptive TFHE advantage. The centered-binomial specialization discharges key-switch sampler totality and the dimension-growth obligation exactly. The only remaining nonstandard cryptographic premise in this route is universal polynomial-view augmented native search hardness; it is still explicit and is not claimed to follow from ordinary LWE/RLWE. Fixed-schedule residual and coordinate-error variants remain available as lower-level interfaces. -
Encryption.Adaptive.Asymptotic.KeySwitchFirstFiniteView.secureAgainst_of_universal_batchCircular_and_lweremoves the universal augmented-search assumption from the public theorem statement. For any finite solver, exact scalar-key recovery from the real augmented batch is at most the complete real-versus-independent batch circular advantage plus exactly2^(-lweDimension). IflweDimension ≥ securityParameter, the latter function is negligible. Composing this fact with the universal logarithmic schedule proves adaptive TFHE security from full-transcript circular decision security and the three ordinary post-cut LWE games. The centered-binomial family and the exact-rotationq = 2Nfamily instantiate this endpoint. This is the stronger full-transcript decision normalization. -
Encryption.Adaptive.Asymptotic.KeySwitchFirstFiniteView.secureAgainst_of_universal_bootstrapCircular_flatSearchLwe_and_lwegives the sharper factored endpoint. The circular game replaces only the polynomial same-secret batch of BRKs and retains the real KSK and input tapes. At its uniform-BRK endpoint, exact majority-tree flattening and search-preserving transcript equivalences compile every retained KSK row into one scalar-LWE block and every input row into a second block under the same hidden binary key. Thus augmented recovery is bounded by BRK-only circular advantage plus one conventional heterogeneous two-block scalar search-LWE success probability. If the two scalar error samplers coincide, the blocks concatenate exactly into one ordinary batch. This equal-noise identity is lifted to asymptotic security bysecureAgainst_of_universal_nativeCircular_ordinarySearchLwe_and_lwe: the centered-binomial wrapper records sampler equality explicitly, and the exact-rotation family discharges it from its definition. Its scalar-side premise is therefore one conventional combined-batch search-LWE game, rather than the heterogeneous two-block interface.LWE.AuxiliaryInput.Batch.advantage_eq_card_mul_randomHybridandKeySwitchFirstFiniteView.bootstrapBatchCircularAdvantage_eq_viewCount_mul_nativeCircularLwenow close the single-view/multi-view bridge exactly: one uniformly selected native CircLWE challenge realizes an adjacent BRK hybrid, so the complete batch advantage is preciselyviewCounttimes that one-challenge advantage. The schedule already provesviewCountpolynomial, hencesecureAgainst_of_universal_nativeCircular_flatSearchLwe_and_lwehandles arbitrary scalar noises, while the new ordinary-search theorem derives equal-noise adaptive TFHE security from the existing native auxiliary-input CircLWE game, one ordinary scalar search-LWE game, and the post-cut LWE games. The native CircLWE premise itself remains explicit; no ordinary-RLWE reduction for that intact circular term is asserted. -
FormalProof4FHE.TFHE.SamplerReplacement.tvDist_adaptiveRealGame_lesupplies the explicit model-alignment loss between any two executable finite error-sampler triples. It counts exactlylweDimension * TGSW.rowCount ringRank tgswLevelsBRK ring errors,(ringRank * degree) * keySwitchLevelsKSK errors, andqueryCountadaptive input errors; deterministic TLWE/TGSW assembly and arbitrary downstream adversarial processing add no loss.abs_signedAdvantage_implementation_le_directBilinear_add_batchLwe_add_replacementcomposes the resulting statistical term with the native direct-bilinear circular premise and ordinary batch LWE.TFHE.SamplerReplacement.CutCycleSecuritygives the alternative-order finite theorem: one native KSK-first intact-cycle term, three post-cut LWE terms, and the same exact replacement cost. This is a finite-to-finite result: a truncation or torus-discretization construction must still prove the three one-draw distances before it can instantiate the bound for the original paper's ideal Gaussian notation.FormalProof4FHE.Probability.FinitePMFCompilernow supplies a proof-carrying way to discharge that finite-to-ideal interface: a nonempty uniform ticket table has an exact rational output law, and a finite per-residue check certifies its TV distance to any target PMF.TFHE.DiscreteGaussianSamplerspecializes the target to the exact torus-scaled modular discrete Gaussian, lifts two common-target certificates coefficientwise to executable ring errors, and feeds the resultingdegree-scaled gap into the complete BRK/KSK/adaptive-input replacement count. It also bounds translation of one executable scalar table by twice its certificate error plus the ideal modular-Gaussian shift distance, then sums that bound coefficientwise for native ring errors. The linear specialization further reduces every bounded ideal shift to the bound times one integer-Gaussian unit-shift distance, identifies that distance exactly with the mass at zero, and bounds it byexp(1/2)/(W+1)for every checkedW ≤ αq. These bounds instantiate the conditional smudging layer above. The asymptotic native shifted-Gaussian module proves the resulting expression negligible from polynomial construction growth, negligible sampler-certificate decay, and a checked2^λwindow, and supplies the concrete polynomial growth witness for the growing centered-binomial dimensions. A generic canonical rounding theorem now constructs a denominator-Dfinite ticket certificate for every nonempty finite target PMF, with pointwise error at most(card + 1) / D. This is a noncomputable finite existence construction for real-valued target masses, not a uniform PPT table generator; no irrational ideal PMF is treated as executable.TFHE.DiscreteGaussianSecurity.abs_signedAdvantage_le_monomialKDM_add_batchLWE_add_certificatesnow closes the finite composition: implementation advantage is at most the exact native degree-two monomial-KDM circular term, one ordinary query-counted binary-secret batch-LWE term, and the explicit certificate loss. Its asymptotic companionAsymptotic.MonomialSamplerReplacement.implementationSecurityGame_secureAgainst_of_monomialKDM_and_batchLWEproves negligible implementation advantage from those three negligible premises. This is a complete conditional native-TFHE security theorem; the monomial-KDM premise is intentionally retained because the cited KDM papers change the encryption or secret-key geometry. -
FormalProof4FHE.TFHE.Encryption.Adaptive.Asymptotic.replacementSecurityGame_advantage_negligiblelifts that exact loss into the negligible-function framework. New polynomial witnesses cover every BRK and KSK draw, while each adaptive adversary supplies its existing query polynomial. Thus negligible one-draw ring, KSK, and input TV gaps remain negligible after the complete execution.implementationSecurityGame_secureAgainst_of_directBilinear_and_batchLWEgives the final implementation-level composition: reference native circular/KDM security, reference ordinary batch LWE, and negligible sampler approximation imply negligible adaptive TFHE implementation advantage. The implementation's two scalar samplers may differ; only the reference samplers used by the ordinary batch-LWE theorem must coincide.Asymptotic.CutCycleSamplerReplacement.implementationSecurityGame_secureAgainst_of_keySwitchFirst_and_three_batchLWEsupplies the matching alternative-order implementation theorem from negligible native intact-cycle KDM, three ordinary reference batch-LWE games, and negligible sampler gaps. -
FormalProof4FHE.TFHE.Encryption.Adaptive.Asymptotic.secureAgainst_of_directBilinear_and_batchLWElifts the exact adaptive game to security-parameter-indexed families. Each adversary family contains a polynomial encryption-query bound;batchSampleCount_le_polynomialadditionally proves polynomial total LWE sample growth when ring rank, ring degree, and KSK levels have polynomial bounds. The generalsecureAgainst_of_directBilinear_and_jointLWEtheorem preserves distinct key-switch and input error families; its equal-noise specialization uses ordinary batch LWE. In both versions, negligible native direct-bilinear KDM and LWE advantages compose into negligible honest TFHE advantage. The circular premise remains explicit and is incurred once for the interaction. -
FormalProof4FHE.TFHE.Encryption.Adaptive.Asymptotic.CutCycleSecurity.secureAgainst_of_keySwitchFirst_and_two_ringBatchLWE_and_jointLWElifts the alternative hybrid order pointwise and asymptotically. Negligibility of the native KSK-first intact-cycle game, the two post-cut ring batch-LWE reductions, and the zero-cloud joint-LWE reduction implies negligible adaptive TFHE advantage. In the equal-noise theoremsecureAgainst_of_keySwitchFirst_and_three_batchLWE, every non-circular premise is a standard binary-secret batch-LWE security game. -
FormalProof4FHE.TFHE.CenteredBinomial.Family.parametersinstantiates those asymptotic games with the checked ring centered-binomial sampler, a new executable scalar centered-binomial sampler, and exact power-of-base gadgets. Support theorems give deterministic signed error bounds, both gadgets have checked reconstruction, andFamily.securityGame_advantage_le_monomialKDM_add_jointLWEandFamily.securityGame_advantage_le_monomialKDM_add_batchLWEexpose the exact native degree-two monomial-KDM first hop directly. TheirsecureAgainstcompanions prove negligible adaptive advantage from that named circular premise and joint or ordinary batch LWE, with no sampler-replacement premise or loss. The KSK-first counterpartsFamily.secureAgainst_of_keySwitchFirst_and_two_ringBatchLWE_and_jointLWEandFamily.secureAgainst_of_keySwitchFirst_and_three_batchLWEinstantiate the cut-cycle proof without changing samplers.linearModulusFamilyis a fully specified scalable finite witness with explicit polynomial KSK dimensions;linearModulusFamily_polynomialEvaluationKeyGrowthnow covers all BRK dimensions as well, so it instantiates the polynomial sampler-loss accounting. This is not a production parameter recommendation or an identification with the original paper's torus Gaussian distribution. The compatibility theoremsFamily.securityGame_advantage_le_circularLWE_add_zeroLWE_add_batchLWEandFamily.secureAgainst_of_circularLWE_and_zeroLWE_and_batchLWEstate the same exact centered-binomial result using the named auxiliary-input CircLWE formulation with an explicit zero-side premise. The strongerFamily.securityGame_advantage_le_circularLWE_add_three_batchLWEandFamily.secureAgainst_of_circularLWE_and_batchLWEdischarge that premise: the pointwise bound contains the ordinary actual-context batch-LWE advantage twice and the uniform-BRK-context batch-LWE advantage once. -
FormalProof4FHE.TFHE.CenteredBinomial.EndToEnd.exactRotationFamilygives one Boolean family shared by confidentiality and native refresh correctness: at parameterλ,N = λ + 1andq = 2N, both scalar error samplers coincide, and every BRK/KSK dimension has a checked polynomial bound.secureAgainst_and_refreshCorrectcombines negligible adaptive advantage under exact native monomial-KDM plus ordinary batch LWE with probability-one fresh refresh under the two explicit public noise margins. The sharpersecureAgainst_and_refreshCorrectLinear_of_nativeCircular_ordinarySearchLwepairs the strongest native-CircLWE/ordinary-search-LWE route withRefreshCorrectLinear: exact signed rotations preserve coefficient infinity norm, so past BRK errors accumulate linearly instead of carrying an exponential propagation factor. The theoremnot_exactRotation_linearOutputMargin_of_posnow proves that the output margin is impossible for every positive deterministic BRK row-error bound atq = 2N. Thus this family is a useful exact interface and diagnostic witness, but not a nonzero-noise correctness instantiation.secureAgainst_and_refreshCorrect_of_circularLWEgives the corresponding end-to-end statement from auxiliary-input CircLWE and ordinary batch LWE, without a separate zero-message side-information assumption; its only extra efficiency obligation closes the uniform-BRK batch reduction. The polynomial-view route now also has the single theoremsecureAgainst_and_refreshCorrect_of_nativeCircular_ordinarySearchLwe: native one-challenge auxiliary-input CircLWE, one equal-noise combined scalar search-LWE batch, and the three post-cut LWE games imply adaptive confidentiality, paired with probability-one refresh correctness for the same exact-rotation family. -
FormalProof4FHE.TFHE.CenteredBinomial.LargeModulusEndToEnd.familyresolves that checked obstruction with a distinct finite construction. AtN = λ + 1, it usesq = 16N^4 = (2N)^4, exact base-2Ndecomposition with four levels, and centered-binomial width one for every scalar and ring error. Because2N ∣ q,divisibleRoundExponentis an exact additive quotient from ciphertext phases to native rotation exponents; no approximate rounding error accumulates across the LWE mask coordinates.outputMarginproves that the complete sharp BRK budget fits the code distance for everyλ ≥ 7, andrefreshCorrectproves probability-one fresh Boolean refresh with no margin premise left to the caller. The single theoremsecureAgainst_and_refreshCorrect_of_nativeCircular_ordinarySearchLwepairs that unconditional correctness conclusion with conditional adaptive confidentiality from native auxiliary-input CircLWE, one ordinary combined scalar search-LWE batch, and the three checked post-cut LWE games. Native CircLWE remains an explicit circular-security assumption, and this exact divisible-modulus construction is not identified with the original paper's torus-Gaussian parameter set. -
FormalProof4FHE.TFHE.CenteredBinomial.GrowingNoiseEndToEnd.familystrengthens the preceding constant-width witness to an asymptotic family with growing noise. Writingw = λ + 1, it takes scalar dimension and ring degreeN = 2^⌈log₂(8w)⌉, so8w ≤ N < 16wandX^N + 1is a power-of-two cyclotomic polynomial. This is checked as the literal identityΦ_(2N) = X^N + 1, together with a bijective multiplicative interpretation of the executable coefficient carrier in the cyclotomic quotient. It uses centered-binomial widthwfor BRK, KSK, and input errors, andq = 64N^6 = (2N)^6with six exact base-2Nlevels. The modulus has an explicit polynomial upper bound;inputMarginandoutputMarginhold for everyλ; andrefreshCorrectproves probability-one fresh Boolean refresh for every supported error. Its shortest construction-faithful confidentiality theorem issecureAgainst_of_nativeMonomialKDM_and_concreteBatchLWE: negligible advantage for the exact native degree-two cross-monomial KDM game plus the explicit binary-secret LWE family implies negligible adaptive TFHE advantage. Pointwise,securityGame_advantage_le_nativeMonomialKDM_add_concreteBatchLWEcontains exactly those two terms and no statistical off-diagonal replacement. Its public-evaluation corollary has zero additional advantage loss. The literature-aligned real-versus-uniform formulation issecureAgainst_of_nativeCircularLWE_and_concreteBatchLWE: negligible exact native auxiliary-input CircLWE and the explicit binary-secret LWE family with modulus64N^6, dimensionN,6N+Qrows, and centered-binomial widthλ+1imply negligible adaptive TFHE advantage, with no correctness, sampler-replacement, finite-view, or collision premise.concreteBatchLWESecurityGame_eq_batchLWEproves this is exactly the generic reduction target, andconcreteBatchSampleCount_le_polynomialbounds its rows by96(λ+1)+Q(λ). Pointwise,securityGame_advantage_le_nativeCircularLWE_add_three_concreteBatchLWEexposes one circular term and the three concrete LWE occurrences used by the real, uniform-BRK, and honest reductions. Public homomorphic use is covered directly by the adaptive game: the adversary already sees the complete cloud key and may perform arbitrary computation on every returned ciphertext.evaluationSecurityGame_advantage_eqmakes this closure explicit by compiling any public cloud-key-dependent evaluator into the base adversary with pointwise identical advantage, whileevaluationSecureAgainst_of_nativeCircularLWE_and_concreteBatchLWEcomposes the zero-loss compiler with the concrete circular/LWE theorem. Its only additional premise is preservation of the chosen efficient-adversary class; no decryption or refresh-correctness hypothesis is used. The combined security-and-refresh theorem remains available independently. Because the family's native ring rank is one,postCutBinarySecretRLWESecurityGame_eq_ringBatchLWEadditionally identifies the complete post-cut ring game with finite binary-secret RLWE, pointwise and with no loss. The theoremsecureAgainst_and_refreshCorrect_of_nativeCircular_ordinarySearchLwe_binarySecretRLWEexposes that exact RLWE premise directly. The exact same game is also instantiated over(Z/qZ)[X] / (Φ_(2N));postCutBinarySecretRLWE_advantage_eq_cyclotomicproves pointwise advantage equality. The security-only endpointsecureAgainst_of_nativeCircular_ordinarySearchLwe_cyclotomicRLWEconcludes adaptive TFHE confidentiality without mentioning refresh correctness; the stronger convenience theoremsecureAgainst_and_refreshCorrect_of_nativeCircular_ordinarySearchLwe_cyclotomicRLWEaccepts the same assumptions and additionally returns the independent correctness result. The quantitative theoremsecurityGame_advantage_le_nativeCircular_add_ordinarySearchLwe_add_finiteLoss_add_two_cyclotomicRLWE_add_inputLWErecords the complete pointwise reduction before negligibility: exact BRK view count times one native CircLWE advantage, one ordinary scalar search-LWE term, the explicit finite-view loss, two losslessly transported cyclotomic-RLWE terms, and the adaptive input-LWE term.Native.CoefficientStructuredLWE.problemgoes one step lower: it presents every ring element as aFin N → ZMod qcoefficient vector, proves that the noiseless map is the explicit schoolbook negacyclic convolution, identifies the ring sampler with independent direct centered-binomial coefficient sampling, and transports both games and every advantage through a public-transcript equivalence. The theoremsecureAgainst_and_refreshCorrect_of_nativeCircular_ordinarySearchLwe_coefficientStructuredLWEtherefore accepts the exact coefficient structured-LWE game as its post-cut premise. Its secret has independent Boolean coefficients;postCutRingSecret_pointProbabilityproves that every rank-one secret has probability exactly2^-N, so it has exactlyNbits of min-entropy. It is not silently replaced by uniform-secret RLWE. The companionCenteredBinomialGrowingNoiseCircularSearchmodule proves that KSK gadget level one has centered distance exactly2N, closes the paired-recovery margin, and specializes the averaged residual reduction to public CircLWE and public-continuation monomial-KDM security. The adaptive public auxiliary-input theorem additionally includes the entire bounded input tape and gives a single growing-family endpoint for adaptive confidentiality; a separate convenience theorem pairs it with probability-one refresh. The security-only theoremAdaptivePublicCircular.secureAgainst_of_search_candidate_and_jointLWEderives confidentiality from narrow augmented paired-search, the explicit native candidate loss, and ordinary joint LWE, whilesecurityGame_advantage_le_search_add_candidateLoss_add_three_jointLWErecords the exact pointwise bound with no circular term left. Public evaluation is covered by the corresponding zero-lossevaluationSecureAgainst_of_search_candidate_and_jointLWEtheorem. Thus public augmented CircLWE is its only circular premise and ordinary joint LWE discharges the zero branch. A stronger residual-search headline now derives that public premise from narrow augmented paired-search security plus the evaluator's explicit smudging/threshold/amplification loss. A one-shot security-only companion instead proves the exact boundTFHE advantage <= coordinate-prediction bias + selected-coordinate statistical error + three joint-LWE advantages. The corresponding asymptotic confidentiality theorem assumes only coordinate-prediction security, negligible correct/freshness errors from the direct native certificate, ordinary joint LWE, and the expected efficiency-closure conditions. Public cloud-key-dependent evaluation adds zero advantage loss. Neither theorem imports refresh or decryption correctness; those remain optional, independent results. The discrete-Gaussian target specialization now supplies a parameter-compatible version of this security-only endpoint. It takesq = (2N)^(lambda + 1),lambda + 1exact base-2Ngadget levels, and relative widthalpha = 1/(2N), and proves internally that the integer Gaussian width is(2N)^lambda >= 2^lambda. Its canonical table uses denominatorq(q+1)2^lambda; the checked certificate error is at most2^-lambdaand is therefore negligible. Assigning all leftover tickets to zero also preserves exact negation symmetry. The preferred canonical theorem now exposes neither a Gaussian table-error premise nor a native distribution-law record. Wrong-view freshness is bounded by the exact message-one control fiber loss times the polynomial BRK layout; the selected diagonal uses the checked sharp operator reduction; and the complete off-diagonal replacement is bounded by its exact expectation under the generated source control. Exact structured/direct equivalence then eliminates that control ciphertext entirely: its masks, ring secret, and gadget message disappear, leaving the finiteL²lawfresh centered-binomial error + uniform-digit operator (signed centered-binomial control error)versus the compiled target error vector. The generated-control average is exactly the IID control-error expectation. Centered-binomial sign symmetry removes the final Boolean maximum. Exposing source errors as uniform bit-pair tables and target errors as uniform ticket indices, and replacing the exact-capacity uniform difference ciphertext by its IID base digits, identifies the complete quantity with a finite uniform average of explicit output-fiber cardinality formulas. A checked deterministic norm bound shows that every real residual coefficient remains within a polynomial-size ball, and a norm-threshold theorem lower-bounds total variation by one minus the target mass of that ball. Thus the current exponentially wide Gaussian is an auditable conditional target, not a justified statistical-smudging conclusion; the sound completion route is computational RLWE/native circular security or a matching narrow target. Subject to the explicit finite premise, adaptive and publicly evaluated TFHE confidentiality follows from negligibility of those three canonical construction quantities, coordinate-prediction security, ordinary joint LWE, and efficiency closure. These theorems deliberately make no refresh-correctness claim. The canonical table is a mathematical finite witness; uniform PPT generation or materialization of that table is not claimed. The shifted evaluator and its correct residual sampler are now executable. Its independent-difference form now has an exact simultaneous whole-key conditional normal form: native BRK coordinate independence is derived from the generator, uniform-mask translation is proved bijective, and every off-diagonal entry is residualized in one finite product. A checked hybrid bound isolates the complete correct-side cost as the averaged self-correlated diagonal marginal versus one fresh entry, plus the sum of the off-diagonal residual costs; it does not replace this marginal by a worst-case fixed-control bound. The bound now permits distinct source and target error samplers. The selected diagonal is reduced further rather than left as an opaque distance premise. After fixing the uniform difference ciphertext, its gadget digits induce one linear row operator on every public mask column and on the source error vector. A finite fiber-second-moment bound controls the transformed uniform mask without a field assumption. The linear form also gives an exact rank-event alternative: whenever the fixed row operator is bijective, its simultaneous action on every public mask column transports the complete uniform challenge exactly, so the mask-replacement cost is at most the probability of a non-bijective row operator under the actual uniform difference ciphertext. This event is now characterized algebraically without loss: the operator's canonical matrix has entries equal to the identity plus the candidate-signed difference digits, and non-bijectivity is exactly failure of its determinant to be a unit in the coefficient ring. An additional whole-key constructor accepts any proved upper bound on that explicit determinant event. At exact gadget capacityq = B^ℓ, scalar base decomposition is now proved bijective, then lifted coefficientwise toRqand through every extended coordinate of the complete native TGSW difference. Consequently the determinant's entire row/block/coefficient/level digit tensor is jointly uniform, equivalently IID uniform inFin B, and its casts are exactly the ring-valued digits appearing in the canonical matrix. The resulting estimate is now closed—and is an obstruction. For every positive-level exact-capacity even-base instance, coefficient reduction modulo two followed by evaluation atX = 1maps the row matrix to an exactly uniform square binary matrix. Its rank-failure probability is at least1/2; preservation of units by this ring homomorphism proves that the original determinant non-unit probability, and hence the rank-sharp diagonal loss, is also at least1/2for either candidate bit, independently of the error samplers. Therefore the exact-rank/bounded-determinant constructor cannot yield negligible loss for this native regime. The replacement route is now formalized as a direct side-information collision hybrid. It treats the complete uniform difference and public challenge as one extractor input, retains the error transformed by the same difference as side information, and replaces only the transformed challenge. Reassembly is proved exactly equal to the executable diagonal operator and existing mask-replaced experiment. Thus the new diagonal budget is the source-error average of an explicit joint collision loss plus one mixed-error-to-target distance, maximized over the two scalar bits; a whole-key constructor installs it without any fixed-difference invertibility premise. The joint collision loss is now proved exactly equal to a normalized finite-fiber cardinality sum. A parallel Pearson chi-square relaxation, also explicit in those fiber counts, is lifted through the selected entry and whole-key certificate for rank/codimension/Fourier estimates. A two-copy normal form further identifies every challenge collision with the zero fiber of a rectangular paired row operator. Surjective pairs contribute exactly the uniform baseline, and all remaining loss is one explicit rank-deficiency-weighted excess. IfDis the number of difference ciphertexts,Cthe number of challenges,K_tthe difference-fiber size at retained errort, andE_tits summed paired excess, the Pearson divergence is proved exactly equal tosum_{K_t > 0} E_t / (D C K_t). Dropping the same-fiber restriction gives the further source-error-independent upper boundtotalPairExcess / (D C). A separate whole-key constructor consumes only a candidate-wise estimate of this global budget, so the collision premise no longer quantifies over centered-binomial error support or retained fibers. This last relaxation may be looser than the exact normalized expression because it replaces every nonemptyK_tby one. At exact capacity with even gadget base, the parity reduction of two independent difference matrices is now proved exactly uniform on the binary2m-by-mmatrix space, wheremis the TGSW row count. Its rank-failure probability is at most2 / 2^(m+1), in sharp contrast with the at-least-1/2failure of one square block. The binary matrix is entrywise the transpose of the parity-reduced concrete paired row matrix. A generic local-homomorphism lift is now checked: a binary left inverse is lifted entrywise, its square product has unit determinant because parity reflects units, and transposition supplies a right inverse for the original paired row matrix. Consequently binary full rank gives native row surjectivity and exactly zero paired-collision excess. The production specialization is now checked forZMod (2^k)[X]/(X^(2^d)+1),k > 0: reduction to the binary quotient has nilpotent kernel, the binary parity kernel is generated byX - 1, and therefore the concrete parity map reflects units. Thus a binary-full-rank pair has zero native collision excess at the actual power-of-two modulus. Quantitative accounting for the residual rank-deficient pairs is also made explicit: their exact ordered-pair count divided by the square of the difference-space cardinality is the rank-failure probability, total excess is at most that count times the square of the challenge cardinality, and the relaxed global budget is therefore at mostrankFailureRatio * differenceCard * challengeCard. This checked magnitude factor explains why the rank-failure probability alone is not a negligible collision bound. The deficient-pair estimate is now sharpened rank by rank. For every finite additive operator, Lean proves the exact identityzeroFiberCard * imageCard = domainCard. Surjective coefficient reduction maps the native matrix image onto the reduced image, and a stronger local-ring lift shows that binary rankrsupplies a free native image of cardinality at least|Rq|^r: a basis of the reduced image is lifted to native input columns, while a transposed right inverse proves the lifted column map injective. Hence each paired row zero fiber is at mostrowDomainCard / |Rq|^r, full-rank pairs still contribute exactly zero, and all deficient pairs are summed with their individual ranks in a new normalized budget. That budget bounds the exact retained-fiber Pearson expression, the selected-diagonal distance, and a whole-key certificate; its power-of-two production form has no local-homomorphism premise. This removes the universalchallengeCard^2magnitude from the preferred bound. It does not yet prove negligibility: a corank-tresidue matrix can still carry an envelope factor|Rq|^(t * ringRank). A sharper higher-adic image distribution or a direct estimate using the exact retained fibersK_tremains required. The centered-binomial parity analysis now supplies a typical unit source-error entry, and that unit has been used for the first direct conditioned count. At full gadget capacity, fixing all but its block/level digit column makes the retained transformed error determine the omitted digit polynomial uniquely in every row. Consequently every such native retained-error fiber has size at mostbase^(m * (m - 1) * (degree + 1)), withmthe TGSW row count. This injective slice is not a whole-ring uniformity claim and does not yet control the kernel/cokernel weights averaged inside the fiber. The retained fiber is now characterized more sharply, not merely bounded. Every assignment of the other digit columns forces one selected ring polynomial; validity says exactly that this polynomial has small base digits. This validity predicate is row-local, so the native retained fiber is equivalent to a dependent product of finite valid-row types and its cardinality is the product of their cardinalities. A generic finite moment identity then expands the exact native self-kernel weight into proposed kernel-vector tuples and factors their acceptance count across rows. The all-zero tuple equals the fiber-cardinality baseline and cancels, leaving a manifestly nonnegative sum over only nonzero tuples. The distinct-pair native cokernel sum is likewise transported to a double product of valid rows. A checked two-column refinement now bounds those simultaneous row counts. One proposed kernel vector and the retained equation jointly determine the selected and pivot digit columns whenever their native2 × 2minor is a unit. If the selected source coordinate is a unit, all such minors are nonunits exactly when the proposed vector's binary parity lies on the two-element line generated by the source parity vector. Coordinatewise parity is surjective, so the exact bad-vector identity isbadCount * 2^m = 2 * valueCount, and simultaneous bad tuples have the corresponding powered density. The complete moment is now bounded by a two-column term for all tuples plus a one-column term for the exactly counted bad tuples. A denominator-preserving normal form now divides the product fiber cardinality row by row, exchanges the complete transformed-error sum with the tuple sum, and factors the result into row-local normalized acceptance sums. Returning to the native equal-difference collision slice is exact: the zero tuple subtracts one baseline on every nonempty fiber, and the remainder is divided by the full difference-ciphertext space. Each row-local weight is now bounded bymin(1, A / K), whereAis its two-column count on a good tuple (one-column count on a bad tuple) andKis that row's actual valid-fiber size. The checked complete bound retains the exact parity-bad tuple count, subtracts the nonempty-fiber baseline, and divides by the full ciphertext space. A second, denominator-preserving support argument maps every nonempty valid row fiber injectively into the centered polynomial box forced by the actual reconstructed error equation. For the canonical growing centered-binomial family, that box consumes at most a2^-Nfraction after the complete twelve-row product and ciphertext normalization. Consequently the actual fixed-error equal-difference/self collision excess is at most2^-Nfor every supported source-error vector with a selected unit entry, and this envelope is proved negligible. The paired cokernel term now also has an exact denominator-preserving additive-character normal form. The native row cokernel factor is the cardinality of the common annihilator of the two paired row images; after taking theringRankpower, subtracting the uniform baseline removes exactly the all-trivial character tuple. Thus, in each retained transformed-error fiber, the complete distinct-pair excess is exactlysum_{chi != 0} N_chi * (N_chi - 1), whereN_chicounts the retained differences annihilated by the character tuple. EachN_chiis now further identified with the zero fiber of a sum of independent valid-row contributions. A second finite character transform gives an exact rowwise Fourier factorization: the trivial dual character is precisely the product of the actual valid-row cardinalities, and the centered deviation is a sum of products of nontrivial row-local Fourier coefficients. Finite biduality reindexes every abstract second-dual character by a unique nonzero tuple of concrete ring test values. In native ring rank one, each resulting row coefficient is exactly one finite sum of the original native character applied to the reconstructed row-operator entry at that test value. Eliminating the forced selected digit rewrites that entry as a fixed offset plus small digit polynomials weighted by the exact minorss_selected * v_j - s_j * v_selected. The fixed offset factors out with character norm one, so the coefficient norm is exactly the norm of this pure minor-weighted character sum. This also reveals a structured exception: the nonzero test row equal to the retained source error makes every minor vanish and gives a full-cardinality Fourier coefficient. Its phase is nevertheless exact—the complete row product is the retained fiber cardinality times the outer character evaluated on the transformed error. A phase-aware centered identity now splits this source mode from every remaining nonzero test tuple, avoiding the false requirement that every nonzero coefficient cancel. Exact outer-characterL²orthogonality now evaluates that source mode completely: after deleting the trivial character, the squared factor sums to4|G|-4when the transformed error is zero and2|G|-4otherwise. A checked pointwise square inequality and its aggregate therefore bound the exact factorial moment by this closed source factor plus only the squared non-source second-dual remainder, divided by the full target-character cardinality squared. The canonical nonzero-parity certificate converts this phase-aware moment through the character, cokernel, selected-mask, negligibility, and security interfaces without a norm-only relaxation. The normalized collision loss still divides by the actual fiber cardinality and the full difference-ciphertext cardinality, with the challenge cardinality canceled exactly. What remains statistically is a quantitative minor-sumL²bound for the non-source test tuples at the canonical parameters. Separately, a reduction of the intact bilinear TFHE circular-coordinate prediction problem to ordinary LWE/RLWE remains unproved. The concrete growing-noise family now has an additional checked obstruction: ring rank one and six decomposition levels makem = 12at every security parameter, so its paired residue law is the same uniform24-by-12binary matrix law for everyλ. Its rank-failure probability is proved equal to the exact finite-field product formula, bounded below by2^-24, and formally not negligible. Thus the residue full-rank event cannot itself supply an asymptotically negligible loss for this family. This does not prove the actual collision loss non-negligible; higher-adic image growth or cancellation in the exact retained-fiber sum may still close it. The older conditional budget can still use either the expected challenge-fiber loss or the exact bad-rank probability, and separate constructors retain the fiber, exact-rank, and bounded-determinant forms. The adaptive lift proves that centered-binomial scalar transport, the retained KSK and tape, and the ordinary target real view introduce no additional loss. A direct certificate constructor therefore consumes only the averaged diagonal bounds, the conditional off-diagonal source-to-target bounds, and one fully averaged wrong-branch freshness bound. Exact fixed-mask wrong-branch bijectivity is also proved to identify the mask-averaged experiment with uniform exactly, and a refined constructor sets its freshness loss to zero. That bijectivity premise is now decomposed without loss: the whole BRK map is a product of independent TGSW-entry maps, and every entry is a product of explicit finite TLWE-row maps. Rowwise bijectivity therefore discharges the exact transported wrong-branch premise directly. When exact bijectivity is unavailable, a quantitative companion bounds the whole-BRK defect by the double sum of the explicit row-map TV defects. The adaptive lift then averages this sum with the exact scalar-mask probabilities, without replacing it by a worst-case mask or adding a further hybrid loss. A whole-key certificate constructor accepts precisely these mask-averaged row bounds. More importantly for random-rank arguments, a second lift averages over the actual generated BRK, KSK, and input tape as well. It bounds the complete wrong view by the probability that some named row map is non-bijective, jointly over the public context and scalar mask, and union-bounds that event into explicit per-row failure probabilities. Rare bad public controls are therefore charged rather than prohibited support-wise. An exact translation-conjugacy theorem now sharpens this further: every false/data row induces the same normalized control-only map, so all of those named row events coincide. Exact gadget recomposition writes that map as identity plus the digit-weighted canonical homogeneous part of a message-one control. Complementary-candidate toggling cancels scalar XOR transport, and an exact marginal projection leaves only the original hidden bit and its selected TRGSW control. Expanding native key generation then proves that this marginal is exactly a coordinate-free sampler containing one uniform bit, one uniform ring secret, and one generated control. The final wrong-view bound therefore has one canonical-control failure probability and no KSK, input tape, coordinate, BRK-coordinate, or row-count factor; the older row union remains a compatibility theorem. For centered-binomial control noise, coefficientwise negation symmetry removes even that uniform hidden bit: toggling the generated hidden-bit control by its complementary candidate has exactly the law of one generated message-one control under the same uniform ring secret. Both the non-bijectivity probability and the expected normalized one-row TV defect are proved exactly equal to their message-one versions. A separate direct route does not require bijectivity: translation conjugacy proves every data row has exactly the normalized control-map TV defect, and the whole wrong view is bounded by the number of output TLWE rows times its canonical expectation. The whole-key certificate accepts either the zero-one message-one failure bound or this direct message-one statistical bound; the earlier canonical-control constructors remain available. That direct defect is now bounded without a field or linearity assumption. For each fixed message-one control, the identity-plus-digit map is treated as an arbitrary deterministic endomorphism of the finite TLWE row space. Its uniform-output distance is at most one half the square root of its exact fiber-second-moment excess over the permutation baseline. Averaging this loss under the actual nonuniform generated-control law and multiplying by the output-row count gives a checked complete wrong-view bound and a whole-key certificate constructor. A support-wise estimatefiberSecondMoment <= |Row| * (1 + epsilon)specializes the expected defect tosqrt(epsilon) / 2. This is valid for the production power-of-two coefficient ring and the nonlinear digitizer; proving a negligible quantitative fiber estimate for a chosen parameter family remains open. The centered-binomial-only normalization has also been factored through its true requirement: exact negation symmetry of the ring-error sampler. A finite Gaussian ticket certificate may now additionally prove equal ticket counts for every residue and its negation. That check gives exact scalar and coefficientwise-ring symmetry, exact scalar-XOR BRK transport, exact hidden-bit elimination to one message-one control, and the same complete wrong-view fiber bound for a symmetrically compiled discrete Gaussian. Its existing Gaussian approximation certificate remains available for the smudging estimates. These premises are packaged as a named whole-key rank certificate, with a certified discrete-Gaussian target specialization. A general asymptotic candidate-view adapter now carries that certificate through augmented paired search, and the growing-family endpoint concludes adaptive TFHE confidentiality together with probability-one refresh from negligible candidate loss, narrow search hardness, and ordinary joint LWE. A negligible message-one control failure probability or quantitative bound on the now-explicit identity-plus-digit fiber excess, the selected diagonal's explicit challenge-fiber and mixed-error terms (the bad-rank alternative is formally ruled out for exact-capacity even bases), off-diagonal estimates, and augmented paired-search hardness remain explicit inputs. For the preferred canonical one-shot security theorem, the native laws are already compiled into exact finite quantities: only negligibility of the sharp diagonal loss, the selected explicit IID digit/bit-pair/ticket off-diagonal fiber-count loss, and the message-one fiber loss is required, together with circular coordinate-prediction hardness and ordinary joint LWE. The off-diagonal term contains only effective error-vector probabilities; public masks, secrets, gadget messages, and ciphertext assembly have been eliminated by checked equalities and data processing. No correctness result is in that proof chain. The new residual support and TV-threshold audit explains why the off-diagonal premise should be discharged computationally rather than by the present exponentially wide Gaussian. This removes constant noise, the non-cyclotomic degree, and presentation ambiguity from the concrete witness, but it does not prove the binary-secret hardness premise, native CircLWE, or production parameters. Existing entropic RLWE results require Gaussian target error and additional DSPR/noise-lossiness hypotheses, and explicitly do not obtain the binary-coefficient rank-one case from entropy alone. -
FormalProof4FHE.TFHE.Evaluationstarts the independent functional-correctness layer.TGSW.phase_externalProduct_eq_mul_add_errorproves that an exact gadget decomposition makes a TGSW--TLWE external product carrymessage * phase(input)plus the explicit weighted row error. Its approximate counterpart additionally exposesmessage * phase(decompositionResidual)and can compute that residual from any proposed digit vector.TGSW.KeySwitch.phase_apply_eq_phase_sub_errorproves that exact mask recomposition preserves the source TLWE phase minus the explicit accumulated key-switch error.FormalProof4FHE.TFHE.GadgetDecompositionimplements fixed-length unsigned base digits inZMod q, proves the digit bound and exact reconstruction underq ≤ B^ℓ, and lifts the same executable algorithm coefficientwise to the concrete negacyclic ringRq.FormalProof4FHE.TFHE.FullWidthBalancedDecompositionadditionally proves that an exact-capacity centered decomposition is a bijection, including signed interval digits, most-significant-first ordering, arbitrary row components, and flattened ordinary-row/auxiliary-level indices. -
FormalProof4FHE.TFHE.BlindRotationimplements the public affine-TRGSW accumulator update, proves that a binary bootstrapping-key entry selects either1or the requested negacyclic rotation factor, and gives an exact list-level phase invariant with every row-error contribution retained.FormalProof4FHE.TFHE.SampleExtractionproves against executable negacyclic convolution that the extracted scalar phase is exactly the constant coefficient of the ring phase, including the native binarykeyExtractspecialization. -
FormalProof4FHE.TFHE.NoiseBoundsproves centered modular triangle/product inequalities, coefficient-infinity bounds for concrete base digits, and a checked worst-case bound for every digit-weighted TGSW external-product error.TFHE.SharpRotationNoiseproves directly for the executable negacyclic backend that convolution has a linear-in-Ncoefficient bound, multiplication by a native signed monomial preserves coefficient infinity norm, and the sparse factor(X^a - 1)costs at most twice the input norm.TFHE.BootstrappingCorrectnesstherefore exposes both the compatible geometric theorem anddecode_nativeBlindRotate_apply_linear, whose accumulated-error budget is linear in the number of blind-rotation controls and uses the linear convolution estimate for each digit-weighted row. The remaining slack is the deterministic worst-case sum over gadget rows and digits, not a geometric trace or sparse-factor loss. -
FormalProof4FHE.TFHE.RotationLookupdischarges the algebraic lookup obligation constructively. Executable signed monomials form the expected exponent group modulo2N; native mask controls collapse to one rounded phase exponent; and any first-half table is materialized as an executable negacyclic test vector with its forced anti-periodic second half. At the concrete finite modulusq = 2N,exactRoundExponentis the canonicalZMod/Finequivalence and is proved to recoverb - <s,a>exactly. The closed theoremdecode_nativeBlindRotate_apply_bitTabletherefore has no ideal-lookup or rounding premise;decode_nativeBlindRotate_apply_bitTable_linearsupplies the same closed lookup result with the sharp linear rotation budget.TFHE.DivisibleModulusRotationfurther closes the lookup theorem at every larger modulus divisible by2N, using the exact additive quotient described above. Approximate modulus switching for non-divisible production-styleqremains a separate model-alignment obligation. -
FormalProof4FHE.TFHE.CenteredBinomialCorrectnessderives the BRK row premise from the executable key generator. It proves that each abstract TGSW row error is exactly its sampled homogeneous error, projects support membership through both finite products in BRK generation, and turns centered-binomial coefficient bounds intocInfNorm ≤ eta. ConsequentlyprobEvent_bitTableBootstrappingResult_eq_onegives probability-one correctness of the exact finite Boolean-table evaluator whenever the public code-distance margin holds; bounded support incurs no tail-probability loss. Its_linearcompanion uses the sharp rotation budget. Unbounded or truncated torus-Gaussian variants still require their own tail and model-alignment arguments. -
FormalProof4FHE.TFHE.CenteredBinomialRefreshconnects that table evaluator to a freshly encrypted Boolean. It uses antipodal input phases0andNatq = 2N, proves that every signed scalar error in[-inputEta, inputEta]selects the intended anti-periodic threshold region when2 * inputEta < N(including wraparound), and composes fresh-input and BRK support.probEvent_fresh_bitTableBootstrappingResult_eq_onetherefore proves complete native Boolean refresh correctness with probability one under the explicit input-region and output-distance margins;probEvent_fresh_bitTableBootstrappingResult_eq_one_linearproves the corresponding sharper result without geometric propagation of earlier row errors.TFHE.CenteredBinomialDivisibleRefreshlifts the complete support-wise and probability-one refresh proof to every coefficient modulus divisible by2N; the large-modulus families above discharge all margins first at width one and then at the growing widthλ + 1. -
FormalProof4FHE.GeneralizedSubspaceLWE.shared_problem_eq_generalizedandsharedSpec_isNestedidentify shared-randomness LWE with a nested generalized-subspace instance. -
FormalProof4FHE.GeneralizedSubspaceLWE.shared_zmod_advantage_eq_batchstates the resulting ordinary-LWE reduction directly in the generalized-subspace presentation. -
FormalProof4FHE.GeneralizedSubspaceLWE.Adaptive.advantage_le_batchLWE_add_rankLossgives an explicit reduction from adaptive affine-projection Subspace LWE to ordinary matrix batch LWE: the SLWE advantage is at most the advantage ofbatchReductionplus2 * (Q * (2 / |F|^(δ+1))).toReal. The affine-fiber simulator, its real and uniform branch laws, the adaptive logged-transcript rank bound, and the bounded online-to-batch compilation are all checked. Its only operational hypothesis is the adversary's publicQ-query bound;advantage_le_of_batchLWEpackages the result against a supplied ordinary-LWE bound.
Finished theorem files must build with warnings treated as errors, so any use of sorry fails the
check. FormalProof4FHETest/AxiomAudit.lean
records the axioms used by the public security theorems. See docs/ProofStatus.md for the mapping
between paper statements and Lean declarations.