Documentation

CslibFrontier.MachineLearning.UniformLearning.CIKK.Parameters

Parameters of the CIKK learner #

The library's form of the learner of Carmosino, Impagliazzo, Kabanets and Kolokolova [Carmosino, Impagliazzo, Kabanets and Kolokolova, Theorem 5.1, p. 10:19] [CIKK16] chains three stages:

The source composes only the first two reconstructions, each of which boosts its own confidence [Carmosino, Impagliazzo, Kabanets and Kolokolova, proof of Theorem 3.2, p. 10:11]. The single outer best-of selection, which replaces those per-stage boosts and gives the same result up to constants, is the library's.

This file fixes the parameters of the last two stages as explicit numerals in three precision exponents:

It proves the inequalities the stages need:

The direct-product length k is a power of two. With every quantity a power of two, the conditions are linear in the exponents, after log x ≤ N for 0 < x ≤ 2 ^ N (Real.log_le_of_le_two_pow). This solves the condition 2s ≤ k, which is a fixed point in k because s grows with log (1/δ₀) and δ₀ with 1/k. It replaces the source's k = ⌈3c/ε · ln(1/γ)⌉ + 1 [Carmosino, Impagliazzo, Kabanets and Kolokolova, proof of Theorem 4.3, step 1, p. 10:15]. For fixed e, k is linear in g (cikkK_le), and so is the input length k n + k of Amp(f).

Main definitions #

Main results #

References #

The exponent of the direct-product length: log₂ k = e + ⌈log₂ (6g + 3e + 36)⌉ + 9.

The direct-product length k = 2 ^ cikkLogK e g of the amplified function Amp(f) = (f^k)^GL.

