chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
5,052 | lean_file_chunk | e198c30803c238f10c6073cb979014f0fd7c06738192fc770713f1800c946447 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Joseph McKinsey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph McKinsey
-/
import Mathlib.Data.Rat.Defs
import Mathlib.Data.Rat.Floor
import Mathlib.Analysis.SpecialFunctions.Log.Base
import Mathlib.Data.Int.Log
import LeanPool.Flean.Float... |
22,493 | lean_file_chunk | 69d451724983eb20b8fbc2a2223d23b695dd3bb7514fa60a398c7cc4ef9a9b8d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Joseph McKinsey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph McKinsey
-/
import Mathlib.Data.Rat.Defs
import Mathlib.Data.Rat.Floor
import Mathlib.Analysis.SpecialFunctions.Log.Base
import Mathlib.Data.Int.Log
import Mathlib.Tactic.Posit... |
15,838 | lean_file_chunk | 0cbdbdb2051c14da7e212d2f3b0a48111f0fd2d451a319af8a0f508517cb9d97 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Joseph McKinsey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph McKinsey
-/
import LeanPool.Flean.FloatCfg
import LeanPool.Flean.LogRules
import LeanPool.Flean.IntRounding
/-!
# Subnormal Floating-Point Representations
This module defines... |
1,297 | lean_file_chunk | 8f8f0bf64e14ef20cf938dcf6d0b23bcca22b45289b5ee83502c2404d263eecf | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Joseph McKinsey. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph McKinsey
-/
import LeanPool.Flean.Basic
/-!
# Flean: Floating-Point Numbers in Lean
Source: doi:10.1109/IEEESTD.2019.8766229, url:https://github.com/josephmckinsey/flean
Aut... |
23,976 | lean_file_chunk | 637a049f4d52059f171fc0b17410359f98d2f6f487bfda2c1e73feaf9a3842f7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import Init.Data.Fin.Basic
import LeanPool.FoZfc.Basic
import LeanPool.FoZfc.Tostring
import LeanPool.FoZfc.FixedSnoc
import LeanPool.FoZfc.BoundedFormulaOps
/-!
# Ax... |
16,424 | lean_file_chunk | 27afeb987c52411810725965d1273c6996e9f3a6c9afdfd4e504b0d26a752bb7 | lean_source_file | lean_pool_source_file_chunks | realize_is_emptyset'', realize_bv', FixedSnoc_2_0, realize_is_powerset', FixedSnoc_2_1,
realize_is_singleton']
intro emp a
apply powerset_of_emptyset
/-- Make a formula for fv 1 is a successor of fv 0. -/
def intIsSuccessor {n : ℕ} : LZFC.BoundedFormula ℕ n :=
(∀'(bv'' n ∈' fv' 1 ⇔ (bv'' n ∈' fv' 0 ∨' bv'' n... |
6,588 | lean_file_chunk | 55b13bb38635600975b65d21a3b93f4739049e805eeece29be6e7b3052e5a5d7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import Mathlib.Data.Set.Basic
import Mathlib.ModelTheory.Basic
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Semantics
import Mathlib.Data.Fin.Tuple.Bas... |
13,488 | lean_file_chunk | 53d658240c42cec5ae6cd98830a9c03a2aa9e1b4d807f63bb830320fc5be014f | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import Mathlib.Data.Set.Basic
import Mathlib.ModelTheory.Basic
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Semantics
import Mathlib.Data.Fin.Tuple.Bas... |
10,786 | lean_file_chunk | c22785128ac218765f152f3e5b4a63f8eb8a60ac31240b7eec1fc4ba3a0a7e1a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import Init.Data.Fin.Basic
import Mathlib.Data.Set.Basic
import Mathlib.Data.Fin.Tuple.Basic
import Mathlib.Data.Fin.VecNotation
/-!
# The version of Fin.snoc for the... |
6,521 | lean_file_chunk | 1f06c1f67ad910cd57fd8342eb045185056416192267d64836e8f31db64b07a1 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import Init.Data.Fin.Basic
import LeanPool.FoZfc.Basic
import LeanPool.FoZfc.Tostring
import LeanPool.FoZfc.FixedSnoc
import LeanPool.FoZfc.BoundedFormulaOps
import Le... |
3,572 | lean_file_chunk | 81340ec33345d4d01563b5aba29f48a15122d26362054dabd522140a550f6c53 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import LeanPool.FoZfc.Basic
import LeanPool.FoZfc.BoundedFormulaOps
/-!
# To string for LZFC.Term and LZFC.BoundedFormula
Converts terms and bounded formulas in the ... |
1,608 | lean_file_chunk | 07aad73dcd84e8007280cb369133aafbae4602790eca76f4117e9a6e8edbf86b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Tetsuya Ishiu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tetsuya Ishiu
-/
import LeanPool.FoZfc.Basic
import LeanPool.FoZfc.FixedSnoc
import LeanPool.FoZfc.BoundedFormulaOps
import LeanPool.FoZfc.Tostring
import LeanPool.FoZfc.Axioms
import ... |
7,727 | lean_file_chunk | 8ec92a29b145074fff75de3e1dfec11b01095787ed60d7d86d044487c68c3aa1 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.Order.BoundedOrder.Basic
import Mathlib.Topology.Basic
import Mathlib.MeasureTheory.Measure.MeasureSpace
import Mathlib.Data.Finset.Basic
/-!
# Basic Types ... |
23,995 | lean_file_chunk | 43ca219b22c3f2979c1d9281402845aa76dd4f0c0e5e54c9524c6f356bb017d5 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner
import LeanPool.FormalLearningTheory.Crite... |
9,992 | lean_file_chunk | 25676e40aa60d1503ee1313b864b39ce1addc01c8c129f9b2806a21208bc8328 | lean_source_file | lean_pool_source_file_chunks | rw [iSup_pos hS_shat] at hS_lt
calc (↑m : Ordinal) ≤ ↑S.card :=
Nat.cast_le.mpr (le_of_lt (by exact_mod_cast hS_lt))
_ ≤ ⨆ (_ : Shatters X C S), ((S.card : ℕ) : Ordinal) :=
le_ciSup (ordinalVCDim_inner_bddAbove X C S) hS_shat
_ ≤ OrdinalVCDim X C :=
le_ciSup_of_le (ordinalV... |
4,705 | lean_file_chunk | 27ed64a58bc9f2cdabd7519729b571c369935edab1e4f147d15165952ec6ac2f | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Interpolation
/-!
# Amalgamation Preserves WellBehavedVCMeasTarget
Given two Borel-parameterized concept families e₁ : Θ₁ ... |
13,119 | lean_file_chunk | 9da3c67ace40a1161d50612f88efc71a647d61e27931d7e7ace84aefebbcf1d6 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Measurability
import LeanPool.FormalLearningTheory.PureMath.AnalyticMeasurability
/-!
# Borel-Analytic Bridge for Statistic... |
23,965 | lean_file_chunk | 12cc900271dfb97d3a47ad805f192f9c25c90c6150b6f99719d06fce4dc57128 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.DualVC
import LeanPool.FormalLearningTheory.Complexity.Structures
import LeanPool.FormalLearningTheory.Complexity.Generaliza... |
23,943 | lean_file_chunk | 06ad3122198347e2001640b0c4ec836260574f05028223dbb721aba32c6a3f46 | lean_source_file | lean_pool_source_file_chunks | have halfSet'_sub : ∀ j, halfSet' j ⊆ T := by
intro j h hh
simp only [halfSet', Finset.mem_image, Finset.mem_filter, Finset.mem_univ, true_and] at hh
obtain ⟨b, _, rfl⟩ := hh
exact (embed b).property
-- Step 2: For each j, use shattering to find x_j ∈ Y.
have hpoints : ∀ j : Fin (d + 1), ∃ x ∈ Y,
... |
13,275 | lean_file_chunk | a4b1f395019f06b6cb5682948efc0045f08e738dbfa482a670f26b517cb77532 | lean_source_file | lean_pool_source_file_chunks | let mwu_result := mwu_approx_minimax M' (2 / 3) (1 / 12) (by norm_num) hrow'
let p := mwu_result.choose
have hp : ∀ y : ↥Y', (2 : ℝ) / 3 - 1 / 12 ≤ boolGamePayoff M' p y :=
mwu_result.choose_spec
-- VC-approx: sparse reps approximate p on agreement tests within 1 / 24
let hvc_bound := agreeTests_b... |
6,444 | lean_file_chunk | a026c1491c003e8575344f3a22a685240ebdf91c4b2cf0b56734d8db585dc5fd | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.... |
20,413 | lean_file_chunk | 2d584d0ab20961dd4ac8be45321edd909f2a0c477107372d8adc4ee04a672190 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Symmetrization
import LeanPool.FormalLearningTheory.Complexity.Generalization
import LeanPool.FormalLearningTheory.PureMath.... |
8,433 | lean_file_chunk | ba0520c24033002a1ee6bfc11fca317346b6f9408aa3e74de134675b5d002975 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.Online
-- Removed: import LeanPool.FormalLearningTheory.Complexity.Littlestone
-- Γ₁₉: branch-wise isShattered wrong + trees ... |
23,940 | lean_file_chunk | b5f1aa136c3852c2f56cf42a89680befd21b41112f667c5600c011fbfb84fe52 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.... |
23,979 | lean_file_chunk | 76470176207db08e461ae42129b221770e192071e1306746952e6b55cad1c241 | lean_source_file | lean_pool_source_file_chunks | have hD_agree : D { x | h x = c x } ≤ ENNReal.ofReal (1 - ε) := by
rw [hcompl, MeasureTheory.measure_compl hmeas (MeasureTheory.measure_ne_top D _),
MeasureTheory.IsProbabilityMeasure.measure_univ,
ENNReal.ofReal_sub 1 hε.le, ENNReal.ofReal_one]
exact tsub_le_tsub_left herr 1
calc ∏ i : Fin m,... |
23,975 | lean_file_chunk | 3aadd8523c9e9e022352305985decc4dc0a5dafb29ba3d97482c7262907f243c | lean_source_file | lean_pool_source_file_chunks | (Finset.univ.filter fun x => f x ≠ h x).card ≤ Fintype.card α / 4 := by
intro f
have := H f
omega
-- Sum bound: ∑_f count(f) ≤ 2^|α| * (|α|/4)
have hsum_le : ∑ f : α → Bool,
(Finset.univ.filter fun x => f x ≠ h x).card ≤
Fintype.card (α → Bool) * (Fintype.card α / 4) := by
calc ∑ f : α →... |
23,964 | lean_file_chunk | 428b40c20dce3f6935b0466ac2a4c17ab867812955232ede5aa3b97563a02b07 | lean_source_file | lean_pool_source_file_chunks | theorem pac_lower_bound_good_event_le_half
(X : Type u) [MeasurableSpace X] [MeasurableSingletonClass X]
{T : Finset X} (hTne : T.Nonempty) (L : BatchLearner X Bool)
(m : ℕ) (c₀ : X → Bool) (ε : ℝ) (hε1 : ε ≤ 1 / 4)
(hcount : 2 * (Finset.univ.filter fun xs : Fin m → ↥T =>
(Finset.univ.filter fun t... |
10,610 | lean_file_chunk | 762c3a727400b2bcac7b3895a2e74eecbc411ecbde911f616e76a6d20ff41b01 | lean_source_file | lean_pool_source_file_chunks | apply Finset.sum_le_sum; intro j hj
simp only [Finset.mem_range] at hj
have hj_le : j ≤ k := by omega
calc (2 * n).choose j ≤ (2 * n) ^ j := Nat.choose_le_pow _ _
_ ≤ (2 * n) ^ k := by
have hn_pos : 0 < n := by
rw [hn_eq, hN_def]; positivity
... |
11,443 | lean_file_chunk | 17547d45e218750a8e2a634e364a195c5ae57cbca93d61647986a579c1680468 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Generalization.Core
/-!
# LeanPool.FormalLearningTheory.Complexity.Generalization.Tail
-/
universe u v
section FinBlockI... |
409 | lean_file_chunk | 30b4398af41c55961a904448a3959354db890b57436e708e28d18e87f472da6a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Generalization.Core
import LeanPool.FormalLearningTheory.Complexity.Generalization.Tail
/-!
# Generalization Error, Sample... |
13,524 | lean_file_chunk | d002171b937acb5c31c744297c08cc5977c10b031f1eb6a144e55454b1031ffd | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Generalization
import LeanPool.FormalLearningTheory.Complexity.Symmetrization
import LeanPool.FormalLearningTheory.Complexit... |
10,302 | lean_file_chunk | 937c7246ec4ebd044bcc3acd277beea973884cd3c3471f98f75eca8f83d48317 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.BorelAnalyticBridge
/-!
# Interpolation of Concept Classes — Measurability Descent
If C₁ and C₂ are concept classes with B... |
4,882 | lean_file_chunk | 93e3b7f31a0c4fc0db79d483ad3cb7fb4aea4aee904bd3fd57a36422ce9df5e8 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.VCDimension
/-!
# Littlestone Dimension (Online Paradigm)
The online-learning analog of VC dimension.
Characterizes mistak... |
17,991 | lean_file_chunk | 0283e120da9eaedcd6cd71cfbc28cf0460f3cefed52ca5e63fcee4d2ba9b984d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Complexity.Symmetrization
/-!
# Measurability Inf... |
2,427 | lean_file_chunk | 5e9a972cff0db31a0d18e8d242bfbe2cb864abcddfcec089e2e47b0eca24bb6b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner.Core
import Mathlib.SetTheory.Ordinal.Arit... |
4,378 | lean_file_chunk | 45f41c0aa0b625125db5f033958000f90e80b154ef209f09962b59f55f406b6a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import LeanPool.FormalLearningTheory.Complexity.Littlestone
import Mathlib.SetTheory.Ordinal.Arithmetic
/-!
# O... |
23,948 | lean_file_chunk | f57237d2d012e555abc9fc3c95a113df99e0472299f709c8b4f6b70ca5322f63 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import LeanPool.FormalLearningTheory.Complexity.Generalization
import Mathlib.MeasureTheory.Integral.Bochner.Bas... |
23,952 | lean_file_chunk | 557bf75d10672bafbb773ea68bae95510b4c73a9c82b9d6e06fb9c3f85a38d77 | lean_source_file | lean_pool_source_file_chunks | _ ≤ ∑ _, Real.exp (t ^ 2 * σ_param ^ 2 / 2) := h_mgf_applied
_ = ↑N * Real.exp (t ^ 2 * σ_param ^ 2 / 2) := h_const_sum
-- Step B: For all t > 0: E_max ≤ log N / t + t * σ² / 2
have hN_pos : (0 : ℝ) < ↑N := Nat.cast_pos.mpr hN
have h_linear_bound : ∀ t : ℝ, 0 < t →
E_max ≤ Real.log N / t + t * σ_param... |
23,968 | lean_file_chunk | c7407e25a8e3424ae8382da5746935c701bd47741ca036ee9f9e13ecd0c99ff0 | lean_source_file | lean_pool_source_file_chunks | -- Injection from dpats to {f : S → Bool | ∃ c ∈ C, ∀ x, c x = f x}
-- then ncard_restrictions ≤ ∑ choose ≤ (em/d)^d
set R := { f : ↥S → Bool | ∃ c ∈ C, ∀ x : ↥S, c ↑x = f x }
-- dpats maps into R via the restriction map
have h_dpats_mem : ∀ p ∈ dpats, ∃ c ∈ C, ∀ i, c (xs i) = p i := by
... |
16,023 | lean_file_chunk | 71faa8d4dbc21cbb28ac2845b0dc11c11b47bb708e43cacdc350348040726782 | lean_source_file | lean_pool_source_file_chunks | VCDim = 0 means no singleton is shattered, so the concept class acts as a single
effective labeling. EmpRad ≤ 1/√m by Khintchine's inequality / Jensen.
This avoids the d > 0 hypothesis of `vcdim_bounds_rademacher_quantitative`. -/
-- VCDim = 0 → no singleton is shattered → all concepts agree on each point.
priv... |
12,608 | lean_file_chunk | 016c2a6d9d5f16b068c8e8229f5416b0e608b7393819851f7f1c168128ca7ca5 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import LeanPool.For... |
23,979 | lean_file_chunk | f062f1c7cda53f82efe84bfa37266155fb0e5f56eefb571d3c1b1da42312a27b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Complexity.Generalization
import LeanPool.FormalLearningTheory.Complexity.Rademacher
import ... |
23,987 | lean_file_chunk | d7454517ee41603cd971aa80820c1d60b9effc81212bb4b0cc8f5c2b3ba1d5c5 | lean_source_file | lean_pool_source_file_chunks | ext i; simp [hequiv_def, MeasurableEquiv.arrowProdEquivProdArrow,
Equiv.arrowProdEquivProdArrow]
have h_snd : (equiv z).2 = fun i => (z i).2 := by
ext i; simp [hequiv_def, MeasurableEquiv.arrowProdEquivProdArrow,
Equiv.arrowProdEquivProdArrow]
rw [h_fst, h_snd] at hz
simp only [hg_def,... |
23,918 | lean_file_chunk | 524031fc4dde28d40dc6b4a80325e117017e877cd63aa862d840499cdbb7680b | lean_source_file | lean_pool_source_file_chunks | _ ≤ (↑(GrowthFunction X C (2 * m)) : ℝ) *
((Fintype.card (SignVector m) : ℝ) * Real.exp (-(↑m * ε ^ 2 / 8))) := by
apply mul_le_mul_of_nonneg_right
· exact_mod_cast hPS_card
· exact mul_nonneg (Nat.cast_nonneg' _) hexp_nn
_ = (↑(GrowthFunction X C (2 * m... |
23,925 | lean_file_chunk | c01d4b96b059d2c0bad83ad52421f850c16036368f8deaa2f862eb0d7b0e23bb | lean_source_file | lean_pool_source_file_chunks | EmpiricalError X Bool h (fun i => (xs i, c (xs i))) (zeroOneLoss Bool) ≥ ε}
have h_upper : μ upper ≤ ENNReal.ofReal (2 * gf_exp) := by
have h1 := symmetrization_step D C c hmeas_C hc_meas m hm ε hε hm_large
have h2 := double_sample_pattern_bound D C c hmeas_C hc_meas m hm ε hε hE_nullmeas
calc μ upper ≤ 2... |
9,375 | lean_file_chunk | 1187c217d59e8871271cf0cda549248a3f508bd56d484f8547ccb0cf5a03198a | lean_source_file | lean_pool_source_file_chunks | exact (hh' (measurableSet_singleton _) |>.inter (hc' (measurableSet_singleton _))).union
(hh' (measurableSet_singleton _) |>.inter (hc' (measurableSet_singleton _)))
set μ := MeasureTheory.Measure.pi (fun _ : Fin m => D)
set Bad := { xs : Fin m → X | ∃ h ∈ C,
|TrueErrorReal X h c D -
... |
2,008 | lean_file_chunk | 76c0e955dbae862a372c1be641bb20539c762ea6a5cf8f5a9d25280e60a16e6b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import Mathlib.Order.BoundedOrder.Basic
import Mathlib.Data.Finset.Card
import Mathlib.Data.Set.Card
/-!
# VC Dimension and Shat... |
954 | lean_file_chunk | 2991456ed577f470b326628fcf136a571174b8961544fdae3b6bdfbeb0d21052 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import LeanPool.FormalLearningTheory.Complexity.Littlestone
import LeanPool.FormalLearningTheory.Complexity.Ordi... |
10,432 | lean_file_chunk | 4789ee649a4c3c496839f51ab0ddb73e379d994b71bd25a3f1d5c9f68c09c90b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import Mathlib.Computability.TuringMachine.StackTuringMachine
import Mathlib.Computability.Primrec.List
import Mathlib.Computabil... |
6,077 | lean_file_chunk | f6874f423c2bbcbfba3b490e03eeb29f81810be5efe0db38552ece8547a1097a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.... |
4,133 | lean_file_chunk | f51670fe25da01c586f32a3017e66395e97d56b82f9a4fff622ab2fc418f7b1b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Gold-Style Success Criteria (I... |
2,720 | lean_file_chunk | 94b73605a8e7512321d1d5e9a8ac563e8882a7498ccdba86940bd4e11bfaaf1d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Online Learning Criteria
Mistake-bounded learning, online learnability,... |
4,445 | lean_file_chunk | b5e444a203e0b1291f1ef9a0f3e58ab3fc28f467922ea1375487a2d6b1d1b55e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.... |
486 | lean_file_chunk | 9e9f7fa6490bb8a848ef3747861a35beb07ce0f7a4d47f390d087d930c48ec9c | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.Gold
import LeanPool.FormalLearningTheory.Criterion.PAC
import LeanPool.FormalLearningTheory.Criterion.Online
import LeanPool... |
6,413 | lean_file_chunk | 1b22d269684e6664c2fd2194d4fbee16f79f72134681c9d245392a8daea3c231 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import Mathlib.MeasureTheory.Measure.MeasureSpace
import Mathlib.Probability.ProbabilityMassFunction.Basic
/-!
# Data Presentati... |
5,165 | lean_file_chunk | dafd2fea49e25aff96d12c98ca3b95f35bf680f4b5c6675e0e77df7040b5fbe9 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Active Learning, Teachers, and Meta-Learning
Active learners query oracles. Teachers present data strategically.
M... |
2,197 | lean_file_chunk | bad239d309ba36abf0e00a7f5cf1bb71dafbd6823ba2dbbeb9735f883c66e583 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Bayesian Inference and Learners
BayesianInference bundles prior, likelihood, and posterior computation.
BayesianLe... |
8,160 | lean_file_chunk | b7276e7779556c8d1498e05941e6817b35573766be83b8181006fe416281613d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.Complexity.Generalization
/-!
# Closure of Measurable Learners under Combiners and S... |
3,489 | lean_file_chunk | 1b2e5d128c6bdfe95d30b709c57fc970cb06f6ed40964ade14ae6218e3e0aea0 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Computation
/-!
# Core Learner Types
The three p... |
5,031 | lean_file_chunk | 48d6ed990cb6b2de7bd80e925b1b104042b7f2cb0e68604a7318882ce796b1aa | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Closure
import LeanPool.FormalLearningTheory.PureMath.ReaderMonad
/-!
# Measurable Batch Learner Monad
MeasurableBatchLearner... |
2,650 | lean_file_chunk | be747156cad74be33e104c7e768edb7aaf1065f487baae4c8ff91cece57ebe51 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Learner Properties
Properties that learners may satisfy: iterative, set-driven, consistent,
conservative, passive.... |
7,789 | lean_file_chunk | b6e1b9b411c9dd02c412966005c2dd4acca02143e2bdc963a91a00b3e36cd239 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
/-!
# Version Space Learner: Measurable Selection via Countable Enumeration
A version space learner outputs the first hy... |
481 | lean_file_chunk | d0354edf3ad659fd50b19b45c1520e74e68d36400ee96adfb655d4296a2841a3 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Learner.Core
import LeanPool.FormalLearningTheory.Learner.Properties
import LeanPool.FormalLearningTheory.Learner.Active
import LeanPoo... |
6,253 | lean_file_chunk | a29021216d9f8c0c4370561736c959c681349b49ef6b585923bf278210434338 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Basic
import LeanPool.FormalLearningTheory.Data
import LeanPool.FormalLearningTheory.Learner
import LeanPool.FormalLearningTheory.Crite... |
5,725 | lean_file_chunk | 51e73a3a19e6701f4fe2b0d37970e2834321e70d904d25013311e5594d1d13fe | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.PureMath.ChoquetCapacity
import Mathlib.MeasureTheory.Measure.NullMeasurable
import Mathlib.MeasureTheory.Measure.Real
/-!
# Analytic ... |
23,975 | lean_file_chunk | e32ec65a9cd090ca0495e316e50e2c09356f3ef50a0c26a6a2c091521f65513e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.PureMath.KLDivergence
import Mathlib.Algebra.BigOperators.Field
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Analysis.Special... |
2,441 | lean_file_chunk | 8f88554bf246dec8afbc5e02e9de9c329e820d495dd2866a14edeb6d2ab4f9c8 | lean_source_file | lean_pool_source_file_chunks | ((1 - η) * Real.log (N : ℝ)) / (η * T) ≤ ε / 4 := by
apply (div_le_iff₀ hηTpos).2
nlinarith [haux, hlog_nonneg]
linarith
/-- **Genuine approximate minimax via MWU regret extraction.**
If every column mixture admits a pure row with expected payoff ≥ v,
then there is a row mixture with payoff ≥ v - ε a... |
9,792 | lean_file_chunk | 58591b82703368700a7fc9844ae2fab0c2cd3a21af48b4e1fc934fa7be1c58b5 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.Combinatorics.SetFamily.Shatter
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.... |
18,633 | lean_file_chunk | 152cb5041fc1936c11d5fa8f7dc95df326b3ff254294afa908b45d111fe11e57 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.MeasureTheory.Constructions.Polish.Basic
import Mathlib.MeasureTheory.Measure.Regular
import Mathlib.MeasureTheory.Measure.RegularityCompacts
import Mathlib.... |
7,116 | lean_file_chunk | b57dd2ecd9775a00cdad98638897991159b21c38e5eb9cd4c0c228571f1d5b9c | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.MeasureTheory.Measure.MeasureSpace
import Mathlib.Probability.Independence.Basic
import Mathlib.MeasureTheory.Function.LpSeminorm.Basic
import Mathlib.Measur... |
5,809 | lean_file_chunk | c636ab2b333cb75ab0feddf8a650795c3dfe5dad57faecbc42e69295ab7931b7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.MeasureTheory.Constructions.Pi
import Mathlib.MeasureTheory.Measure.FiniteMeasureProd
/-!
# Exchangeability and Double-Sample Infrastructure
Pure mathemati... |
8,504 | lean_file_chunk | 20bc98517ff5a8dff6b039ebe5bdd7e9984511caa4afc84e1d27a6c218ec1fcf | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.PureMath.ApproxMinimax
import LeanPool.FormalLearningTheory.PureMath.BinaryMatrix
/-!
# Finite Sample Approximation for FinitePMF
Inf... |
2,118 | lean_file_chunk | cc14caca321a0f4d617da7dc1ed1302ba204aa6664673254c531739c1021d3e0 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
/-!
# KL Divergence and Finite PMFs
Pure mathematical infrastruc... |
2,423 | lean_file_chunk | 6925a82db13ff49a8cfecc7456a49e9b209291a0503710279609d3e9907b0221 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
/-!
# Reader Selection Monad
A pure mathematical monad: a family of functions indexed by ι, composed with
a data-dependent selector. This is the Reader monad with indexed... |
17,583 | lean_file_chunk | 6ad20d9b0390185dcf543d862bde245914387886e4dfd4d0c71de4caf9f992f8 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.BorelAnalyticBridge
import LeanPool.FormalLearningTheory.Complexity.Generalization
/-!
# Borel-Analytic Separation: Counter... |
23,948 | lean_file_chunk | 63adf20d251bd7aa51a3e0bace1783e7fe297665a83c434d9d1f67883830f5cb | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.PAC
import LeanPool.FormalLearningTheory.Criterion.Extended
import LeanPool.FormalLearningTheory.Complexity.VCDimension
impor... |
23,953 | lean_file_chunk | 8a44976d8c2d39d85795df9a3061b84ca30f5611398ceb35b85ce220d790c83c | lean_source_file | lean_pool_source_file_chunks | have h_empR : Measurable (fun p : (Fin m₁ → X) × (Fin m₂ → X) =>
EmpiricalError X Bool (LA.learnWithAdvice a (fun i => (p.1 i, c (p.1 i))))
(fun j => (p.2 j, c (p.2 j))) (zeroOneLoss Bool)) := by
simp only [EmpiricalError]
split
· exact measurable_const
· apply Measurable.div_const
a... |
12,247 | lean_file_chunk | 71f70a5d8cd977a130fc7d17672e6e48836f2dc8f18912e1bc0e6cdccac57d97 | lean_source_file | lean_pool_source_file_chunks | MeasureTheory.measure_union_le _ _
_ ≤ ENNReal.ofReal (δ / 2) + ENNReal.ofReal (δ / 2) := by
apply add_le_add _ hBadVal_prod
have hrect : {p : (Fin m₁ → X) × (Fin m₂ → X) | p.1 ∉ GoodTrain} =
GoodTrainᶜ ×ˢ Set.univ := by ext p; simp
simp_all
... |
12,795 | lean_file_chunk | 50f4d959f9175ab89c5a02dac9bcb27245593726c4b2431acbf40b48dea3bdfc | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.Gold
import LeanPool.FormalLearningTheory.Complexity.MindChange
/-!
# Gold's Theorem and Mind Change Characterization
The f... |
22,341 | lean_file_chunk | 4f18bdcd20de1b3c27d65dd37b649e40157907644d5b0a97286308ddd15d0c66 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.GameInfra
/-!
# Online Learning Characterization Theorems
Characterization proofs for online learnability via the Littlest... |
19,327 | lean_file_chunk | da14b308ce34b6907c6591477e80c32a9c799648987acdce1329fecce472f23a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.PAC
import LeanPool.FormalLearningTheory.Complexity.VCDimension
import LeanPool.FormalLearningTheory.Complexity.Rademacher
im... |
21,238 | lean_file_chunk | 7dc13fd4bfa8cfab2732cfa5d39f9a9b1b49cea7c8cf1969c9551a91f46877eb | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Complexity.Generalization
import LeanPool.FormalLearningTheory.Complexity.Symmetrization
import LeanPool.FormalLearningTheory.PureMath.... |
23,974 | lean_file_chunk | d048729c6a514df68ba24d9532932658047517b123ee89c14df3795d1e60ae91 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Criterion.PAC
import LeanPool.FormalLearningTheory.Criterion.Online
import LeanPool.FormalLearningTheory.Criterion.Gold
import LeanPool... |
23,956 | lean_file_chunk | 80aab4a3a21033f703302140b4a26031325d7037358d7ceee82ee7d1c615ab69 | lean_source_file | lean_pool_source_file_chunks | ext x; simp [ne_eq, Set.mem_compl_iff]
rw [this]
exact (measurableSet_eq_fun (hhs_meas j) hc_meas).compl
let G : X → ENNReal := fun x =>
∑ j ∈ good, (bad j).indicator (fun _ => (2 : ENNReal)) x
have hG_meas : Measurable G := by
refine Finset.measurable_sum good ?_
intro j _
exact Measurable.... |
10,656 | lean_file_chunk | d0d71e81557b3ba241515b7eff29a6ec46c98c75565b76ac31a4a17db08a5238 | lean_source_file | lean_pool_source_file_chunks | restricted to thresholds in interval [lo, lo + 2^d - 1].
The concept class parameter C should contain all thresholds (· ≤ n) for lo ≤ n ≤ lo + 2^d - 1.
We show the tree is shattered by C when C ⊇ these thresholds. -/
private noncomputable def thresholdTree (lo : ℕ) : (d : ℕ) → LTree ℕ d
| 0 => .leaf
| d + 1... |
476 | lean_file_chunk | d109a75a5ba4fa169bdceaeddc6b47636e37c76f7ad5a2c1fa938e5ae9748ac7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Theorem.Gold
import LeanPool.FormalLearningTheory.Theorem.PAC
import LeanPool.FormalLearningTheory.Theorem.Online
import LeanPool.Forma... |
1,499 | lean_file_chunk | 6b3f303e7f08fe2ee19c2ad604af1c4a98e27f416f6c6f713cff9447c6447c6d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Dhruv Gupta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Gupta
-/
import LeanPool.FormalLearningTheory.Theorem
/-!
# Formal Learning Theory Kernel
Source: url:https://github.com/Zetetic-Dhruv/formal-learning-theory-kernel
Authors: Dhru... |
2,443 | lean_file_chunk | beb07e890e7efe61e2a0a6d887e778a5a6feed90ad6d4d2446c65b85dc31fea6 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.Algebra.Regular.Defs
import LeanPool.FormalizationOfBoundedArithmetic.IOPEN
import LeanPool.FormalizationOfBoundedArithmetic.IDelta0
/-!
# LeanPool.FormalizationOfB... |
6,164 | lean_file_chunk | 808a7098ee4194080fb94f18e584e2417b03bf63e4b84dcc6f38926a35a6b108 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Lean.Elab.Command
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Semantics
import LeanPool.FormalizationOfBoundedArithmetic.IsEnum
import LeanPool.Formalizati... |
2,799 | lean_file_chunk | 902facd9ad1ace0a62cae67b3f733b26471f1a1ca9158ca8d1319b99482e5c09 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Semantics
import LeanPool.FormalizationOfBoundedArithmetic.LanguagePeano
/-!
# LeanPool.FormalizationOfBoundedArithmetic.BasicSingleSorted
-/
open First... |
16,084 | lean_file_chunk | 34267cce7e9861dbca3c7fb38631e46bb546202cc4151e13775268f7be26825c | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Complexity
import Mathlib.ModelTheory.Syntax
import LeanPool.FormalizationOfBoundedArithmetic.DisplayedVariables
import LeanPool.FormalizationOfBoundedAr... |
13,108 | lean_file_chunk | b11e5f2a8b34c94fc7d00d2ae4349d13b9fb67df7e457cd24cc65444159ce53f | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Semantics
import Mathlib.Tactic.FinCases
import LeanPool.FormalizationOfBoundedArithmetic.IsEnum
import LeanPool.Formali... |
14,057 | lean_file_chunk | a1b0565ff5a6f58805b5525ce43a17a04afc0f420743a1fab8b5c9dbdcb6de3f | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
-- import Mathlib.Algebra.Ring.Defs
import LeanPool.FormalizationOfBoundedArithmetic.DisplayedVariables
import LeanPool.FormalizationOfBoundedArithmetic.Complexity
import LeanPool.... |
11,830 | lean_file_chunk | 467a23c32387212f865e1a29c89b2f72ebdb8a16c6609d79e118d775b1273b92 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
-- for a quick demo, jump straight to `theorem add_assoc`
import Mathlib.Tactic.Core
import Mathlib.Logic.Basic
import Mathlib.Tactic.Common
import Mathlib.Tactic.Linarith
import Ma... |
4,312 | lean_file_chunk | b49c853909106cb80c8b7b24899ba96008511880912f995d9f2ed5aad0ac20de | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
-- Source: the example from https://lean-lang.org/doc/reference/latest/Type-Classes/Deriving-Instances/
-- extended with case for empty type
import Lean.Elab.Deriving.Basic
import M... |
3,846 | lean_file_chunk | 83e2134c0b38b41b988ec54f3702b69110cfd032ab0deb60d1f65d3e8d8df933 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Order
import LeanPool.FormalizationOfBoundedArithmetic.Register
/-!
# LeanPool.FormalizationOfBoundedArithmetic.LanguagePeano
-/
universe u v
namespac... |
8,494 | lean_file_chunk | 66f30f21f85ba92d8c8be446ec6a424c75b26702e83f662a52f3112c91f9ce43 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Order
import Mathlib.ModelTheory.LanguageMap
import LeanPool.FormalizationOfBoundedArithmetic.DisplayedVariables
import... |
1,207 | lean_file_chunk | c794e0344ade5bd6aec8d8270540ce5f52bc41ef43cd826a81e83d3a0166ef2a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
-- In this file this is crucial to be careful with imports,
-- as all `simp` lemmas in scope will get our `delta0_simp` attribute!
import Lean.Elab.Command
import Mathlib.Lean.Meta.... |
5,726 | lean_file_chunk | 4cb8656ace6b98ef297bb5b164e6690c5fd48220d5302f54a2e1f7bbfd3d10e7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
import Mathlib.ModelTheory.Syntax
import Mathlib.ModelTheory.Order
import Mathlib.Tactic.FinCases
import LeanPool.FormalizationOfBoundedArithmetic.DisplayedVariables
import LeanPoo... |
547 | lean_file_chunk | aed9018fc4d9e1ee6f65470d7c60f8939be2e18ffc4ae0d342a2ef60ee09a03e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 ruplet. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ruplet
-/
-- only here we register simp attributes
-- details: https://leanprover-community.github.io/mathlib4_docs/Mathlib/Tactic/Attr/Core.html
import Lean
/-!
# LeanPool.FormalizationOfBo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.