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 |
|---|---|---|---|---|---|
3,271 | lean_file_chunk | 0cbbc21ef66c088124f8bccfaf13e52d2c6f943091ad4c28912dc79e37e09b18 | lean_source_file | lean_pool_source_file_chunks | theorem pairT_sub {D : RS.Divisor X} (θ₁ θ₂ : MForm X) (hθ₁ : θ₁ ∈ MForm.OmegaSpace (-D))
(hθ₂ : θ₂ ∈ MForm.OmegaSpace (-D)) (hθ12 : θ₁ - θ₂ ∈ MForm.OmegaSpace (-D)) :
pairT (θ₁ - θ₂) hθ12 = pairT θ₁ hθ₁ - pairT θ₂ hθ₂ := by
apply DFinsupp.lhom_ext
intro p x
obtain ⟨ψ, rfl⟩ := TailAt.mk_surjective p D x
... |
15,078 | lean_file_chunk | de2a962c1f5c3f8307304a2acbea27fdbe0966f70ef3c5118c0119b2ea172cf9 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Rado Kirov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rado Kirov
-/
import LeanPool.JacobianDiffgeo.LaurentTail.Truncation
/-!
# `truncT`/`singleT`/`mulInto`/`nuL`: the truncation and multiplication kit (serre-duality-tails)
Unit: serre-du... |
6,788 | lean_file_chunk | 7cbcdd6754d18a5d1aceed9b00e6f0ea8198730b2d0d9f05d1be839c0e69b571 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Rado Kirov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rado Kirov
-/
import LeanPool.JacobianDiffgeo.TailDuality.TailOps
import LeanPool.JacobianDiffgeo.TailDuality.Pairing
import LeanPool.JacobianDiffgeo.TailDuality.Counting
import LeanPool.... |
1,987 | lean_file_chunk | bfa318c82b58b63c25f556dd44d94a9c7d059cdfdf253858b1d91a987de21e47 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Rado Kirov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rado Kirov
-/
import LeanPool.JacobianDiffgeo.Init
import LeanPool.JacobianDiffgeo.Surface
import LeanPool.JacobianDiffgeo.LocalMultiplicity
import LeanPool.JacobianDiffgeo.Forms
import L... |
12,760 | lean_file_chunk | 81a7367b47aa080eede7f0568ed9c4f276797c22b889bb536e73f51c2328ed46 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.SquaredGaussian
/-!
# Chi-squared moment generating function and concentration
Building on `sqGaussian_mgf`, this file constructs t... |
3,836 | lean_file_chunk | e38e3c6256bcce1f8670e72945386f3cadf731876c17c915f31c8e237f8dc25d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.Rotation
import LeanPool.JohnsonLindenstraussLean.Lemma
/-!
# The end-to-end Gaussian Johnson–Lindenstrauss theorem
This file assem... |
14,528 | lean_file_chunk | dea90043eb7f62866bb47bc5638511fbcf89c4a30c090424d4864a429ae9b616 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import Mathlib.Probability.Moments.SubGaussian
import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus
import Mathlib.Analysis.Calculus.MeanValue
import Mathli... |
3,146 | lean_file_chunk | 0e1efaf1a8962f7ec19c171a296aaf2f0abd4cc6190d7deeca108093c6cc83e0 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.NormPreservation
/-!
# Inner-product preservation (unquantized Gaussian-projection corollary)
Via the polarization identity `⟪u, v⟫... |
3,906 | lean_file_chunk | d2e4ea6655fea4a91589c1242be65059aa5bce54e4b4577192c3a0f466fac1e8 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.NormPreservation
import LeanPool.JohnsonLindenstraussLean.Projection
/-!
# The Johnson–Lindenstrauss embedding-existence theorem
Th... |
2,553 | lean_file_chunk | af639f81f2dfbddfe5741cf54655e9100af6435fcbad7a969c10314d2b9ce69a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.ChiSquared
/-!
# Distributional Johnson–Lindenstrauss norm preservation
Combining the two one-sided chi-squared tail bounds of `JL.... |
2,083 | lean_file_chunk | 38575df7c72fa62f6e8f5e85f7a986ed1b223751b9934bd7f92688b5ade91b3e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.LinearAlgebra.Matrix.DotProduct
import Mathlib.Probability.Distributions.Gaussian.Multivariate
import Mathlib.Pr... |
16,749 | lean_file_chunk | d1eaa3e3550450f769e18c293370fcf75057de473f598e8ec2f6704299df44f3 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import Mathlib.Data.Real.Sign
import LeanPool.JohnsonLindenstraussLean.Rotation
/-!
# Quantized Johnson–Lindenstrauss (QJL): unbiasedness of the 1-bit estimator
This file f... |
23,987 | lean_file_chunk | b05b93261b5bbb513cc1679d1c68ecfde78e58f4464bc7837cea7dbc11d3ff8a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.QJL
import LeanPool.JohnsonLindenstraussLean.GaussianTail
import Mathlib.Probability.Moments.Variance
import Mathlib.Probability.Mome... |
10,287 | lean_file_chunk | 96a1a3a5b6190cb2d414958f036b186d09d0ac94d482fda9a6266aedf87d3906 | lean_source_file | lean_pool_source_file_chunks | have hB : rexp (t * s0 * Real.sign a * b) ≤ rexp (k' * b) + rexp (-k' * b) := by
have hbnd : t * s0 * Real.sign a * b ≤ k' * |b| := by
calc t * s0 * Real.sign a * b
≤ |t * s0 * Real.sign a * b| := le_abs_self _
_ = |t| * s0 * |Real.sign a| * |b| := by
rw [abs_mul, abs_m... |
8,612 | lean_file_chunk | 7fd49f5acb0e77db1fd12c2028b0e6de4e11a7feae4484da641ac12384b55c38 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.NormPreservation
import LeanPool.JohnsonLindenstraussLean.Projection
/-!
# Gaussian rotation invariance: the projection ↔ chi-square... |
2,347 | lean_file_chunk | 11731732dfd77f8f4589aaf03183c4f6e8003d9d7999efd3495c3c297d2bb7e3 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import Mathlib.Probability.Distributions.Gaussian.Real
/-!
# The moment generating function of a squared standard Gaussian
This file proves the flagship analytic lemma of t... |
3,528 | lean_file_chunk | 230c1d14a263801872c67cca774f299b197fd627e2c0afb49969cff3526b80f7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.SquaredGaussian
import LeanPool.JohnsonLindenstraussLean.ChiSquared
import LeanPool.JohnsonLindenstraussLean.Projection
import LeanPo... |
2,091 | lean_file_chunk | 4db74478a166fe865cf91f9196c433d3e1e91f84a4790b3570cf9f60ee45ac46 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 claytomode. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: claytomode
-/
import LeanPool.JohnsonLindenstraussLean.ChiSquared
import LeanPool.JohnsonLindenstraussLean.EndToEnd
import LeanPool.JohnsonLindenstraussLean.GaussianTail
import LeanPool.J... |
23,934 | lean_file_chunk | 2eb3376a0174419251140e115b9598db3d28d7e8467bf8fce0e0c5a3f7014665 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Weighted finite collections and certificate mass decomposition
This file defines the weighted collection framework and the positive/negative
mass decomposition of ... |
1,813 | lean_file_chunk | 11ef61855a583a08c7897141dbab430fd1ffc4bbfc50053fd810929ac078241d | lean_source_file | lean_pool_source_file_chunks | /-- Total weight of a uniform collection equals the cardinality. -/
lemma WeightedCollection.uniformOfFamily_totalWeight
{J : Type u} [Fintype J] [DecidableEq J]
(sets : J → Finset U') (hJ : 0 < Fintype.card J) :
(uniformOfFamily sets hJ).totalWeight = Fintype.card J := by
simp [totalWeight, uniformOfFami... |
11,779 | lean_file_chunk | 0bf6d08376ab9f8fc64b210332c2f5d2dd63115b491d5ef1986e266c9d17afce | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Definitions for the Kalton–Roberts formalization
This file contains the core definitions used throughout the formalization of
the companion paper.
-/
import Mathli... |
21,682 | lean_file_chunk | 3700d28d1c926291edcbdb67678a1d259dd16abad4f43d1dc77e234637f60118 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Dual certificate existence (Lemma 2.1)
This file proves the existence of a dual certificate for the best ℓ∞
approximation from the additive subspace, using the geo... |
15,826 | lean_file_chunk | 9b9f0b780ef33da0fdf63be0c737912f90d4e93fc408c7a6b632415fdbeadc60 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Epsilon-loss recombination theorems
Bridge from arbitrary real-weighted `WeightedCollection` to the finite
uniform recombination theorem (`one_sided_recombination_... |
18,610 | lean_file_chunk | b010a39bd4d08c907fda2ae80586a9a78000628b8dc62e42ba478d608c398e58 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Product and mixed intersection collections
This file constructs product intersection collections and mixed intersection
collections, proving the frequency and defi... |
18,205 | lean_file_chunk | cc7f9eb61975dfafa28f6941e4c863a7945001a297bca04542cd088be189edc4 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Key lemmas from the Kalton–Roberts paper
This file formalizes the mathematical lemmas from Sections 1–4 of
the companion paper.
-/
import LeanPool.KaltonRoberts.De... |
13,329 | lean_file_chunk | b3ec77f56d6f04e99de17f4f04ec419c01624fdf7120c51d5be24f322c1b4b46 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Log bounds for Phi endpoint proofs
Each log bound is proved using the atanh series:
- `Real.sum_range_le_log_div` for lower bounds on `log((1+t)/(1-t))`
- `Real.lo... |
14,647 | lean_file_chunk | 11b3144b4ca7a42a710b2f0d286865521b0f9c70a648a70173d82820c31ad417 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Main theorem: the Kalton–Roberts upper bound
This file states and proves the main result of the companion paper:
the Kalton–Roberts constant satisfies `K_KR < 9919... |
9,698 | lean_file_chunk | ec16c2c0da8729b0dc29ab021fdae7e4a51143272ad87fd472390ca28d8ceed0 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Numerical verification for the Kalton–Roberts bound
This file contains the exact rational-arithmetic verifications described in
Sections 4–5 of the companion paper... |
18,537 | lean_file_chunk | 16d9744e38df3cf05bf7c3de84a8213ae86dde143d4ed70f08637509f3a3aebf | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Phi function analysis: convexity, endpoint bounds, interval negativity
This file provides the analytic tools needed to prove `Phi_neg_Eᵢ` for each
row of the expan... |
13,777 | lean_file_chunk | dd13677cf93d2708597e29619c98cc0cf43da76512b50208cf732651dd119506 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Derivative computations for the Phi function
-/
import LeanPool.KaltonRoberts.Defs
/-!
# Derivative computations for the Phi function
First and second derivative ... |
23,977 | lean_file_chunk | 770b3e987d96f5387dcb351f814d6238c85d70d71097806ef19c8a821fa2163e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Pipeline: mixed intersections, recombination, and the spine theorem
This file provides the honest mathematical interfaces connecting
weighted collections (from `Co... |
2,816 | lean_file_chunk | 664c84f498e0171b9686f987b44cf3574b40afcce04fd2810790a2286488a6b6 | lean_source_file | lean_pool_source_file_chunks | exact le_trans hC_def_i hC_def_i_le) (by
intro i
have hp_le_p0 : cert.posMass ≤ (↑p₀ : ℝ) := by
have h1 := cert.posMass_add_negMass
have h2 : (↑p₀ : ℝ) = 1 - (↑q₀ : ℝ) := by exact_mod_cast p₀_eq
linarith
have hp_nn : 0 ≤ cert.posMass := cert.posMass_nonneg
have h_freq_sur : C_sur.itemFreq i ≤ (1 - τ... |
19,982 | lean_file_chunk | bc21df5ddac8e55889adcb9bba8b82ccae652f66805a57ea2516293f105994b0 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Epsilon pipeline: spine theorems and final C₂ bound
Uses `one_sided_recombination_core_eps` and `two_sided_recombination_core_eps`
from `EpsilonRecombination.lean`... |
23,999 | lean_file_chunk | 5092de2f83ba87c086eec0582b59aaf1b038ac84d9ed899c009748fa7670c82b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Pippenger expander construction (Lemma 4.1)
This file isolates the Pippenger probabilistic construction from Section 4 of
the companion paper. It provides:
1. A `... |
18,086 | lean_file_chunk | 565762a9005d17501d37ae2519d2cb8b12eba466ce2c3fe7e8f677b0e2169cf2 | lean_source_file | lean_pool_source_file_chunks | nlinarith [tail_bound_E₃_simplified, hmul]
rw [hbase_eq]
exact pow_le_pow_left₀ (by positivity) hbase_le m
theorem bad_ratio_sum_E₃_core (t : ℕ) (ht : 0 < t)
(hdec : 50 * (((8750 * t : ℕ) : ℝ) ^ 2) *
Real.exp (-(1 / 500 : ℝ) * ((8750 * t : ℕ) : ℝ)) < 1 / 2) :
(∑ m ∈ Finset.Icc 1 (1316 * t),
(... |
23,998 | lean_file_chunk | eba26bf1724b008a2d0dfee6a87c917f0a8777087100bd2d8e9639eda7a89c54 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# Pippenger expander construction proof
This file contains the probabilistic counting argument proving existence of
expanders for the four rows needed by the Kalton-... |
23,968 | lean_file_chunk | 2eac89b9b2f3913bcb47fc78d212d14f4bc45d6e83818330c2de86067a81776b | lean_source_file | lean_pool_source_file_chunks | simpa [mul_assoc] using hN
/-! ## Entropy bounds for Pippenger bad events -/
theorem h_entropy_scale (t a b : ℝ) (ht : t ≠ 0) (ha : a ≠ 0)
(hb : b ≠ 0) (hab : a - b ≠ 0) :
hEntropy (t * a) (t * b) = t * hEntropy a b := by
unfold hEntropy
rw [Real.log_mul ht ha, Real.log_mul ht hb]
have htab : t * a - t ... |
7,617 | lean_file_chunk | ff6d5d6e379bf1cff994e806afcba813c46026dd402b6bb8a8b9ea4330403bae | lean_source_file | lean_pool_source_file_chunks | (∀ S : Finset (Fin N), S.card ≤ A →
(S.biUnion (fun v => Finset.univ.image (edge v))).card ≥ S.card) := by
classical
let M := r * N
let eL : (Fin N × Fin r) ≃ Fin M :=
Fintype.equivOfCardEq (by simp [M, Nat.mul_comm])
let eR : (Fin L × Fin c) ≃ Fin M :=
Fintype.equivOfCardEq (by simp [M, Nat.mul... |
23,992 | lean_file_chunk | 0f3d59a398f3612ef9ab34c40e5ec25918dd953c6295ad6bbf69d5039c6aa41d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# One-sided recombination: witness-level theorem
This file proves the witness-level version of Lemma 3.2 (one-sided recombination)
from the companion paper.
**Refer... |
1,045 | lean_file_chunk | fa08d7d30da6ad51170b43008dbbda914bdce6c6d1163db15a415d97da239066 | lean_source_file | lean_pool_source_file_chunks | intro i; exact targetSet_freq_source_count_bound edge C threshold hexp hfreq' i
· -- Frequency bound (corollary): target count ≤ threshold
intro i; exact targetSet_freq_bound edge C threshold hexp hfreq' i
· -- Deficit inequality
-- Apply the recombination_source_target_ineq lemma to get the inequality.
... |
13,587 | lean_file_chunk | c8970c5a667e8713fd7da5794ddb7d177a54e3f80acf945e7c6b6455c4474bee | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
/-
# One-sided recombination: finite-uniform core theorem
This file proves the finite-uniform version of Lemma 3.2 from the paper,
which takes a finite uniform family o... |
784 | lean_file_chunk | 7655ddea74b284cfa08ce6a2d4a74962567e973457fd1a8400cf5908e3cdf65b | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ho Boon Suan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ho Boon Suan
-/
import LeanPool.KaltonRoberts.Defs
import LeanPool.KaltonRoberts.Numerical
import LeanPool.KaltonRoberts.Collections
import LeanPool.KaltonRoberts.Lemmas
import LeanPool... |
8,665 | lean_file_chunk | 84c016997e83f997a98cbb77f7ea4f5781a0f115d4483a879f6c84558adf2b57 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle (https://aristotle.harmonic.fun).
Lean version: leanprover/lean4:v4.28.0
Mathlib version: 8f9d9cff6bd728b17... |
5,053 | lean_file_chunk | a7201082fcbb4ce841ab317fe57f57c1d82c190303856251cfa12e1db51d5581 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle (https://aristotle.harmonic.fun).
Lean version: leanprover/lean4:v4.28.0
Mathlib version: 8f9d9cff6bd728b17... |
1,265 | lean_file_chunk | df8d533c60197670b578537b5ec656c1907c6e6939379f7955188534099e6e74 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela, Google DeepMind
-/
import LeanPool.KrafftSieve.OptimalWeights
/-!
# Main Theorem
-/
namespace KrafftSieve
/--
Theorem: If there are infinitely many intervals ... |
23,987 | lean_file_chunk | e0ac6c5b6f2cddd53c53e9a40323c393b69a8423ceb1bba412b5cc9600c07f04 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle (https://aristotle.harmonic.fun).
Lean version: leanprover/lean4:v4.28.0
Mathlib version: 8f9d9cff6bd728b17... |
7,015 | lean_file_chunk | 5b47a123a34f41e375764be55d08943d7c8163c0ec32a661e4ec95acde3db64a | lean_source_file | lean_pool_source_file_chunks | -- By definition of $q1$, we have:
-- $q1(u + v) = \sum_{x \in evalInterval} (P_{\text{multi}} n (u + v) x)^2$.
have hQ_1_def : ∀ (lambda : Idx n → ℝ),
q1 n lambda = ∑ x ∈ evalInterval n, (pMulti n lambda x)^2 := Q_1_sum_sq n
-- Since $u \in \ker(q1)$, we have $P_{\text{multi}} n u x = 0$ for all $x... |
16,030 | lean_file_chunk | 316bc65340dba69eb5a12135a1a375f8125b106097e4d4cf703d5709c5bfe6c7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle (https://aristotle.harmonic.fun).
Lean version: leanprover/lean4:v4.28.0
Mathlib version: 8f9d9cff6bd728b17... |
23,987 | lean_file_chunk | 93feb9befd70dd1f9acc144b138b96afad3da0ed6a7b869ebe2db9b88f66817d | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle (https://aristotle.harmonic.fun).
Lean version: leanprover/lean4:v4.28.0
Mathlib version: 8f9d9cff6bd728b17... |
18,986 | lean_file_chunk | a9959bf224a9a067f0814461aa930e7aa0dfa7adf8f38a469632385a2922a540 | lean_source_file | lean_pool_source_file_chunks | have h_in_P := p_mem_P_n n i
have h_prime := Finset.mem_filter.mp h_in_P
exact Nat.mod_lt _ ((p_prime n i).pos)⟩
generalize_proofs at *
simp +zetaDelta only [Nat.cast_mul] at *
convert congr_arg ( fun x : ℕ => x : ℕ → ZMod ( q n ) ) hk using 1
· convert rfl
convert ZMod.n... |
15,395 | lean_file_chunk | 5a52a81c20cd10b035cf8c4678d1c9ee2fd0e05f63826322b8260783871a5445 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
/-
Portions of this file were generated by Aristotle
(https://aristotle.harmonic.fun).
-/
import LeanPool.KrafftSieve.SelbergWeights
/-!
# Sieve Variance
Thi... |
2,753 | lean_file_chunk | e3a12db5a0bb41b8b0b2910648e90ca407ec7edfcc703a079f272e834456e60a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Fernando Portela. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fernando Portela
-/
import LeanPool.KrafftSieve.Defs
import LeanPool.KrafftSieve.Basic
import LeanPool.KrafftSieve.ThirdHarmonic
import LeanPool.KrafftSieve.Variance
import LeanPool... |
3,225 | lean_file_chunk | ea3d58f3334bbc28d5bacce6cf8b82a54948501564bdee596c8c7a1b068e90af | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import LeanPool.Kuramoto.Weighted
import LeanPool.Kuramoto.Hebbian
/-!
# Connections between the models
Relations between the weighted Kuramoto potential and the Hebbian L... |
2,199 | lean_file_chunk | eaac6eacbf17453f27e237e028e9b30525a46e4b909c583e0c367c8b9fe5c030 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic
import LeanPool.Kuramoto.GradientFlow
/-!
# Pairwise contraction
The relative velocity of two oscillators and ... |
23,963 | lean_file_chunk | 70aa25bf65c1cc2a46623fe3bb57cabc91d44fe8ae858f0cd142c01a4fc2cd09 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Analysis.Calculus.Deriv.MeanValue
import Mathlib.Analysis.Calculus.Deriv.Prod
import Mathlib.Analysis.Calculus.MeanValue
import Mathlib.Analysis.ODE.ExistUniq... |
23,985 | lean_file_chunk | d2d6b6cd83134a5ce0cc3f642dc09e94516913c531a956db5e2469d8c0919a69 | lean_source_file | lean_pool_source_file_chunks | ( lt_of_lt_of_le ht₂ ( min_le_right _ _ ) ) j ⟩;
· have h_exists : ∀ i, g i 0 < C := by
exact fun i => lt_of_le_of_ne ( hg_init i ) fun hi => h_exists
⟨ i, hi, hg_strict 0 i ( by norm_num ) ( fun j => hg_init j ) hi
( fun j => by linarith [ hg_init j ] ) ⟩;
have h_exist... |
9,539 | lean_file_chunk | ae083bcf06f5ef6f3748fa8d4575d2af551b328e13c9e50e311198cc6f30caa6 | lean_source_file | lean_pool_source_file_chunks | ∃ C : ℝ, C < Real.pi ∧ ∀ s, 0 ≤ s → ∀ a b : Fin N, |θ s a - θ s b| ≤ C := by
set D₀ := Finset.sup' (Finset.univ : Finset (Fin N × Fin N))
⟨(⟨0, by omega⟩, ⟨0, by omega⟩), Finset.mem_univ _⟩
(fun p : Fin N × Fin N => θ 0 p.1 - θ 0 p.2) with hD₀_def
have hD₀_lt_pi : D₀ < Real.pi := by
rw [hD₀_def]
exa... |
5,430 | lean_file_chunk | cc638b16492ce96c4a95fd8afb2f82f10535bced4825084e929b4895d54d4d7c | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv
import LeanPool.Kuramoto.OrderParameter
/-!
# Kuramoto gradient... |
8,716 | lean_file_chunk | 2a162824aebc7c41af6d6d6c987e10b76ee6ee1668d49a773993d6ca8c577bf7 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import LeanPool.Kuramoto.Weighted
/-!
# Hebbian phase/weight dynamics
A joint phase/weight Lyapunov function `hebbianL` with a Frobenius weight penalty, the
Hebbian weight... |
1,557 | lean_file_chunk | c92f8b2def9fd61f1b8f97de3346d7fa47112726963b50f70dd313f4233a1f63 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Analysis.Complex.Basic
import Mathlib.Analysis.Complex.Trigonometric
/-!
# Kuramoto order parameter
The Kuramoto order parameter for `N` oscillators with ph... |
7,530 | lean_file_chunk | d1e4e3489ccbdb0c2e30c461a5ca7f66bfd4e1d1e212606a0c923acc45468545 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Deriv
import LeanPool.Kuramoto.GradientFlow
/-!
# Weighted Kuramoto m... |
1,058 | lean_file_chunk | d6ffec90ec7ce0c0bb1032caaab9ee6ef7315ac60243f18c1b35aa0dc44b63d8 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import Mathlib.Algebra.Order.Archimedean.Real.Basic
import Mathlib.Tactic.Linarith
/-!
# Witness geometry
A direct force-magnitude form of the one-dimensional barrier-asym... |
714 | lean_file_chunk | 3f9269a73b85969e0df51165a92b8f572a7fa92d9aea586d6df1c7bef2c847bb | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Ben Cassie. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ben Cassie
-/
import LeanPool.Kuramoto.OrderParameter
import LeanPool.Kuramoto.GradientFlow
import LeanPool.Kuramoto.Contraction
import LeanPool.Kuramoto.Weighted
import LeanPool.Kuramoto... |
23,993 | lean_file_chunk | ed15a97ad012dc3a271d8981270932df3d80e2edbe4dbf8761aee7ea98eebc16 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Evan Chen, Kenny Lau, Ken Ono, Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Evan Chen, Kenny Lau, Ken Ono, Jujian Zhang
-/
import Mathlib.Tactic.Common
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
import Mathlib.Tactic... |
23,993 | lean_file_chunk | f4337755dbeb33bd477f688ca854075159d1f8e767c0e865deff53a611a42050 | lean_source_file | lean_pool_source_file_chunks | have h₁₁ : (C_card + NC_card : ℕ) = L * L := by exact_mod_cast h_partition
have h₁₂ : (C_card : ℝ) + (NC_card : ℝ) = (L : ℝ) * (L : ℝ) := by norm_cast at h₁₁ ⊢
linarith
linarith
lemma coprime_pairs_sieve_lower_bound (A B : ℤ) (hAB : A ≤ B) (B' : ℕ)
(hB' : ∀ p : ℤ, A ≤ p → p ≤ B → ∀ ℓ : ℕ, Nat.Prime ℓ → (... |
23,971 | lean_file_chunk | b03f90b93d598748a7c27d647dc3ab4afecfddc13ebeaddb38f151412cd9f107 | lean_source_file | lean_pool_source_file_chunks | (f : ZMod n → (ZMod n)ˣ → ℂ) (g : ZMod n → (ZMod n)ˣ → ℂ) :
(∑ a : (ZMod n)ˣ,
(∑ k : ZMod n, c k * f k a) * (∑ l : ZMod n, d l * g l a)) =
∑ k : ZMod n, ∑ l : ZMod n,
c k * d l * (∑ a : (ZMod n)ˣ, f k a * g l a) := by
simp_rw [Fintype.sum_mul_sum]
simp_rw [show ∀ (k : ZMod n) (l : ZMod n) (a : (... |
23,936 | lean_file_chunk | 66e74ab9940fa3926356c06f49b0470ca2f558c7fc691a15fc61e38aeaa6952c | lean_source_file | lean_pool_source_file_chunks | ∑ a : (ZMod n)ˣ, ZMod.stdAddChar (a.val * ((m : ZMod n)⁻¹ * s)) =
∑ a : (ZMod n)ˣ, ZMod.stdAddChar (a.val * s) := by
let u := ZMod.unitOfCoprime m hc
rw [show (m : ZMod n)⁻¹ = (u⁻¹ : (ZMod n)ˣ).val by
rw [← ZMod.coe_unitOfCoprime m hc, ZMod.inv_coe_unit u]]
exact ramanujanSum_unit_shift n u⁻¹ s
lemma sum... |
23,991 | lean_file_chunk | 6a27c9651fe0a90a1cd066cf238fcbd1b5d8f98e7f76e4d98a36366c6119e2b6 | lean_source_file | lean_pool_source_file_chunks | have h2 : ZMod.val k ≠ 0 := (ZMod.val_ne_zero k).mpr hk'
exact Finset.mem_Icc.mpr ⟨by omega, by omega⟩
· exact fun _ _ _ _ h => ZMod.val_injective n h
· intro y hy
simp only [Finset.coe_Icc, Set.mem_Icc] at hy
have h1 : y < n := by omega
refine ⟨(y : ZMod n), ?_, ZMod.val_cast_of_lt (by omega)⟩
... |
23,986 | lean_file_chunk | 11366864320f67e07c30ca35b941b670dd2894d6c2756ed7162b0d543460350c | lean_source_file | lean_pool_source_file_chunks | summand_norm_le n p q k l
_ = (Nat.totient n : ℝ) *
∑ k : ZMod n, ∑ l : ZMod n,
(if (k, l) ≠ (0, 0) ∧
((largestPrimeFactor n ^ n.factorization (largestPrimeFactor n) : ℤ)) ∣
(↑(ZMod.val k) * p + ↑(ZMod.val l) * q)
then ‖normalizedDFT n (intervalIndicator n (2 * p - 1)... |
23,948 | lean_file_chunk | 061cdac97846879d75b3de9cce9fbca036d022a44d625feb5bec0e3322ffcdc2 | lean_source_file | lean_pool_source_file_chunks | calc (∑ k ∈ Finset.univ.filter (fun k : ZMod n => k ≠ 0 ∧ (d : ℕ) ∣ ZMod.val k),
∑ u : (ZMod d)ˣ,
(∑ l : ZMod n,
if ((d : ℤ) ∣ (↑(ZMod.val k) * ↑(u : ZMod d).val + ↑(ZMod.val l) * q))
then ‖normalizedDFT n (intervalIndicator n mq) l‖ /
(2 * min (ZMod.val k : ℝ) ((n : ℝ) ... |
23,948 | lean_file_chunk | d8bf2a392db8b4518a141ff456f27711ffe7398bbf18d46cdaa83822cee07cd8 | lean_source_file | lean_pool_source_file_chunks | rw [projection_fiber_card p hp α hα v hv_pos hv_lt s hs_lt hs_cop]
have hpv_pos : (0 : ℝ) < ((p ^ v : ℕ) : ℝ) :=
Nat.cast_pos.mpr (Nat.pos_of_ne_zero (pow_ne_zero v hp.ne_zero))
have hr_ne : (k_val / p ^ v) * s % p ^ (α - v) ≠ 0 :=
reduced_product_mod_ne_zero_of_coprime p hp α hα k_val v hv_pos hv_lt hv_val... |
23,961 | lean_file_chunk | bf9bc17e9ec37c8a2ce173d241dc11cc3f2f220e5be490bd0072c20eb94b7544 | lean_source_file | lean_pool_source_file_chunks | (h : (k_val : ZMod d) * (u_val : ZMod d) + (l_val : ZMod d) * (q : ZMod d) = 0) :
(l_val : ZMod d) = -(q : ZMod d)⁻¹ * ((k_val * u_val : ℕ) : ZMod d) := by
have h₂ : (q : ZMod d)⁻¹ * (q : ZMod d) = 1 := by exact ZMod.inv_mul_of_unit _ hq
have h₃ : (l_val : ZMod d) = -(q : ZMod d)⁻¹ * ((k_val : ZMod d) * (u_val ... |
23,976 | lean_file_chunk | 7326e544bdac01cf612281df5365c40d7cf1314f726f0c94f27797e3702d8362 | lean_source_file | lean_pool_source_file_chunks | ∑ j ∈ (Finset.univ.filter (fun l : ZMod n =>
ZMod.val l % d = b ∧ ¬(2 * ZMod.val l ≤ n))).image
(fun l : ZMod n => (n - ZMod.val l - (d - b)) / d),
(1 : ℝ) / (2 * ((d : ℝ) - b + j * d)) := by
rw [Finset.sum_image (fun l hl l' hl' heq =>
reindex_map_injOn n d hn hd_dvd b hb_pos hb_lt (Finset.me... |
23,935 | lean_file_chunk | d35167e15a3600a0a1206de946dbf937f9e6dbe301b85f8f9ac1aec25c46e167 | lean_source_file | lean_pool_source_file_chunks | exact (Finset.mem_filter.mp hu).2)
have hupper := sum_filter_le_sum_univ d f hf avg R
have hchain : S.card • (↑R * avg) ≤ ↑(Fintype.card (ZMod d)ˣ) * avg :=
le_trans hlower (le_trans hupper hsum)
exact card_mul_R_le_of_nsmul_le S.card (Fintype.card (ZMod d)ˣ) R avg havg0 hchain
lemma markov_card_filt... |
23,946 | lean_file_chunk | 2028db44cb3b97c11de7a0b0b94f65182436e5289c5f83ee69d45811966f2aa3 | lean_source_file | lean_pool_source_file_chunks | (2 * min (ZMod.val k : ℝ) ((n : ℝ) - ZMod.val k))
else 0) ≤ 6 * ↑R * (1 + Real.log ↑n) ^ 2 / ↑d := by
calc _ ≤ ↑R * (6 * (1 + Real.log ↑n) ^ 2 / ↑d) := hS_bound
_ = 6 * ↑R * (1 + Real.log ↑n) ^ 2 / ↑d := by ring
have hu_congr : (p : ZMod d) = ((u : ZMod d).val : ZMod d) := by
rw [ZMod.natC... |
23,954 | lean_file_chunk | 22725f544011d93da2a8c7f06de2f3c318389287c86936af943fbb75c8c854b0 | lean_source_file | lean_pool_source_file_chunks | lemma nat_div_prod_le (a b c d : ℕ) (hc : 0 < c) (hd : 0 < d) :
(a / c) * (b / d) ≤ (a * b) / (c * d) := by
have h₁ : (a / c) * c ≤ a := Nat.div_mul_le_self a c
have h₂ : (b / d) * d ≤ b := Nat.div_mul_le_self b d
have h₃ : (a / c) * (b / d) * (c * d) ≤ a * b := by
calc (a / c) * (b / d) * (c * d) = ((a /... |
11,910 | lean_file_chunk | 157c35e84f7d133e15fa8d437ea9f360126ab58039b0ba7b3f6c0f35aa924191 | lean_source_file | lean_pool_source_file_chunks | have hpos : 0 < n.factorization p := hp.factorization_pos_of_dvd (by omega) hdvd
exact one_lt_pow' hp.one_lt (by omega)
lemma not_two_dvd_of_dvd_odd (n d : ℕ) (hodd : ¬ 2 ∣ n) (hdvd : d ∣ n) : ¬ 2 ∣ d := by
intro h
exact hodd (dvd_trans h hdvd)
lemma totient_sq_mul_of_coprime (a b : ℕ) (hcop : a.Coprime b)
... |
1,948 | lean_file_chunk | 1aaf7f05b342ef5b7a02391538a9039adfcbab09fcb1e23ed840041b00a25d74 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Evan Chen, Kenny Lau, Ken Ono, Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Evan Chen, Kenny Lau, Ken Ono, Jujian Zhang
-/
import LeanPool.LatticeTriangle.Solution
/-!
# On the paucity of lattice triangles
Source: arxiv:2603.239... |
23,926 | lean_file_chunk | ca4c381cf811544cb5a06cc9a4a6fd5f98aaa851bd7625abdc4a4b115f998c01 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.General.Game
import LeanPool.Lean4GlCoalgebras.General.Soundness
/-! ## Prover winning the GL-game builds a GL-proof.
If Pr... |
23,976 | lean_file_chunk | c76f2a18b4cae79ee00815a8ed9f6e53ec161ba2bede889859d180fbf2d62c16 | lean_source_file | lean_pool_source_file_chunks | (by subst g_def; simp [RuleApp.sequents, builderRuleApp])]
| RuleApp.box Δ φ φ_in =>
if rep : (Δ \ {□φ}).D ∪ {φ} ∈ Γs
then [repNext Γ g (by convert rep; grind)]
else
[nextNext g h (by convert rep; grind)
(by subst g_def; simp [RuleApp.sequents, builderRuleApp]... |
23,989 | lean_file_chunk | 75c7bbe9b94d8686090f1d127c171292248b4bcdccd197907ed8ef44e8790a7d | lean_source_file | lean_pool_source_file_chunks | simp only [RuleApp.sequents, Finset.mem_singleton] at Γ'_R
subst Γ'_R
apply Finset.mem_union.mpr
left
rw [Sequent.D]
apply Finset.mem_union.mpr
left
exact Finset.mem_filter.mpr
⟨Finset.mem_sdiff.mpr ⟨φ_in, by simp⟩, by simp [Formula.isDiamond]⟩
case diamond =>
simp only [reduceCt... |
4,550 | lean_file_chunk | 81b4f6b9933dbe064216b170826801778e43ce673c868c7e30917936df1d33da | lean_source_file | lean_pool_source_file_chunks | simp only [RuleApp.sequents, Finset.mem_insert, Finset.mem_singleton,
Finset.notMem_empty] at Γ'_R
case and Δ ψ₁ ψ₂ in_Δ _ =>
have ⟨eq1, eq2⟩ : φ = (ψ₁ & ψ₂) ∧ Γ = Δ := by
rcases Γ'_R with eq | eq <;> subst eq
all_goals
simp only [Sequent.ruleApps, Finse... |
13,580 | lean_file_chunk | 4eb4fa592a7f4db75fe9fb434fb4da37a19404e2533721b15d3f04f2aa57f824 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.Pdl.Game
import LeanPool.Lean4GlCoalgebras.General.Proof
/-! ## The GL-proof game.
Builder-Prover game for constructive cou... |
12,343 | lean_file_chunk | 73a962d13f4cc86f6b74cab99cd168d1894c9126bb065861f01746a63f4dfa37 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.Logic.Syntax
import Mathlib.Data.Set.Defs
import Mathlib.CategoryTheory.Limits.Shapes.IsTerminal
import Mathlib.CategoryTheor... |
10,677 | lean_file_chunk | 035b4ea085417bd2539e2ad0dbb84104310dc6728d8f7b87a84776007cbae9df | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Finset.Basic
import Mathlib.Order.CompleteLattice.Basic
import Mathlib.Order.FixedPoints
import Mathlib.Data.Set.Lattice
import LeanPool.Le... |
23,999 | lean_file_chunk | 13a61c2f79a8d027150e8cd0927bfcac1bb5269e853ba79e1a86822a2452ae8e | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Fintype.Defs
import LeanPool.Lean4GlCoalgebras.Logic.FixedPointTheorem
import LeanPool.Lean4GlCoalgebras.Split.Completeness
/-! ## Finding... |
23,969 | lean_file_chunk | 4e559d4baf38234cdac9447aa67131312d4eb0057f15c53092b4cbb0b0134765 | lean_source_file | lean_pool_source_file_chunks | · refine @in_vocab_of_path_right 𝕏 (unencodeVar n (encodeVar_helper₁ n_in))
z ?_ m ?_
· exact Relation.ReflTransGen.tail (path box_in_Y.choose box_in_τ) box_z
· convert m_in_seq.2
simp [encodeVar_inv]
· refine Or.inr ⟨m_in_var.1, ?_⟩
· intro x x_in ... |
729 | lean_file_chunk | b8f28cbb4118c8632700505abd6f9b5c9c91720123925303dd417ce4ce3c128b | lean_source_file | lean_pool_source_file_chunks | · rcases this.1 with l | r
· left
refine eq_chain _ _ _ _ _ _ l ?_ ?_
· simp [partial_, h]
· apply congrArg₂
· rfl
· simp [encodeVar_inv]
· right
refine eq_chain _ _ _ _ _ _ r ?_ ?_
· simp [partial_, h]
· apply congrArg₂
· rfl
· simp [encodeVar... |
1,881 | lean_file_chunk | cd2e1555ee19069fa07c1e2f08b7a0d8f5a95e541745847653449f7f2449c805 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.Interpolation.PartialInterpolation
/-! ## Interpolation
We use everything we have proven so far to show that GL has interpo... |
23,964 | lean_file_chunk | 0ae44ebbf7b11e080fc8cfddb908a86870f97be7ab813a264de0010088be2673 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Fintype.Defs
import LeanPool.Lean4GlCoalgebras.Interpolation.Interpolants
import LeanPool.Lean4GlCoalgebras.Split.ProofTransformations
/-!... |
23,970 | lean_file_chunk | 9292ad48abdb21ea7c31974070a51acc07c40c660aec77728fc2203a63b4ed8b | lean_source_file | lean_pool_source_file_chunks | path u f := by exact False.elim (by simpa [Ext.edge, Ext.p] using f.2)
/-- Auxiliary declaration used in the GL coalgebra development. -/
noncomputable def partialRightAxₗᵣ {𝕏 : Proof} [fin_X : Fintype 𝕏.X] (x : 𝕏.X)
{Δ n in_Δ} (rule_def : r 𝕏.α x = RuleApp.axₗᵣ Δ n in_Δ)
: Ext.PreProof x (@rightInterpolantS... |
23,955 | lean_file_chunk | 6e03a76246ae4da4cef244cd5ed9c187602ccdebe14782afe359b47f8a2d8f30 | lean_source_file | lean_pool_source_file_chunks | cases r <;> simp [RuleApp.isBox, Ext.RuleApp.isBox]
have := f.2.2 0
simp only [partialInterpolationLeftAlpha, Ext.edge, Ext.p, Ext.T, f.2.1, zero_add,
List.mem_cons, List.not_mem_nil, or_false] at this
rcases this with f1_def | f1_def
· have isRight : ∀ n, (f.1 (n + 1)).isRight := by
intro n
ind... |
17,760 | lean_file_chunk | f5b72d5ba02719033c1d16faa77246c0558ec4b7621b705e694ef87975242aff | lean_source_file | lean_pool_source_file_chunks | simpa [partialInterpolationRightAlpha, Ext.edge, Ext.p, fk_def] using step) with
⟨z, _z_mem, next_eq⟩
simp [←next_eq]
· rcases (by
simpa [partialInterpolationRightAlpha, Ext.edge, Ext.p, fk_def] using step) with
⟨z, _z_mem, next_eq⟩
simp [←next_eq]
have isRight' : ∀... |
9,647 | lean_file_chunk | 9800ce2ee4e9664e656d8da0a45c7ff458ccda9ab17b3f74ab49ae537226e84f | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.Logic.Semantics
/-! ## Fixed-Point Theorem for Box and Diamond Formulas
Here we prove the fixed-point theorem for formulas ... |
4,889 | lean_file_chunk | b22d6f45ebb2d284f75f081b91afb446d7399f422e0a09023c322ce5001c8e89 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Finset.Basic
import Mathlib.Order.CompleteLattice.Basic
import Mathlib.Order.FixedPoints
import Mathlib.Data.Set.Lattice
import LeanPool.Le... |
21,611 | lean_file_chunk | 58139eeb45479e703704e045b1a3a61b76e559b00295c7c21b242e6a20284d28 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Set.Defs
import Mathlib.CategoryTheory.Limits.Shapes.IsTerminal
import Mathlib.CategoryTheory.Functor.EpiMono
import Mathlib.CategoryTheory... |
13,306 | lean_file_chunk | 5f753b60549d0a32f52fe664a5840ede00c95aef8f4431780b9389b0e889abb5 | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import Mathlib.Data.Finset.Basic
/-! # A General Theory for Determined Two-player Games
Nothing here is specific about PDL, but we give a general
definition ... |
23,965 | lean_file_chunk | 6f3b28d12e2eb47276b0675013366ba17bba4ea4e994bc43302046014b4d519a | lean_source_file | lean_pool_source_file_chunks | /-
Copyright (c) 2026 Madeleine Gignoux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Madeleine Gignoux
-/
import LeanPool.Lean4GlCoalgebras.Split.Soundness
import LeanPool.Lean4GlCoalgebras.Split.Game
/-! ## Prover winning the GL-split game builds a GL-split proof... |
23,967 | lean_file_chunk | 89e81e84f71d1126d6f6b983faea0e6c8a6dc19bed56a809a15e3d62ef1834f3 | lean_source_file | lean_pool_source_file_chunks | termination_by Γs.length + Rs.length
decreasing_by
all_goals assumption
/-- The sequent at the `n` step rewind can be found in the history. -/
lemma rewind_history_correspondence (Γ g) (strat : Strategy coalgebraGame Prover)
(n) (h2 h3 h4 h6) (in_cone : inMyCone strat (startPos Γ) g)
: (∀ b_turn_g : coalgebraGam... |
23,922 | lean_file_chunk | dbb537a6a784dbc9334ce72cb4a215dafd61bdc9e72b007cc1bf2ae440b89fef | lean_source_file | lean_pool_source_file_chunks | (strat (Sum.inr R, Γs, Rs) (by rfl)
⟨exists_non_box_move.choose,
move_iff_in_moves.1 exists_non_box_move.choose_spec.1⟩).1 =
(Sum.inl Γ, Γs, R :: Rs) :=
move_eq.symm
rw [strat_eq]
simp [isBox]
else by simp_all [makePat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.