Instances For

    The number K = 2g + log₂ k + 2 of Goldreich–Levin masks, so that 2^K - 1 masked copies decode each of the k coordinates.

    The size s = 2^{e+7} (6g + 2 log₂ k + e + 20) of the fixed position set of the direct-product decoder.

    The number m = 2^{3g + log₂ k + 9} (e + 4) of trials of the direct-product decoder.

    The number b = (h + 1) 2^{7g + 2 log₂ k + 13} of runs of best-of selection.

    Instances For

      The number t = 2^{2e+3} (7g + 2 log₂ k + 2h + 16) of sample points of best-of selection.

      The Goldreich–Levin mask count is positive.

      theorem Cslib.MachineLearning.UniformLearning.cikkK_le_cikkMasks (e g : ℕ) :
      ↑(cikkK e g) ≤ 2 * (1 / 2 ^ g / 2) ^ 2 * ↑(2 ^ cikkMasks e g - 1)

      The list condition: with γ = 2^{-g}, k ≤ 2 (γ/2)² (2^K - 1) for K = cikkMasks e g, with 2^K - 1 computed in ℕ.

      Twice the fixed set fits: 2s ≤ k.

      theorem Cslib.MachineLearning.UniformLearning.le_cikkFixed (e g : ℕ) :
      64 / (1 / 2 ^ (e + 1)) * Real.log (512 / (1 / 2 ^ (e + 1) * (1 / 2 ^ g / 2 ^ (cikkMasks e g + 3)) ^ 2)) ≤ ↑(cikkFixed e g)

      The fixed set is large enough: with ε = 2^{-(e+1)} and δ₀ = 2^{-g} / 2^{K+3}, 64/ε · log (512/(ε δ₀²)) ≤ s.

      theorem Cslib.MachineLearning.UniformLearning.le_cikkTrials (e g : ℕ) :
      16 / (1 / 2 ^ g / 2 ^ (cikkMasks e g + 3)) * Real.log (8 / (1 / 2 ^ (e + 1))) ≤ ↑(cikkTrials e g)

      Enough decoder trials: with ε = 2^{-(e+1)} and δ₀ = 2^{-g} / 2^{K+3}, 16/δ₀ · log (8/ε) ≤ m.

      theorem Cslib.MachineLearning.UniformLearning.log_le_cikkRuns (e g h : ℕ) :
      Real.log (2 / (1 / 2 ^ h)) ≤ 1 / 2 ^ g * ((1 / 2 ^ g / 2 ^ (cikkMasks e g + 3)) ^ 2 / 8) * ↑(cikkRuns e g h)

      Enough runs: a learner that succeeds with probability p = γ δ₀² / 8, with γ = 2^{-g} and δ₀ = γ / 2^{K+3}, has log (2/η) ≤ p b for η = 2^{-h}.

      theorem Cslib.MachineLearning.UniformLearning.log_le_cikkSamples (e g h : ℕ) :
      Real.log (4 * ↑(cikkRuns e g h) / (1 / 2 ^ h)) ≤ 2 * ↑(cikkSamples e g h) * (1 / 2 ^ (e + 2)) ^ 2

      Enough sample points: log (4b/η) ≤ 2 t θ² for η = 2^{-h} and θ = 2^{-(e+2)}.

      theorem Cslib.MachineLearning.UniformLearning.cikkK_le (e g : ℕ) :
      cikkK e g ≤ 2 ^ (e + 10) * (6 * g + 3 * e + 36)

      k is linear in g: k ≤ 2 ^ (e + 10) (6g + 3e + 36).

      Closed form of log₂ k: log₂ k ≤ 2e + g + 15.

      Closed form of k: k ≤ 2 ^ (2e + g + 15).

      Closed form of the mask count: K ≤ 3g + 2e + 17.

      theorem Cslib.MachineLearning.UniformLearning.cikkFixed_le (e g : ℕ) :
      cikkFixed e g ≤ 2 ^ (e + 7) * (8 * g + 5 * e + 50)

      Closed form of the fixed set size: s ≤ 2 ^ (e + 7) (8g + 5e + 50).

      theorem Cslib.MachineLearning.UniformLearning.cikkTrials_le (e g : ℕ) :
      cikkTrials e g ≤ 2 ^ (4 * g + 2 * e + 24) * (e + 4)

      Closed form of the trial count: m ≤ 2 ^ (4g + 2e + 24) (e + 4).

      theorem Cslib.MachineLearning.UniformLearning.cikkRuns_le (e g h : ℕ) :
      cikkRuns e g h ≤ (h + 1) * 2 ^ (9 * g + 4 * e + 43)

      Closed form of the run count: b ≤ (h + 1) 2 ^ (9g + 4e + 43).

      theorem Cslib.MachineLearning.UniformLearning.cikkSamples_le (e g h : ℕ) :
      cikkSamples e g h ≤ 2 ^ (2 * e + 3) * (9 * g + 4 * e + 2 * h + 46)

      Closed form of the sample count: t ≤ 2 ^ (2e + 3) (9g + 4e + 2h + 46).

      Power-of-two closed form of cikkTrials: m ≤ 2 ^ (4g + 3e + 26).

      Power-of-two closed form of cikkFixed + 1: s + 1 ≤ 2 ^ (g + 2e + 13).

      theorem Cslib.MachineLearning.UniformLearning.cikkSamples_le_two_pow (e g h : ℕ) :
      cikkSamples e g h ≤ (h + 1) * 2 ^ (9 * g + 6 * e + 49)

      Power-of-two closed form of cikkSamples: t ≤ (h + 1) 2 ^ (9g + 6e + 49).

      theorem Cslib.MachineLearning.UniformLearning.cikkQueries_le_two_pow (ℓ e g h : ℕ) :
      cikkRuns e g h * (2 ^ ℓ * 2 ^ (ℓ - 1) * cikkK e g) + cikkSamples e g h ≤ (h + 1) * 2 ^ (2 * ℓ + 10 * g + 6 * e + 59)

      Power-of-two closed form of the CIKK query count: b * (2 ^ ℓ * 2 ^ (ℓ - 1) * k) + t ≤ (h + 1) * 2 ^ (2ℓ + 10g + 6e + 59).

      The fixed set fits in the direct-product length: s ≤ k.