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
23,969
workflow_log
4915fba7aa2f7de441d57c0ec7334a9aeef00490fd208ba894117ee849c32bde
local_context_file
context_text_records
──────────────────────────────────────────────────────────────────────── 🔄 API step 72/120 📥 Request: 65 messages, ~28,736 tokens (~114,947 chars) 🔧 Available tools: 27 ⏱️ API call completed in 2.25s 📊 Tokens: input 26,477 · output 96 · total 26,573 (session 18,442,482) 💵 Cost estimate: unavailable (n...
23,892
workflow_log
9c922b567f70db5b9c414804a0edb769d16aec42d4350a0ec4cf787b08a93092
local_context_file
context_text_records
│ cwd: /Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo │ done in 0.24s │ success: True │ query: smul_le_smul_iff │ mode: type-pattern │ attempted_providers: 3 item(s) │ - mcp-loogle │ - project-rg │ - mathlib-rg │ results: │ [ │ { │ "pr...
23,998
workflow_log
0ebe00352ff1542d551480395afe6feb98dee21663fe1f5053c1b6d7af33304d
local_context_file
context_text_records
│ So the result follows from unique factorization. Let me try to prove this directly using `multiplicity` or by working with prime factorizations. │ Actually, let me try a much simpler approach. Let me use the fact that in a GCD monoid, we have `gcd(a, b) = 1` if and only if `a` and `b` are coprime. And in a UFD,...
23,931
workflow_log
1fa05eab20b3ea3015ceef8d95defe59e75af82ecf801f8f87302699a9ab247a
local_context_file
context_text_records
│ } │ ] │ degraded_reasons: │ [] └─ 💡 CAUTION: 20 iterations remaining 💡 CAUTION: 19 iterations remaining; runtime warning injected into model context ──────────────────────────────────────────────────────────────────────── 🔄 API step 101/120 📥 Request: 141 messages, ~52,340 tokens (~209,361 chars) ...
23,913
workflow_log
a623c3a2a4686a24937da63f6df7c9cfcc7169b97cef75d33bdfe2bd6d0bda9b
local_context_file
context_text_records
│ - d | f is proven (but currently uses `sorry` due to missing NormalizationMonoid instance) ... └─ 🎉 Conversation completed after 108 OpenAI-compatible API call(s) 📈 Session usage summary API calls: 108 this conversation (108 with provider token usage) Tokens this conversation: input 4,329,101 · output 122...
23,824
workflow_log
a496849d5033845ab11159b5fd45ba3531c145980178db5be19ab7d52211386e
local_context_file
context_text_records
│ "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo/.lake/packages/mathlib/Mathlib/Algebra/Prime/Lemmas.lean", │ "line": 96, │ "preview": "theorem Prime.dvd_of_pow_dvd_pow_mul_pow_of_square_not_dvd {p a b : M}" │ }, │ { │ "provider": ...
23,897
workflow_log
be5d818ca17d7f9b455d26e21e5701a5cec1f339a832f28477ca8f884e7805fd
local_context_file
context_text_records
│ Actually, I just realized something. The `dvd_iff_normalizedFactors_le_normalizedFactors` approach should work if I can just get the `nsmul_le_nsmul_iff` lemma to work. Let me try using `omega` or `linarith` with the right setup. │ Wait, let me try a much simpler approach. Let me just use `tauto` or `simp` with...
23,985
workflow_log
6abce58dfaeecee0df1975c45382e8f8d56750e1729bb1b5997475016707c393
local_context_file
context_text_records
│ "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo/.lake/packages/mathlib/Mathlib/RingTheory/Multiplicity.lean", │ "line": 711, │ "content": "theorem emultiplicity_pow {p a : α} (hp : Prime p) {k : ℕ} :" │ [structured output truncated: 179 more li...
23,944
workflow_log
33cd2cc4b649459dd2bbf55471004fea73a33ba8a85d21d2731ea971bc602974
local_context_file
context_text_records
│ The file builds successfully with only warnings (no errors). The only remaining `sorry` is at line 1230 in `no_integer_polynomial_parametrization`. Let me read the current state of that proof to see what's there now. └─ 🔧 Processing 1 tool call(s)... ┌─ Tool 1: read_file │ path: │ /Users/lmilikic/Desktop/run...
23,929
workflow_log
d9861e3ccbfb988e9b6bd0eff2c88c58ab3fc0ec6bda7fc1284add2b7dd35118
local_context_file
context_text_records
│ But wait, `k` is in the ring, so `X^2 - k` is a monic polynomial with coefficients in the ring. And `f/d` is a root in the field of fractions. Since the ring is integrally closed, `f/d` must be in the ring. So `d | f`. │ This is the right approach! Let me search for `IsIntegrallyClosed` lemmas. └─ 🔧 Processin...
23,971
workflow_log
a70d1a38484e51e4f1dface54071e74d277e6dfeb9d6ba69d5a688340851c82a
local_context_file
context_text_records
│ Note: This linter can be disabled with `set_option linter.unreachableTactic false` │ DocFormalizationDemo/Pyth/Main.lean:577:10: warning: this tactic is never executed │ [output truncated: 110 more line(s)] │ DocFormalizationDemo/Pyth/Main.lean:960:14: warning: 'ring' tactic does nothing │ │ Note: ...
23,961
workflow_log
d6d9e6d3c5b6b9b7d9abd425c504c1e562870d6dd72f952cfa32bfe608e76b2c
local_context_file
context_text_records
📥 Request: 67 messages, ~36,247 tokens (~144,989 chars) 🔧 Available tools: 27 ⏱️ API call completed in 5.48s 📊 Tokens: input 37,630 · output 330 · total 37,960 (session 22,223,785) 💵 Cost estimate: unavailable (no pricing metadata for moonshotai/Kimi-K2.6) ┌─ Agent │ Reasoning preview: │ Let me look ...
23,906
workflow_log
787c18b3c72d0dea4972f01813878016485249711e5fcb5ad04c2588e4de9ce6
local_context_file
context_text_records
│ Let me try a different approach. The issue is that `dvd_iff_normalizedFactors_le_normalizedFactors` requires a `NormalizationMonoid` instance, which `MvPolynomial (Fin n) ℤ` doesn't have. Let me try using `multiplicity` instead, which doesn't require `NormalizationMonoid`. │ Actually, let me look at what `GCDMo...
4,585
workflow_log
9752f148131550f3db5a67525e3754e16fdfce044f5517fbbfe5d9f50950e50f
local_context_file
context_text_records
│ But wait - I can use a different approach. Instead of using normalized factors, I can use the `GCDMonoid` structure directly. In a GCD monoid, if d² | f², then d | f. This is a standard property. │ Actually, let me look at what `GCDMonoid` provides. In particular, `GCDMonoid` has a `gcd` operation, and there mi...
23,962
workflow_log
ee35aab0d17cbc571b55cd2f3806c7ed936eb39b02f7da77b2a7285c0aa82592
local_context_file
context_text_records
🤖 AI Agent initialized with model: moonshotai/Kimi-K2.6 🔗 Using custom base URL: https://inference.rcp.epfl.ch/v1 🔑 Using API key: sk-lfwpN...O3Vg ✅ Enabled toolset 'epflemma-native': lean_proof_context, lean_incremental_check, apply_verified_patch, lean_search, patch, formalization_document_inspect, lean_reasoning_...
23,945
workflow_log
8d03a61f4d81b33bdd242ba935f7a9c22057c53f9a5eb1c76cd00019d84b16e5
local_context_file
context_text_records
Loading weights: 0%| | 0/310 [00:00<?, ?it/s] Loading weights: 0%| | 0/310 [00:00<?, ?it/s] Loading weights: 0%| | 0/310 [00:00<?, ?it/s] Loading weights: 0%| | 1/310 [00:02<15:13, 2.96s/it] Loading weights: 0%| | 1/310 [00:03<15:22, 2.99s/it] L...
23,995
workflow_log
7fb63b08bb91c6bcb63f1b25e91aca2a880c6da248041a6f175e3f8173f82dad
local_context_file
context_text_records
│ cwd: /Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo │ 3. lean_search │ query: MvPolynomial │ mode: semantic │ cwd: /Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo BM25S Retrieve: 0%| ...
22,581
workflow_log
bbcb72072aa1d7de80810184438275a8feece9450526e41b16917d3ea68346ab
local_context_file
context_text_records
│ --- a/DocFormalizationDemo/Pyth/Blueprint.md │ +++ b/DocFormalizationDemo/Pyth/Blueprint.md │ @@ -92,7 +92,7 @@ │ - Source: The set of positive PTs is parametrized by explicit formulas with `x,y,z > 0` and `w ≥ 0`. │ - Lean: Set equality between `{(x,y,z) | x>0 ∧ y>0 ∧ z>0 ∧ PythagoreanTriple x y...
23,949
workflow_log
1dec2750b0697afed5e33ddef9a7490c46946cf6a14724548e40e9b004630543
local_context_file
context_text_records
│ LEAN_PATH=/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo/.lake/packages/Cli/.lake/build/lib/lean:/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo/.lake/packages/batteries/.lake/build/lib/lean:/Users/lmilikic/D...
23,996
workflow_log
3b84543b00509bfb4a2f1b122fde9afd4746ead3f74357b79fdf75d8117ef50f
local_context_file
context_text_records
│ 11|- [x] Record source labels/pages/equations for every generated declaration. │ 12|- [x] Check local project and Mathlib names before introducing duplicates. │ 13|- [ ] Verify drafted Lean statements match the source document. │ 14|- [ ] Run independent statement/source verifi...
10,673
workflow_log
4d9d24b05b958d85140a4ff5099920db7034a9c19262684d936e80e53234e8cb
local_context_file
context_text_records
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/epflemma_cli/workflow_state.py", line 1125, in terminate_workflow_agent_descendants results.append(terminate_workflow_agent(child_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/lmil...
23,930
workflow_log
b943d35ff21a988132c6537ab75293c7d1095fa0ef612e3dcb5c5846bdac491f
local_context_file
context_text_records
🤖 AI Agent initialized with model: moonshotai/Kimi-K2.6 🔗 Using custom base URL: https://inference.rcp.epfl.ch/v1 🔑 Using API key: sk-lfwpN...O3Vg ✅ Enabled toolset 'epflemma-native': release_file_lock, list_file_locks, skills_list, lean_auto_try, lean_proof_context, lean_sorries, patch, lean_incremental_check, lean...
23,993
workflow_log
fc2828c5d160dcfcf659cab2175ae8120d872a453abd3d7066b0415e773a5841
local_context_file
context_text_records
BM25S Convert tokens to indices: 0%| | 0/50 [00:00<?, ?it/s] BM25S Count Tokens: 0%| | 0/50 [00:00<?, ?it/s] BM25S Compute Scores: 0%| | 0/50 [00:00<?, ?i...
23,982
workflow_log
c53bb4896c3757b031a8734004be7d1b07cb3301e90ca908a24fcc2644b96846
local_context_file
context_text_records
│ - project-rg │ - mathlib-rg │ results: │ [] │ degraded_reasons: 1 item(s) │ - search returned no results └─ ──────────────────────────────────────────────────────────────────────── 🔄 API step 19/180 📥 Request: 39 messages, ~40,907 tokens (~163,630 chars) 🔧 Available tools: 27 ⏱️ API call comp...
23,960
workflow_log
37d8712e457f7c9d9610694db4de440844dac9f265ca2adf3c2c372282f1c198
local_context_file
context_text_records
│ - have hg0 : g = 0 := by │ - rw [h0] at h2 │ - simp at h2 │ - exact h2 │ - have h345 : ∃ a, eval a g = 3 := by │ - have h_pt : PythagoreanTriple 4 3 5 := by norm_num [PythagoreanTriple] │ - have h...
23,966
workflow_log
46517268f17a113f7a717dd21b7a79028cab4d0539582b94a892403dceeae0e1
local_context_file
context_text_records
──────────────────────────────────────────────────────────────────────── 🔄 API step 41/180 📥 Request: 83 messages, ~94,167 tokens (~376,670 chars) 🔧 Available tools: 27 ⏱️ API call completed in 3.14s 📊 Tokens: input 60,160 · output 155 · total 60,315 (session 1,840,038) 💵 Cost estimate: unavailable (n...
23,979
workflow_log
5da463eb3875dadfd8503c5215b358e36aa6348d73ede25aa3f439970100032f
local_context_file
context_text_records
│ Let me search for these lemmas in Mathlib. └─ 🔧 Processing 1 tool call(s)... ┌─ Tool 1: terminal │ command: cd │ /Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo && │ grep -rn "IsCoprime.*dvd.*add\|IsCoprime.*dvd.*sub" .lake/packages/mathlib/Mathlib/ | he...
15,331
workflow_log
77f9ae199b3d2a63516cb939f297b4943ea3714fcb71ab0fd934965a2412aef8
local_context_file
context_text_records
──────────────────────────────────────────────────────────────────────── 🔄 API step 63/180 📥 Request: 127 messages, ~112,030 tokens (~448,121 chars) 🔧 Available tools: 27 ⏱️ API call completed in 2.72s 📊 Tokens: input 66,665 · output 117 · total 66,782 (session 3,267,440) 💵 Cost estimate: unavailable ...
512
project_config
b4792f7ea503ec9e2240a64c7935270286024473de468adc1969035ddca7224b
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-28T21:17:07+00:00", "parent_run_id": "", "process_id": 18850, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260428T211646Z-pid18850", "run_scop...
224
project_config
2667cbe3c50863174f7627a65a8078d9327c350f9e024aa68e658736f7b0af79
local_context_file
context_text_records
{ "created_at": "2026-04-28T11:59:48+00:00", "parent_run_id": "", "run_id": "agent-20260428T115948Z-pid34386", "run_scope": "background-session", "task_label": "agent", "updated_at": "2026-04-28T11:59:48+00:00" }
512
project_config
fd2f55f100def8f61e07a12a3beb737fe09a9eb31970924ab75591b17d9d857d
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-28T03:27:42+00:00", "parent_run_id": "", "process_id": 35681, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260428T032729Z-pid35681", "run_scop...
224
project_config
2b1882be662ef7b27b0d808fa8beca479ee1c1fcc33b2798bf8f06cdc642a170
local_context_file
context_text_records
{ "created_at": "2026-04-28T21:09:54+00:00", "parent_run_id": "", "run_id": "agent-20260428T210954Z-pid76679", "run_scope": "background-session", "task_label": "agent", "updated_at": "2026-04-28T21:09:54+00:00" }
512
project_config
6762ec0dfbe141f47ae325bbf6f8d808b87dba6281a5088e76d9840072c80be4
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-27T20:32:33+00:00", "parent_run_id": "", "process_id": 93244, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260427T203229Z-pid93244", "run_scop...
512
project_config
324b9d87d9b455f92b2b3eda2db51b082136b44ef01ead0655ece787cabe841e
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-28T20:43:46+00:00", "parent_run_id": "", "process_id": 77615, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260428T204326Z-pid77615", "run_scop...
512
project_config
86d54f5e1a9f3d08dcc6932cf2a7b5e76bcd339d384cbcdafb61b87921287035
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-28T12:08:16+00:00", "parent_run_id": "", "process_id": 12632, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260428T120756Z-pid12632", "run_scop...
223
project_config
99cccdc5ddcc60acf370d7021b9308ac7cbb519a6492c5d275168ef80d3fcd0a
local_context_file
context_text_records
{ "created_at": "2026-04-28T15:12:03+00:00", "parent_run_id": "", "run_id": "agent-20260428T151203Z-pid8405", "run_scope": "background-session", "task_label": "agent", "updated_at": "2026-04-28T15:12:03+00:00" }
536
project_config
b292991fca42d8e860b4cbadf9907ff8aa886fc6a032cfcda1a7b1efdb2a932e
local_context_file
context_text_records
{ "active_skill": "lean-formalization", "created_at": "2026-04-27T20:07:11+00:00", "parent_run_id": "", "process_id": 61936, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "formalize-20260427T200706Z-pid61936", "run_scope":...
224
project_config
5f02f05774b41f4df71f0d798a140b334d6708ca64ceac20c1c41c18f3a2d88d
local_context_file
context_text_records
{ "created_at": "2026-04-28T03:20:24+00:00", "parent_run_id": "", "run_id": "agent-20260428T032024Z-pid16657", "run_scope": "background-session", "task_label": "agent", "updated_at": "2026-04-28T03:21:28+00:00" }
512
project_config
0f994902e1dc5eeaa3526eb6283054c1e20ba70d30cf41f2bd64b9612cb1f299
local_context_file
context_text_records
{ "active_skill": "lean-theorem-queue-worker", "created_at": "2026-04-28T15:28:57+00:00", "parent_run_id": "", "process_id": 10426, "project_root": "/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projects/DocFormalizationDemo", "run_id": "prove-20260428T152834Z-pid10426", "run_scop...
21,397
documentation_markdown
bde187e046538f5475f56f5af2264ae5fef04cdc66f9b7d23066dc63f90c0a8c
local_context_file
context_text_records
# EPFLemma Document Formalization Context Source document: `docs/PythagoreanPolynomialParametrization/pyth.tex` Document kind: `latex` Detected title: Parametrization of Pythagorean triples by a single triple of polynomials Target Lean file: `DocFormalizationDemo/Pyth/Main.lean` Planner blueprint: `/Users/lmilikic/Des...
11,786
text_context
ad41524c3a8b8411f32d657ed5afc7b0ab89f1d894f3366052c69efa61da7498
local_context_file
context_text_records
% S. Frisch and L. Vaserstein: "Parametrization of Pythagorean triples % by a single triple of polynomials" J. Pure Appl. Algebra % % this file pyth.tex (plain TeX using bibtex via btxmac) % uses pyth.bib bibliography file and siamese.bst (custom) bibstyle \input btxmac.tex \magnification=\magstep1 \hsize=15truecm ...
837
documentation_markdown
54987e3d803257fd6166b8d191310fc92a5810f5a57e3c12984500e16679753b
local_context_file
context_text_records
--- name: formalization-blueprint-DocFormalizationDemo-Pyth-Main description: Blueprint and source map for `DocFormalizationDemo/Pyth/Main.lean`. --- # Formalization Blueprint Skill Before proving declarations in `DocFormalizationDemo/Pyth/Main.lean`, read and use the local formalization blueprint. - Blueprint: `Doc...
23,985
workflow_log
afb14fbc875a58245ccbb2a37fbd37a394a2777af8061d458f846ff0aadb915e
local_context_file
context_text_records
This is pdfTeX, Version 3.141592653-2.6-1.40.29 (TeX Live 2026) (preloaded format=pdflatex 2026.3.15) 27 APR 2026 14:50 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. **/Users/lmilikic/Desktop/runai_start/vllm012/EPFLemma/testdata/workflow_projec...
23,998
workflow_log
3f1de426a49e96584e20f8714630c0271e54dfcc36cf8300b2a86f0237a5896b
local_context_file
context_text_records
\pgf@circ@Rlen=\dimen319 \pgf@circ@scaled@Rlen=\dimen320 \pgfstartlinewidth=\dimen321 ) (/usr/local/texlive/2026/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex \ctikz@scratchbox=\box75 ) (/usr/local/texlive/2026/texmf-dist/tex/generic/circuitikz/pgfcircpath.tex \ctikz@vif@count=\count343 ) (/usr/local/texlive/2026/...
12,428
workflow_log
103ea1266679f2413b479d3d1b29a20f83919192caee02c84433b78163d62a4f
local_context_file
context_text_records
(hyperref) removing `\chardef' on input line 888. Package hyperref Warning: Token not allowed in a PDF string (Unicode): (hyperref) removing `\mathstyle' on input line 888. Package hyperref Warning: Token not allowed in a PDF string (Unicode): (hyperref) removing `\begin...
23,933
informal_math_tex
83c5488b6f676bce45190d0c579735e810521d905276530baa1c6b49e5ff68a7
local_context_file
context_text_records
\documentclass{article}[12pt] \usepackage[utf8]{inputenc} \usepackage{authblk} \usepackage{amsmath, amssymb, amsthm, amsfonts, gensymb, tikz, commath, float, mathtools, enumerate, breqn, circuitikz} \usetikzlibrary{positioning, arrows, arrows.meta, cd} \usetikzlibrary{shapes,backgrounds,positioning,petri,topaths,calc} ...
14,857
informal_math_tex
0a6b70bf0e84a46ef1d5683546aaa4ea0a3bde857d52ad6221d32d058a262d78
local_context_file
context_text_records
It was essential for extension of the notion of $q$-rationals to irrationals; see~\cite{MGOexp}. This property will be important for us. %%%%%%%%%%%%%%%%%%%% \subsection{The inverse $q$-rational} %%%%%%%%%%%%%%%%%%%% The following property of $q$-rationals can be deduced from~\eqref{RecRat}; see~\cite{LMGadv}. It a...
218
project_config
fa5a922d1697c14f96250a5d4275e8c9f2ef02ad01d797cdab8456d19de148b1
local_context_file
context_text_records
{ "sources" : [ { "usage" : "toplevel", "filename" : "Pythagore2.tex" } ], "spec_version" : 1, "texlive_version" : "2025", "process" : { "compiler" : "pdflatex" } }
14,535
documentation_markdown
f057f14a2aa3af6272fb73e7feca149c024dca6e285192d4b939365586b83865
local_context_file
context_text_records
# lean4-cli This project is maintained by [@mhuisi](https://github.com/mhuisi). ## Usage See [the documentation of Lake](https://github.com/leanprover/lean4/blob/master/src/lake/README.md). ### Configuration Commands are configured with a lightweight DSL. The following declarations define a command `exampleCmd` with ...
182
project_config
d0a1417021c8ed3b45ed24f68be28346b07835085c7884edfaa67c1e321057ba
local_context_file
context_text_records
name = "Cli" defaultTargets = ["Cli"] testDriver = "CliTest" [leanOptions] experimental.module = true [[lean_lib]] name = "Cli" [[lean_lib]] name = "CliTest" globs = ["CliTest.+"]
601
project_config
5d61dff4704edc379fb84c98512f7522e26f1736d86b1a61d0e6eebd64da55ee
local_context_file
context_text_records
name: build lean4-cli on: push: pull_request: workflow_dispatch: jobs: build: name: build lean4-cli runs-on: ubuntu-latest steps: - name: checkout repo uses: actions/checkout@v2 - name: install elan run: | set -o pipefail curl https://raw.githubuserco...
2,779
documentation_markdown
36a44989274924dfddba7cd852b8f549a14113af224c6b13629f59e132c98010
local_context_file
context_text_records
# LeanSearchClient LeanSearchClient provides syntax for search using the [leansearch API](https://leansearch.net/) and the [LeanStateSearch](https://premise-search.com) API from within Lean. It allows you to search for Lean tactics and theorems using natural language. It also allows searches on [Loogle](https://loogle...
183
project_config
b6f414917843cff5978dc5e67d9282430be54ed06fe63b426d435620bf2c4b12
local_context_file
context_text_records
name = "LeanSearchClient" testDriver = "LeanSearchClientTest" defaultTargets = ["LeanSearchClient"] [[lean_lib]] name = "LeanSearchClient" [[lean_lib]] name = "LeanSearchClientTest"
199
project_config
995cf6d7fcf93f4b7dfbb14b7688887b5ab3a04579db8d1f6305421f0a06a1c1
local_context_file
context_text_records
name: Lean Action CI on: push: pull_request: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: leanprover/lean-action@v1
5,554
documentation_markdown
f19e32805d09ae0e71f756799d6270ab64028981f156a1c20b05ffffe79a7896
local_context_file
context_text_records
# Expression quotations for Lean 4 This package implements type-safe expression quotations, which are a particularly convenient way of constructing object-level expressions (`Expr`) in meta-level code. It combines the intuitiveness of modal sequent calculus with the power and speed of Lean 4's metaprogramming facilit...
134
project_config
1812696bb1ad8cb6ece57c69d66834969286e246615b53212b0bcfc1f2167669
local_context_file
context_text_records
name = "Qq" testDriver = "QqTest" defaultTargets = ["Qq"] [[lean_lib]] name = "Qq" [[lean_lib]] name = "QqTest" globs = ["QqTest.+"]
382
project_config
71fb6e198b652d9eb8b1e80f7058beae048454c610a2ed45077ab3077e8813f0
local_context_file
context_text_records
on: pull_request: push: name: ci jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - id: lean-action name: build, and test quote uses: leanprover/lean-action@f807b338d95de7813c5c50d018f1c23c9...
23,940
documentation_markdown
9f58d25546757d94d96d589acdeccddd1265f41ec4e897eebd2699c5f3ce7933
local_context_file
context_text_records
# Aesop Aesop (Automated Extensible Search for Obvious Proofs) is a proof search tactic for Lean 4. It is broadly similar to Isabelle's `auto`. In essence, Aesop works like this: - As with `simp`, you tag a (large) collection of definitions with the `@[aesop]` attribute, registering them as Aesop _rules_. Rules can...
16,509
documentation_markdown
4d0daf3213f1a197b29416f5fa520fb9a9835c850058332178d4923169e8790e
local_context_file
context_text_records
register a rule without specifying a builder, but you can also use it explicitly. Depending on the rule's phase, the default builder tries different builders, using the first one that works. These builders are: - For `safe` and `unsafe` rules: `constructors`, `tactic`, `apply`. - For `norm` rules: `constructors...
401
project_config
14e4d0800b258761b37ced638344187173390b98e7155eea21d63775852756e3
local_context_file
context_text_records
name = "aesop" defaultTargets = ["Aesop"] testDriver = "AesopTest" precompileModules = false # We would like to turn this on, but it breaks the Mathlib cache. platformIndependent = true [[require]] name = "batteries" scope = "leanprover-community" rev = "v4.30.0-rc2" [[lean_lib]] name = "Aesop" [[lean_lib]] name = "...
372
project_config
f21ea5e111c72e9c6981e574491e7c16ffc8f096e61bb0cc3c3082cc644f7989
local_context_file
context_text_records
# See the documentation for all configuration options: # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of pac...
325
project_config
0b6f762234a20d6ab0b266f9ab31177a7c062cec6b8144a9c94eb2f0238ae117
local_context_file
context_text_records
name: Build on: pull_request: merge_group: jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] steps: - uses: actions/checkout@v6 - uses: leanprover/lean-action@v1 with: check-reservoir-eligibility: true build-args: "--w...
5,423
documentation_markdown
6fb2bbdb689c24d0c896d68cbe72d78188f958f084f3b0c1b4d8e99b752023e7
local_context_file
context_text_records
# Batteries The "batteries included" extended library for Lean 4. This is a collection of data structures and tactics intended for use by both computer-science applications and mathematics applications of Lean 4. # Using `batteries` To use `batteries` in your project, add the following to your `lakefile.lean`: ```le...
555
project_config
da7d255109beb46a98bf34f0b5c9c161a7523bfd7453fd35a911d81d5774a1fc
local_context_file
context_text_records
name = "batteries" testDriver = "BatteriesTest" lintDriver = "runLinter" defaultTargets = ["Batteries", "runLinter"] [leanOptions] linter.missingDocs = true [[lean_lib]] name = "Batteries" [[lean_lib]] name = "BatteriesTest" globs = ["BatteriesTest.+"] leanOptions = {linter.missingDocs = false} [[lean_exe]] name = ...
146
project_config
c734cd93244ae422e04e4a270f5f2d12288c3cc1c82e317672a5eee3e4c6a409
local_context_file
context_text_records
image: file: .docker/gitpod/Dockerfile vscode: extensions: - leanprover.lean4 tasks: - init: | elan self update lake build
201
project_config
a18870209497e908a24b405f8e9fd3aef39c014491cd5689539577acd4bd7192
local_context_file
context_text_records
status = ["Build"] use_squash_merge = true timeout_sec = 28800 block_labels = ["not-ready-to-merge", "WIP", "blocked-by-other-PR", "merge-conflict"] delete_merged_branches = true cut_body_after = "---"
189
project_config
38e91d8fca0c94c6f304aac991cd734c4586bbb7d41664b38c6d6929684f06b6
local_context_file
context_text_records
name = "docs" reservoir = false packagesDir = "../.lake/packages" buildDir = "." [[require]] scope = "leanprover" name = "doc-gen4" rev = "main" [[require]] name = "batteries" path = ".."
2,151
project_config
c99613f22e3cd30adc915ad9cf1945e9e78d5cbd088a5262bdcd0520929de952
local_context_file
context_text_records
{"ignoreImport": ["Init", "Lean"], "ignore": {"Batteries.Tactic.Lint.Simp": ["Batteries.Tactic.OpenPrivate", "Batteries.Util.LibraryNote"], "Batteries.Tactic.Exact": ["Batteries.Tactic.Alias"], "Batteries.Logic": ["Batteries.Tactic.Alias"], "Batteries.Linter.UnreachableTactic": ["Batteries.Tactic.Unreachabl...
270
project_config
d4dd949258a65b182f899d92d7eb7f40014a673ef5b7cc2a908ed79b6de79753
local_context_file
context_text_records
{ "editor.insertSpaces": true, "editor.tabSize": 2, "editor.rulers" : [100], "files.encoding": "utf8", "files.eol": "\n", "files.insertFinalNewline": true, "files.trimFinalNewlines": true, "files.trimTrailingWhitespace": true, "search.usePCRE2": true }
946
project_config
a474bf252335664b0101e6b61750c1e61d28d5118e15df45fd0fe35cabea8624
local_context_file
context_text_records
name: Deploy Docs on: workflow_dispatch: schedule: - cron: '0 10 * * *' # daily (UTC 10:00) permissions: contents: write jobs: deploy-docs: runs-on: ubuntu-latest if: github.repository_owner == 'leanprover-community' steps: - name: Checkout uses: actions/checkout@v4 - na...
1,198
project_config
5cb38486656acbfc60f1361fe933ccc798f32895bf4a302112cafff41d5ef95f
local_context_file
context_text_records
name: Release Docs on: push: tags: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+" permissions: contents: write jobs: build-docs: runs-on: ubuntu-latest if: github.repository_owner == 'leanprover-community' steps: - name: Checkout uses: actions/checkout@v...
16,500
project_config
52dd3bd2ad137e8fb1e933e32d7f82e236d9f19bd5f9b0784ec69aff417c6d1a
local_context_file
context_text_records
name: Post to zulip if the nightly-testing branch is failing. on: workflow_run: workflows: ["ci"] types: - completed jobs: handle_failure: if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.head_branch == 'nightly-testing' }} runs-on: ubuntu-latest st...
2,067
project_config
e94ee62cf78dc975340871c6caf40eb91b01f3c19a59002fe72b59322ca85603
local_context_file
context_text_records
# This workflow assigns `awaiting-review` or `WIP` labels to new PRs, and it removes # `awaiting-review`, `awaiting-author`, or `WIP` label from closed PRs. # It does not modify labels for open PRs that already have one of the `awaiting-review`, # `awaiting-author`, or `WIP` labels. name: Label PR from status change ...
13,766
project_config
b14862c44a935a92e1abb918bc33452bfa7fce1ef43a42772565f3afdd23c838
local_context_file
context_text_records
name: Bump toolchain and merge pr-testing branches # This workflow combines the former `nightly_bump_toolchain.yml` and `discover-lean-pr-testing.yml` # into a single workflow. This ensures that when the toolchain is bumped, any relevant # lean-pr-testing branches are merged in the same push, avoiding spurious CI fail...
2,245
project_config
0d5fb42192ae023098a80c2945f8c89e8a177e8376997d39998a45ee71b8cf9a
local_context_file
context_text_records
# This workflow allows any user to add one of the `awaiting-review`, `awaiting-author`, or `WIP` labels, # by commenting on the PR or issue. # Other labels from this set are removed automatically at the same time. name: Label PR based on Comment on: issue_comment: types: [created] jobs: update-label: if:...
1,441
project_config
7d39f0ba641b2e0203fe81ceaa26e9570114017da439a764267483b0787b213b
local_context_file
context_text_records
# This job merges every commit to `main` into `nightly-testing`, resolving merge conflicts in favor of `nightly-testing`. name: Merge main to nightly on: push: branches: - main jobs: merge-to-nightly: if: github.repository_owner == 'leanprover-community' runs-on: ubuntu-latest steps: ...
4,778
project_config
e030984116676d6760598ad210f03fa4446c7b0836f28c765a27d5bfcdcfb7e2
local_context_file
context_text_records
# Test Mathlib against a Batteries PR name: Test Mathlib on: workflow_run: workflows: [ci] types: [completed] jobs: on-success: runs-on: ubuntu-latest if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && github.repository == 'leanprover-com...
864
project_config
5edbbd44b953c8f85412812241938492e3a2b2a1b4a71ac7d592928d8a53137a
local_context_file
context_text_records
name: Merge conflicts on: schedule: - cron: '*/60 * * * *' # run every 60 minutes jobs: main: if: github.repository_owner == 'leanprover-community' runs-on: ubuntu-latest steps: - name: Generate app token id: app-token uses: actions/create-github-app-token@29824e69f54612133e7...
1,600
project_config
dffbfed9b58e7b8dc6f1eff348b199838b5043bc62bad76c59c19f0926b42eb6
local_context_file
context_text_records
on: push: branches-ignore: # ignore tmp branches used by bors - 'staging.tmp*' - 'trying.tmp*' - 'staging*.tmp' pull_request: name: ci concurrency: group: build-${{ github.sha }} cancel-in-progress: true jobs: build: name: Build runs-on: ubuntu-latest steps: - ...
4,482
documentation_markdown
fcce9aea354b00505bd32a9ca57023cd85b2abae6d7546e3da5c4203a9b7dcb4
local_context_file
context_text_records
# importGraph A simple tool to create import graphs of lake packages. ## Requirements For creating different output formats than `.dot` (for example to create a `.pdf` file), you should have [`graphviz`](https://graphviz.org/) installed. ## Usage If you are using mathlib, the tool will already be available. If no...
951
project_config
4352ebf174141d6a3b78e271e82da1d66456da895e897939dc5eebf13d60dbfb
local_context_file
context_text_records
name = "importGraph" description = "Tools to analyse and visualise the import structure of Lean packages and their files." license = "Apache-2.0" licenseFiles = ["LICENSE"] defaultTargets = ["ImportGraph", "graph"] testRunner = "ImportGraphTest" [[require]] name = "Cli" scope = "leanprover" rev = "v4.30.0-rc2" [[lea...
229
project_config
8fe9d31190a195f27a3f149c00b7edbd2730859bab1720161912e3c6463cf68b
local_context_file
context_text_records
# This is run when starting a Gitpod workspace on this repository image: leanprovercommunity/gitpod4 vscode: extensions: - leanprover.lean4 # install the Lean 4 VS Code extension tasks: - init: | elan self update
871
documentation_markdown
e69a60b88066c3dbaf6171bcbc0923194c223f44c7dfdc5ea804816f36d0c27c
local_context_file
context_text_records
# Visualised import graph ## Instructions To test this, place a file `imports.gexf` inside this directory. You can create such a file with ``` lake exe graph html-template/imports.gexf ``` Then start a local server with ``` cd html-template python -m http.server 8000 ``` And open http://localhost:8000 ## Develop...
507
project_config
2c8f3581bf7c3d1bbb47547c36c4402894e352b0e1f000a28512dc9ed7ac3c46
local_context_file
context_text_records
name: Build run-name: Build the project on: push: branches: - main pull_request: branches: - main workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: leanprover/lean-action@v1 with: check-reservoir-eligibilit...
418
project_config
a2498a828d4770b197789f326cba7cb30e101d673143489851858a4853e15f8d
local_context_file
context_text_records
# See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: ".git" default_stages: [pre-commit] fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 hooks: - id: traili...
8,928
documentation_markdown
1e3b02fd001cb8464fa1b3735533abbd06cc61461a9f64f995f1df5a0f7566fc
local_context_file
context_text_records
# mathlib4 ![GitHub CI](https://github.com/leanprover-community/mathlib4/actions/workflows/build.yml/badge.svg?branch=master) [![Bors enabled](https://raw.githubusercontent.com/bors-ng/bors-ng.github.io/refs/heads/master/images/badge_small.svg)](https://mathlib-bors-ca18eefec4cb.herokuapp.com/repositories/16) [![proje...
676
documentation_markdown
7e74db446bce18044cab2133326c7fc515c6024536fdb0dfd23608c3376f541a
local_context_file
context_text_records
# Citing mathlib If you use mathlib in your work, please cite: > The mathlib Community. *The Lean Mathematical Library.* CPP 2020. > https://doi.org/10.1145/3372885.3373824 ## BibTeX ```bibtex @inproceedings{mathlib2020, author = {{The mathlib Community}}, title = {The {L}ean {M}athematical {L}ibrary}, ...
154
project_config
07849b8b3603a8ac6cf2a1fca2bbed0749aa31fab50ce3182a4f6d93bd102301
local_context_file
context_text_records
image: file: .docker/gitpod/Dockerfile vscode: extensions: - leanprover.lean4 tasks: - init: | elan self update lake exe cache get
354
project_config
dc1b431fd7456bc5e9bed3081daaaf910835adf46663887451b4127878281976
local_context_file
context_text_records
status = ["ci (staging) / Build", "ci (staging) / Lint style", "ci (staging) / Post-Build Step", "ci (staging) / Post-CI job"] use_squash_merge = true timeout_sec = 7200 block_labels = ["WIP", "blocked-by-other-PR", "merge-conflict", "awaiting-CI"] delete_merged_branches = true update_base_for_deletes = true cut_body_a...
9,591
documentation_markdown
1b1c079d83f4b0ca5ed37e417fc9d077f291c0a990f5541cc7eb975ebafe7593
local_context_file
context_text_records
# Mathlib Cache This directory contains the implementation of Mathlib's build cache system (`lake exe cache`), which downloads pre-built `.olean` files to avoid recompiling the entire library. > **Note**: A new `lake cache` command is currently being designed and implemented in Lake itself. This will eventually repla...
1,196
documentation_markdown
d41162e1a48ceda9571ec452f8d76f25b9c1685a65013d401745ba19704e1c4f
local_context_file
context_text_records
# Archive This is an archive for formalizations which don't have a good place in mathlib, probably because there is (almost) no math depending on these results. We keep these formalizations here so that when mathlib changes, we can keep these formalizations up to date. ## Contributing If you have done a formalizati...
21,519
documentation_markdown
6e80756634d449565383e2e06ddc183b9df104d7c563ca3c2e76cde042835987
local_context_file
context_text_records
# GitHub Workflows Summary ### Note - The grouping below is done mainly by primary trigger (the main event that causes runs). - _Importance_ is a rough evaluation of the importance of the workflow in our operations: - High: core CI logic, merge-flow, branch-health, or high-impact automation. - Medium: quality che...
23,962
project_config
bf990ee4dfab92bffebb8a8e7a24f9d6c3699974993b0ec003067c222df063a9
local_context_file
context_text_records
# The list of topics was originally gathered from # http://media.devenirenseignant.gouv.fr/file/agreg_externe/59/7/p2020_agreg_ext_maths_1107597.pdf # 1. Linear algebra: Fundamentals: vector space: 'Module' product of vector spaces: 'Prod.instModule' vector subspace: 'Subspace' quotient space: 'Submo...
10,464
project_config
681149106ad8047e90e914cbac879e46f3cab6e8d969a183c031f9adb5508d20
local_context_file
context_text_records
$H^1_0([0,1])$ and its application to the one-dimensional Dirichlet problem: '' # 9. Multivariable calculus: Differential calculus: differentiable functions on an open subset of $\R^n$: 'DifferentiableOn' differentials (linear tangent functions): 'fderiv' directional derivative: 'lineDeriv' partial d...
23,995
project_config
e60a1d222e3408cb4a6b4c6e1f4c5ca4b3784f44bbbc78540d898559df8b08cf
local_context_file
context_text_records
General algebra: Category theory: category: 'CategoryTheory.Category' small category: 'CategoryTheory.SmallCategory' functor: 'CategoryTheory.Functor' natural transformation: 'CategoryTheory.NatTrans' Yoneda embedding: 'CategoryTheory.yoneda' adjunction: 'CategoryTheory.Adjunction' monad: ...
4,323
project_config
c25b43669a9f83201796ffd8de67b4f9829afd244c0ec31ff9d2d4ff16469f70
local_context_file
context_text_records
Sauer-Shelah lemma: 'Finset.card_shatterer_le_sum_vcDim' Kruskal-Katona theorem: 'Finset.kruskal_katona' Graph theory: simple graph: 'SimpleGraph' degree-sum formula: 'SimpleGraph.sum_degrees_eq_twice_card_edges' matching: 'SimpleGraph.Subgraph.IsMatching' adjacency matrix: 'SimpleGraph.adjMatrix'...
23,964
project_config
481f7c51d9115bc119fade6e5b74b4412c3e88c9d7b98e1f6f2f5035762d3376
local_context_file
context_text_records
# This file tracks the formalisation status of theorems from the experimental # 1000+ theorems project (https://1000-plus.github.io/). # This file and associated infrastructure are work in progress. # # See yaml_check.py for documentation about the allowed fields in this file. # Note that the field names in this file s...
23,977
project_config
f2670181baaf5782e53d0913a4070859e2091c07755ee925a2f1a8202e83b3e1
local_context_file
context_text_records
title: Reynolds transport theorem Q954210: title: Savitch's theorem Q965294: title: Thabit ibn Qurra's theorem Q966837: title: Cramér–Wold theorem Q967972: title: Open mapping theorem (complex analysis) decl: AnalyticOnNhd.is_constant_or_isOpen Q973359: title: Radó's theorem (harmonic functions) Q9744...
23,980
project_config
93d89104a25281264757bccf9b182fd6e62277badb1d32a5964002f2bd67ed66
local_context_file
context_text_records
title: Beck's theorem (geometry) Q3527015: title: Bernstein's theorem on monotone functions Q3527017: title: Beurling–Lax theorem Q3527019: title: Birch's theorem Q3527034: title: Cauchy's theorem (geometry) Q3527040: title: Chomsky–Schützenberger representation theorem Q3527044: title: Pappus's area ...
6,562
project_config
61886081c58b3aa0bb7753b76d7e9dd44be5e5c6a799b5f5b214f45895383cf3
local_context_file
context_text_records
title: Topkis's theorem Q7825061: title: Toponogov's theorem Q7825663: title: Torelli theorem Q7827204: title: Mazur's torsion theorem comment: "This is used to prove Fermat's last theorem (but a non-trivial project on its own)." Q7841060: title: Trichotomy theorem Q7845353: title: Trombi–Varadarajan t...