Download data/lean/OAI/Computability/DepthThree/CircuitQuantitative.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DepthThree/CircuitQuantitative.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/DepthThree/CircuitQuantitative.lean
-
curl -L -o CircuitQuantitative.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DepthThree/CircuitQuantitative.lean
2.56 kB
| 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 | |