File size: 2,563 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | import OAI.Computability.DepthThree.CircuitLowerBound
import OAI.Computability.DepthThree.CircuitDensity
import OAI.Computability.DepthThree.AsymptoticBounds
import Mathlib.Tactic.Convert
namespace OAI
namespace DepthThreeLowerBound
theorem circuit_lower_bound_of_small_cnf_correlations
(d k : β) (s : β) (hs : 0 β€ s) (hd : 4 β€ d)
(hk : 3 * (s + 1) * Real.sqrt (d : β) β€ (k : β))
(f : Cube (Fin d) β Bool)
(hcorr : β H : CNF (Fin d), H.WidthAtMost k β
|finiteAvg (fun x : Cube (Fin d) => sign (f x) * indicator (H.eval x))| β€
6 * (2 : β) ^ (-(64 * (s + 1) * Real.sqrt (d : β)) / 16))
(C : Circuit3 (Fin d)) (hC : C.Computes f) :
(2 : β) ^ (s * Real.sqrt (d : β)) < (C.gateCount : β) := by
by_contra h
have hsize : (C.gateCount : β) β€ (2 : β) ^ (s * Real.sqrt (d : β)) :=
le_of_not_gt h
let Ξ΅ : β := 6 * (2 : β) ^ (-(64 * (s + 1) * Real.sqrt (d : β)) / 16)
have hΞ΅ : 0 β€ Ξ΅ := mul_nonneg (by norm_num) (Real.rpow_nonneg (by norm_num) _)
have hdReal : (4 : β) β€ (d : β) := by exact_mod_cast hd
have hexponent : -(64 * (s + 1) * Real.sqrt (d : β)) / 16 =
-(4 * (s + 1) * Real.sqrt (d : β)) := by ring
have hsmall : Ξ΅ β€ 3 / 8 := by
dsimp only [Ξ΅]
rw [hexponent]
exact correlation_error_le s (d : β) hs (by linarith)
have hlower : (1 - Ξ΅) / 2 β€
finiteAvg (fun x : Cube (Fin d) => indicator (f x)) := by
convert acceptance_density_lower_of_width_correlation f k Ξ΅
(fun H hH => by convert hcorr H hH)
have hupper : finiteAvg (fun x : Cube (Fin d) => indicator (f x)) β€
(C.gateCount : β) * Ξ΅ + (C.gateCount : β) ^ 2 * ((2 : β) ^ k)β»ΒΉ := by
convert C.acceptance_density_le f hC k Ξ΅ hΞ΅
(fun H hH => by convert hcorr H hH)
have hinverse : (2 : β) ^ (-(k : β)) = ((2 : β) ^ k)β»ΒΉ := by
rw [Real.rpow_neg (by norm_num : (0 : β) β€ 2), Real.rpow_natCast]
have hfinal := final_error_le s (d : β) (C.gateCount : β) hs hdReal
(Nat.cast_nonneg _) hsize k hk
have hupper' : finiteAvg (fun x : Cube (Fin d) => indicator (f x)) β€ 5 / 128 := by
calc
_ β€ (C.gateCount : β) * Ξ΅ + (C.gateCount : β) ^ 2 * ((2 : β) ^ k)β»ΒΉ := hupper
_ = 6 * (C.gateCount : β) *
(2 : β) ^ (-(64 * (s + 1) * Real.sqrt (d : β)) / 16) +
(C.gateCount : β) ^ 2 * (2 : β) ^ (-(k : β)) := by
rw [hinverse]
dsimp only [Ξ΅]
ring
_ β€ 5 / 128 := hfinal
linarith
end DepthThreeLowerBound
end OAI
|