formalanon commited on
Commit
b6a1ce8
Β·
verified Β·
1 Parent(s): b50f4bb

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # semantic_lean_errors
2
+
3
+ `semantic_lean_errors` is a release bundle for semantic error auditing of NL β†’ Lean 4 formalizations.
4
+ It packages a 92-problem human-labeled benchmark together with the prompt, schema, and taxonomy used for the paper's 6-category semantic-audit experiments.
5
+
6
+ ## Directory Overview
7
+
8
+ This directory is meant to be self-contained for release.
9
+ It includes:
10
+
11
+ - `semantic_lean_errors.jsonl`
12
+ - Canonical machine-facing dataset.
13
+ - One record per line.
14
+ - Recommended file for Hugging Face and downstream use.
15
+ - `semantic_lean_errors.json`
16
+ - Readable companion file.
17
+ - Stores the same records as `semantic_lean_errors.jsonl`, but as a pretty-printed JSON array.
18
+ - `ground_truth_schema.md`
19
+ - Schema for the exported records in this release bundle.
20
+ - `error_tags.md`
21
+ - Taxonomy definitions, boundary rules, and detail-tag guidance.
22
+ - `eval_prompts_v4_fewshot.md`
23
+ - Few-shot prompt set used for the category-specific semantic-audit evaluation.
24
+ - `README.md`
25
+ - Dataset card and release notes.
26
+
27
+ ## Dataset Composition
28
+
29
+ The benchmark combines four source datasets:
30
+
31
+ - FormalMath: `22`
32
+ - ProofNet: `13`
33
+ - ProverBench: `23`
34
+ - CombiBench: `34`
35
+
36
+ Total:
37
+
38
+ - `92` labeled problems
39
+ - `87` error examples
40
+ - `5` clean examples
41
+
42
+ Primary-category counts:
43
+
44
+ - `problem_statement_error`: `5`
45
+ - `specification_error`: `24`
46
+ - `formalization_error`: `8`
47
+ - `domain_mismatch`: `14`
48
+ - `definition_mismatch`: `26`
49
+ - `quantifier_indexing_mismatch`: `10`
50
+ - clean examples (`error_primary = null`): `5`
51
+
52
+ Additional label structure:
53
+
54
+ - rows with non-empty `error_secondary`: `33`
55
+ - rows with non-empty `error_tags`: `87`
56
+
57
+ ## Record Schema
58
+
59
+ Each row is a single NL/Lean pair with human labels.
60
+ The exported per-record fields are:
61
+
62
+ - `id`
63
+ - `source`
64
+ - `problem_nl`
65
+ - `lean_code`
66
+ - `expected_verdict`
67
+ - `error_primary`
68
+ - `error_secondary`
69
+ - `error_tags`
70
+ - `meta_tags`
71
+ - `gold_explanation`
72
+
73
+ Field meanings are documented in `ground_truth_schema.md`.
74
+
75
+ Two label views are represented:
76
+
77
+ 1. Binary semantic-error detection
78
+ - Use `expected_verdict`.
79
+ - `YES` means the row contains some semantic error.
80
+ - `NO` means the row is a clean example.
81
+
82
+ 2. Six-category semantic audit
83
+ - Use `error_primary`.
84
+ - In the current evaluation setup, a queried category expects `YES` iff `error_primary` equals that category, and `NO` otherwise.
85
+
86
+ ## Prompt Overview
87
+
88
+ The included prompt file `eval_prompts_v4_fewshot.md` defines a 6-category evaluation setup.
89
+ For each NL/Lean pair, the model is queried once per category:
90
+
91
+ - `problem_statement_error`
92
+ - `specification_error`
93
+ - `formalization_error`
94
+ - `domain_mismatch`
95
+ - `definition_mismatch`
96
+ - `quantifier_indexing_mismatch`
97
+
98
+ Each prompt asks the model to judge one specific category and return structured JSON with:
99
+
100
+ - `Verdict`
101
+ - `Explanation`
102
+ - `DetailTags`
103
+ - `NeedsReview`
104
+
105
+ Because the prompt is category-specific, the 92 labeled problems expand to `552 = 92 Γ— 6` category-level classifications in the paper's evaluation setup.
106
+
107
+ ## Experimental Reproducibility
108
+
109
+ This release includes the exact benchmark and prompt family used for the paper's semantic-audit experiments.
110
+
111
+ Evaluation setup:
112
+
113
+ - benchmark: `92` labeled problems
114
+ - categories: `6`
115
+ - total category-level judgments: `552`
116
+ - prompt file: `eval_prompts_v4_fewshot.md`
117
+
118
+ The paper reports results for at least these model configurations on this benchmark:
119
+
120
+ - Sonnet 4.5 + Thinking
121
+ - GPT-5.2 + Thinking
122
+
123
+ ### Paper-Reported Aggregate Results
124
+
125
+ These are the paper-reported numbers for the 92-problem semantic audit and should be treated as the canonical release numbers for this version of the benchmark.
126
+
127
+ | Model | Prec. | Rec. | F1 | Acc. | Cost |
128
+ |-------|------:|-----:|---:|-----:|-----:|
129
+ | Sonnet 4.5 + Thinking | 0.30 | 0.82 | 0.42 | 68.1% | $13.71 |
130
+ | GPT-5.2 + Thinking | 0.24 | 0.91 | 0.37 | 54.6% | $6.86 |
131
+
132
+ ### Paper-Reported Per-Type F1
133
+
134
+ | Error Type | Sonnet 4.5 | GPT-5.2 |
135
+ |-----------|-----------:|--------:|
136
+ | Problem Statement Error | 0.29 | 0.10 |
137
+ | Specification Error | 0.51 | 0.48 |
138
+ | Formalization Error | 0.18 | 0.15 |
139
+ | Domain Mismatch | 0.33 | 0.27 |
140
+ | Definition Mismatch | 0.57 | 0.54 |
141
+ | Quantifier/Indexing | 0.39 | 0.33 |
142
+
143
+ Interpretation:
144
+
145
+ - both models have relatively high recall and lower precision
146
+ - both models perform best on `specification_error` and `definition_mismatch`
147
+ - both models struggle most on `formalization_error`
148
+
149
+ Note on reproducibility:
150
+
151
+ - this directory contains the benchmark, prompt, schema, and taxonomy
152
+ - if the exact evaluation pipeline is rerun later, small differences can arise from model/provider/version changes
153
+ - the table above reflects the paper-reported results for this release
154
+
155
+ ## Normalization Policy
156
+
157
+ This release intentionally uses a single canonical code field:
158
+
159
+ - `lean_code` is the only exported statement field
160
+ - ProofNet rows are normalized from `original_lean_code` to `lean_code`
161
+ - `fixed_lean_code` and `lean_code_fixed` are omitted from this canonical release
162
+ - list-valued annotation fields are normalized to lists
163
+
164
+ This avoids ambiguous rows that contain two different Lean statements under one set of labels.
165
+ If repaired variants are needed for comparison studies, they should live in a separate paired comparison artifact.
166
+
167
+ ## Taxonomy
168
+
169
+ The category taxonomy and detail-tag definitions are included in `error_tags.md`.
170
+ That file defines:
171
+
172
+ - the six primary semantic-error categories
173
+ - boundary rules between overlapping categories
174
+ - the allowed detail-tag families
175
+ - optional meta-tag conventions
176
+
177
+ ## Release Cleanup Applied
178
+
179
+ Before export, four internally inconsistent rows were corrected from `expected_verdict = YES` to `expected_verdict = NO` because they were clean examples with `error_primary = null` and explanations indicating no semantic error:
180
+
181
+ - `formalmath_olymid-ref-base_5274`
182
+ - `proofnet_rudin_exercise_2_28`
183
+ - `proofnet_rudin_exercise_3_21`
184
+ - `proofnet_axler_exercise_6_16`
185
+
186
+ After this cleanup, the release contains `87` error rows and `5` clean rows.
187
+
188
+ ## Recommended Use
189
+
190
+ For release and archival use:
191
+
192
+ - treat `semantic_lean_errors.jsonl` as the canonical dataset file
193
+ - keep `README.md`, `ground_truth_schema.md`, `error_tags.md`, and `eval_prompts_v4_fewshot.md` alongside it
194
+ - treat `semantic_lean_errors.json` as a readable companion artifact rather than the canonical training/eval file
error_tags.md ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Error Tag Taxonomy
2
+
3
+ Use a small set of primary tags for prompt coverage. Detail tags refine the primary tag for analysis. Detail tags are always attached to one primary tag.
4
+
5
+ **Important**: Multi-label is expected and normal. In practice, formalization_error, definition_mismatch, domain_mismatch, and quantifier_indexing_mismatch are all subsets of "Lean statement doesn't match intent." We split them because they're diagnostically useful and promptable.
6
+
7
+ ## Primary tags (error_primary)
8
+
9
+ - problem_statement_error
10
+ - NL problem is ambiguous, ill-posed, unformalizable, or asks the wrong question.
11
+ - Example: "Find the largest prime number."
12
+ - Motivation: these cannot be fixed by better Lean syntax alone.
13
+ - Common detail tags: ambiguity_or_unformalizable, wrong_question, incomplete_statement, unprovable_problem, literal_mismatch
14
+
15
+ - specification_error
16
+ - Intended math spec is missing or incorrect (assumptions, constraints, scope).
17
+ - Example: NL says "positive integers" but the spec omits n > 0.
18
+ - Motivation: the math spec itself is wrong or incomplete.
19
+ - Common detail tags: missing_hypothesis, extra_hypothesis, distinctness_missing, incomplete_spec, incorrect_spec, oversimplified_spec, base_case_missing, division_by_zero_risk, uniqueness_missing
20
+
21
+ - formalization_error
22
+ - Lean statement does not match the intended spec (semantic mismatch).
23
+ - Example: "sum of first n positive integers" encoded with List.range n (starts at 0).
24
+ - Motivation: spec is right, but the Lean goal is not.
25
+ - Common detail tags: goal_mismatch, missing_subgoal, premise_translation_error, goal_translation_error, connective_mismatch, contradictory_premises
26
+
27
+ - domain_mismatch
28
+ - Wrong type or domain (Nat vs Int, 0..99 vs 1..100, real vs complex).
29
+ - Example: NL over integers, Lean uses Nat.
30
+ - Motivation: type-level mismatch changes truth or meaning.
31
+ - Common detail tags: type_mismatch, domain_of_variables_mismatch, truncation_issue
32
+
33
+ - definition_mismatch
34
+ - Wrong Lean concept or definition for the informal notion (misuse of concept).
35
+ - Example: encoding absolute value as Nat subtraction.
36
+ - Motivation: the Lean objects do not represent the intended math.
37
+ - Common detail tags: misuse_of_concept, wrong_operator, wrong_constant, library_usage_error, incorrect_function_choice, paper_vs_lean_semantics, encoding_issue
38
+
39
+ - quantifier_indexing_mismatch
40
+ - Wrong quantifiers, bounds, or indexing (scope/order/bounds off).
41
+ - Example: forall i, exists j instead of exists j, forall i.
42
+ - Motivation: subtle scope and bounds errors change the claim.
43
+ - Common detail tags: quantifier_mismatch, indexing_mismatch, bound_mismatch, variable_mismatch
44
+
45
+ ## Boundary Rules (disambiguating overlapping categories)
46
+
47
+ ### specification_error vs formalization_error
48
+
49
+ These are the easiest to confuse. Use this rule of thumb:
50
+
51
+ - **specification_error** = the *mathematical statement* (as math) is missing/extra/wrong constraints.
52
+ - You can explain the problem **without mentioning Lean-specific encodings**.
53
+ - Examples: missing "distinct", missing "n > 0", wrong bound, dropped equation.
54
+ - **formalization_error** = the intended spec is clear, but the *Lean statement* mismatches due to translation/encoding of that spec.
55
+ - Your explanation **mentions the Lean encoding choice** (range starts at 0, order of arguments, ∧ vs β†’, etc.).
56
+
57
+ ### domain_mismatch vs definition_mismatch
58
+
59
+ - **domain_mismatch** = wrong *carrier type* (β„• vs β„€, Fin 100 vs {1..100}, ℝ vs β„‚, 0-indexed vs 1-indexed domain).
60
+ - **definition_mismatch** = wrong *meaning of the predicate/operator/object* even if types look plausible.
61
+ - e.g., modeling "touching" by area intersection when it should include boundary-only contact; modeling "region" as an arbitrary set instead of a connected component; using sup metric when Euclidean intended.
62
+
63
+ If the type choice *induces* the wrong meaning, tag **both** domain_mismatch + definition_mismatch.
64
+
65
+ ### quantifier_indexing_mismatch vs formalization_error
66
+
67
+ - **quantifier_indexing_mismatch** = core bug is scope/order/bounds/indexing (βˆ€/βˆƒ swap, off-by-one, i≀n vs i<n).
68
+ - **formalization_error** = broader mismatch (wrong goal shape, missing subgoal/witness, premise translated wrong in a non-indexing way).
69
+
70
+ ## Detail tags (error_tags) with examples
71
+
72
+ ### problem_statement_error detail tags
73
+ - ambiguity_or_unformalizable: "Find the largest prime number."
74
+ - wrong_question: NL asks for a number, Lean proves an unrelated property.
75
+ - incomplete_statement: missing a stated condition like "distinct" or "positive".
76
+ - unprovable_problem: NL statement is false in the stated domain.
77
+ - literal_mismatch: Lean claims specific numeric answer (e.g., IsGreatest ... 54) that contradicts the NL solution (e.g., NL proves 72).
78
+
79
+ ### specification_error detail tags
80
+ - missing_hypothesis: missing x != 0 before dividing by x.
81
+ - extra_hypothesis: adds n > 0 when NL has no such constraint.
82
+ - distinctness_missing: pigeonhole statement without a != b.
83
+ - incomplete_spec: omits a required equation like x1 + x2 + x3 + x4 = 20.
84
+ - incorrect_spec: uses the wrong condition or bound from the NL.
85
+ - oversimplified_spec: drops conditions to make the problem easier.
86
+ - base_case_missing: forgets to exclude n = 0 when NL assumes n >= 1.
87
+ - division_by_zero_risk: missing guard that a denominator is nonzero (variant of missing_hypothesis).
88
+ - uniqueness_missing: NL says "the unique x" or "exactly one" but Lean uses βˆƒ instead of βˆƒ!.
89
+
90
+ ### formalization_error detail tags
91
+ - goal_mismatch: proves a claim about 0..n-1 instead of 1..n.
92
+ - missing_subgoal: omits existence of a witness required by the NL.
93
+ - premise_translation_error: NL premise encoded with the wrong quantifier or scope.
94
+ - goal_translation_error: encodes equality as inequality (or vice versa).
95
+ - connective_mismatch: Wrong logical connective β€” ∧ vs β†’ (conjunction vs implication), ↔ vs β†’ (biconditional vs implication), ∧ vs ∨ ("and" vs "or"), misplaced negation (Β¬(βˆƒx…) vs βˆƒx,¬…). Example: NL says "if P then Q" but Lean encodes "P ∧ Q".
96
+ - contradictory_premises: Lean hypotheses are mutually contradictory (cannot all be satisfied). Example: StrictMono a combined with a n = a 0.
97
+
98
+ ### domain_mismatch detail tags
99
+ - type_mismatch: uses Nat where Int or Real is required.
100
+ - domain_of_variables_mismatch: uses 0..99 instead of 1..100.
101
+ - truncation_issue: Nat subtraction used where negatives are needed.
102
+
103
+ ### definition_mismatch detail tags
104
+ - misuse_of_concept: uses Nat subtraction to model absolute difference.
105
+ - wrong_operator: uses sum instead of product in a counting formula.
106
+ - wrong_constant: subtracts 4 instead of 1 in a transition rule.
107
+ - library_usage_error: uses the wrong Lean API for the intended notion.
108
+ - incorrect_function_choice: List.range used for a 1-indexed sum.
109
+ - paper_vs_lean_semantics: "limit" encoded without filters or topology.
110
+ - encoding_issue: Lean encoding is too weak/strong vs the intended concept.
111
+
112
+ ### quantifier_indexing_mismatch detail tags
113
+ - quantifier_mismatch: forall x, exists y vs exists y, forall x.
114
+ - indexing_mismatch: off-by-one indexing in a sequence definition.
115
+ - bound_mismatch: i <= n used where i < n is required.
116
+ - variable_mismatch: compares A x y = x instead of A x y = i.
117
+
118
+ ### General
119
+
120
+ ## Meta tags (non-prompt, optional)
121
+
122
+ Use these as metadata for pipeline or dataset issues. They do not require separate prompts.
123
+
124
+ - answer_handling_mismatch: solution leaked, missing, wrong, or MC mismatch.
125
+ - tooling_error: syntax_error, type_error, or not validated by Lean REPL.
126
+ - prover_failure: proof search fails despite correct statement.
127
+ - autoformalization_failure: pipeline could not produce a Lean statement.
128
+ - version_drift: Lean/toolchain change invalidates prior statements.
129
+ - informalization_issue: Lean -> NL output is incorrect or misleading.
130
+ - code_style_issue: readability or style problem (not semantic).
131
+ - api_design_issue: notational or API design mismatch (non-semantic).
132
+ - unused_parameter: free variable/parameter in statement that is never used (may be harmless refactor or may change generalization).
133
+ - extra_parameter: parameter added that isn't in NL problem and changes the meaning.
134
+
135
+ ## Detail tag mapping (recommended)
136
+
137
+ Detail tags refine a primary tag:
138
+
139
+ - problem_statement_error: ambiguity_or_unformalizable, wrong_question, incomplete_statement, unprovable_problem, literal_mismatch
140
+ - specification_error: missing_hypothesis, extra_hypothesis, distinctness_missing, incomplete_spec, incorrect_spec, oversimplified_spec, base_case_missing, division_by_zero_risk, uniqueness_missing
141
+ - formalization_error: goal_mismatch, missing_subgoal, premise_translation_error, goal_translation_error, connective_mismatch, contradictory_premises
142
+ - domain_mismatch: type_mismatch, domain_of_variables_mismatch, truncation_issue
143
+ - definition_mismatch: misuse_of_concept, wrong_operator, wrong_constant, library_usage_error, incorrect_function_choice, paper_vs_lean_semantics, encoding_issue
144
+ - quantifier_indexing_mismatch: quantifier_mismatch, indexing_mismatch, bound_mismatch, variable_mismatch
145
+
eval_prompts_fewshot.md ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Evaluation Prompts - Few-Shot
2
+
3
+ ## System Prompt
4
+
5
+ ```text
6
+ You are an expert auditor for NL β†’ Lean 4 formalizations.
7
+
8
+ You will be given:
9
+ - Natural language problem statement (NL)
10
+ - Lean 4 code snippet (Lean). Focus on the *main theorem/definition statement* that encodes the NL. Ignore the proof (`by sorry` etc.).
11
+
12
+ Your task: For ONE specific error category (given below), decide whether the Lean statement has an error of that category relative to the NL problem.
13
+
14
+ Important rules:
15
+ - Output MUST be valid JSON (no markdown, no extra keys).
16
+ - Say NO if the formalization is correct for this category, even if some other category might make sense.
17
+ - Say NO if there is no semantic error at all, many formalizations are actually correct!
18
+ - Only say YES if you find a clear, concrete error matching THIS category's definition.
19
+ - If you are not confident, set NeedsReview = "YES".
20
+ - DetailTags must be chosen ONLY from the allowed list for this category.
21
+
22
+ Return JSON with keys exactly:
23
+ Verdict: "YES" or "NO"
24
+ Explanation: 1–3 sentences with concrete evidence (what phrase/construct is wrong, or why it's correct).
25
+ DetailTags: array of strings (empty if Verdict = "NO")
26
+ NeedsReview: "YES" or "NO"
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Prompt 1 β€” problem_statement_error
32
+
33
+ ```text
34
+ CATEGORY: problem_statement_error
35
+
36
+ Definition: The NL problem itself is ambiguous, ill-posed, unformalizable, or false as stated. Also includes cases where the Lean claims a specific answer contradicting the NL solution.
37
+
38
+ Allowed DetailTags: ambiguity_or_unformalizable, wrong_question, incomplete_statement, unprovable_problem, literal_mismatch, other
39
+
40
+ ---
41
+
42
+ FEW-SHOT EXAMPLE (Verdict: YES β€” NL constraints are inconsistent)
43
+ [Natural language]
44
+ Find positive integers a, b, and c such that a + b + c = 2 and abc = 1.
45
+
46
+ [Lean]
47
+ theorem synthetic_positive_triple_impossible :
48
+ βˆƒ a b c : β„•, a > 0 ∧ b > 0 ∧ c > 0 ∧ a + b + c = 2 ∧ a * b * c = 1 := by sorry
49
+
50
+ {"Verdict": "YES", "Explanation": "Positive integers with product 1 must all equal 1, so their sum is 3, not 2. The NL problem is impossible as stated.", "DetailTags": ["unprovable_problem"], "NeedsReview": "NO"}
51
+
52
+ ---
53
+
54
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
55
+ [Natural language]
56
+ Prove that the removal of an edge from a tree leaves a forest of two trees.
57
+
58
+ [Lean]
59
+ theorem brualdi_ch11_59 {V : Type*} [Fintype V] [DecidableEq V]
60
+ (T : SimpleGraph V) (hT : IsTree T) (e : Sym2 V) (he : e ∈ T.edgeSet) :
61
+ βˆƒ (T1 T2 : SimpleGraph V), IsTree T1 ∧ IsTree T2 ∧
62
+ T1.edgeSet βˆͺ T2.edgeSet = T.edgeSet \ {e} ∧
63
+ Disjoint T1.support T2.support := by sorry
64
+
65
+ {"Verdict": "NO", "Explanation": "The NL problem is well-posed, and the Lean statement matches it directly.", "DetailTags": [], "NeedsReview": "NO"}
66
+
67
+ ---
68
+
69
+ Input:
70
+ [Natural language]
71
+ {{PROBLEM_NL}}
72
+
73
+ [Lean]
74
+ {{LEAN_CODE}}
75
+
76
+ Return JSON only.
77
+ ```
78
+
79
+ ---
80
+
81
+ ## Prompt 2 β€” specification_error
82
+
83
+ ```text
84
+ CATEGORY: specification_error
85
+
86
+ Definition: The mathematical specification is missing/extra/incorrect assumptions, constraints, or scope.
87
+
88
+ Allowed DetailTags: missing_hypothesis, extra_hypothesis, distinctness_missing, incomplete_spec, incorrect_spec, oversimplified_spec, base_case_missing, division_by_zero_risk, uniqueness_missing, other
89
+
90
+ Boundary: If the issue is wrong type (β„• vs β„€), that's domain_mismatch. If it's quantifier/indexing, that's quantifier_indexing_mismatch.
91
+
92
+ ---
93
+
94
+ FEW-SHOT EXAMPLE (Verdict: YES β€” the stated answer is omitted from the formal spec)
95
+ [Natural language]
96
+ The unique solution to the linear equation 2 = -12 + 2r is r = 7.
97
+
98
+ [Lean]
99
+ def given_equation (r : ℝ) : Prop := (2 : ℝ) = (-12 : ℝ) + 2 * r
100
+
101
+ theorem unique_solution : βˆƒ! r : ℝ, given_equation r := by sorry
102
+
103
+ {"Verdict": "YES", "Explanation": "The NL says not just that a unique solution exists, but specifically that the solution is r = 7. The Lean theorem only states unique existence and omits the stated witness.", "DetailTags": ["incomplete_spec"], "NeedsReview": "NO"}
104
+
105
+ ---
106
+
107
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
108
+ [Natural language]
109
+ Prove that a group of even order contains an element of order 2.
110
+
111
+ [Lean]
112
+ theorem exercise_2_11_3 {G : Type*} [Group G] [Fintype G]
113
+ (hG : Even (card G)) : βˆƒ x : G, orderOf x = 2 := by sorry
114
+
115
+ {"Verdict": "NO", "Explanation": "The Lean statement includes the needed finite-group setting and the even-order hypothesis, then states the intended conclusion directly. There is no missing or incorrect specification here.", "DetailTags": [], "NeedsReview": "NO"}
116
+
117
+ ---
118
+
119
+ Input:
120
+ [Natural language]
121
+ {{PROBLEM_NL}}
122
+
123
+ [Lean]
124
+ {{LEAN_CODE}}
125
+
126
+ Return JSON only.
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Prompt 3 β€” formalization_error
132
+
133
+ ```text
134
+ CATEGORY: formalization_error
135
+
136
+ Definition: The spec is clear, but the Lean encoding doesn't match due to translation choices (wrong connectives, contradictory premises, structural mismatch).
137
+
138
+ Allowed DetailTags: goal_mismatch, missing_subgoal, premise_translation_error, goal_translation_error, connective_mismatch, contradictory_premises, other
139
+
140
+ Boundary: Wrong type β†’ domain_mismatch. Wrong concept β†’ definition_mismatch. Indexing issues β†’ quantifier_indexing_mismatch.
141
+
142
+ ---
143
+
144
+ FEW-SHOT EXAMPLE (Verdict: YES β€” intended property is mistranslated)
145
+ [Natural language]
146
+ There are exactly three positive real numbers k such that the function
147
+ f(x) = ((x - 18)(x - 72)(x - 98)(x - k)) / x
148
+ attains its minimum value at exactly two positive real numbers x. The sum of these three values is 240.
149
+
150
+ [Lean]
151
+ noncomputable def f (k x : ℝ) : ℝ :=
152
+ (x - 18) * (x - 72) * (x - 98) * (x - k) / x
153
+
154
+ def exactly_two_minima (k : ℝ) : Prop :=
155
+ βˆƒ (a b : ℝ), 0 < a ∧ 0 < b ∧ a β‰  b ∧ (f k a = f k b) ∧
156
+ (βˆ€ (x : ℝ), 0 < x β†’ (f k x > f k a ∨ x = b))
157
+
158
+ theorem aime_2025ii_p15 :
159
+ βˆƒ (k₁ kβ‚‚ k₃ : ℝ), 0 < k₁ ∧ 0 < kβ‚‚ ∧ 0 < k₃ ∧
160
+ k₁ β‰  kβ‚‚ ∧ k₁ β‰  k₃ ∧ kβ‚‚ β‰  k₃ ∧
161
+ exactly_two_minima k₁ ∧ exactly_two_minima kβ‚‚ ∧ exactly_two_minima k₃ ∧
162
+ k₁ + kβ‚‚ + k₃ = 240 := by sorry
163
+
164
+ {"Verdict": "YES", "Explanation": "The Lean encoding of 'exactly two minima' is wrong. Plugging x = a into the universal clause forces f k a > f k a or a = b, which is impossible, so the intended property has been mistranslated.", "DetailTags": ["goal_translation_error"], "NeedsReview": "NO"}
165
+
166
+ ---
167
+
168
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
169
+ [Natural language]
170
+ Prove that the complement of a disconnected graph is connected.
171
+
172
+ [Lean]
173
+ theorem brualdi_ch12_34 {V : Type*} (G : SimpleGraph V) (h : Β¬ G.Connected) :
174
+ Gᢜ.Connected := by sorry
175
+
176
+ {"Verdict": "NO", "Explanation": "The Lean statement directly matches the NL claim: if a graph is disconnected, then its complement is connected. There is no translation-structure error here.", "DetailTags": [], "NeedsReview": "NO"}
177
+
178
+ ---
179
+
180
+ Input:
181
+ [Natural language]
182
+ {{PROBLEM_NL}}
183
+
184
+ [Lean]
185
+ {{LEAN_CODE}}
186
+
187
+ Return JSON only.
188
+ ```
189
+
190
+ ---
191
+
192
+ ## Prompt 4 β€” domain_mismatch
193
+
194
+ ```text
195
+ CATEGORY: domain_mismatch
196
+
197
+ Definition: The Lean uses wrong carrier type/domain, changing meaning (β„• vs β„€, Fin n vs 1..n, truncating subtraction/division).
198
+
199
+ Allowed DetailTags: type_mismatch, domain_of_variables_mismatch, truncation_issue, other
200
+
201
+ Boundary: Missing constraints with correct domain β†’ specification_error.
202
+
203
+ ---
204
+
205
+ FEW-SHOT EXAMPLE (Verdict: YES β€” the variable domain is wrong)
206
+ [Natural language]
207
+ Prove that lim_{nβ†’βˆž} (sqrt(n^2 + n) - n) = 1/2.
208
+
209
+ [Lean]
210
+ theorem exercise_3_2a :
211
+ Tendsto (Ξ» (n : ℝ) => (sqrt (n^2 + n) - n)) atTop (𝓝 (1 / 2)) := by sorry
212
+
213
+ {"Verdict": "YES", "Explanation": "The NL is a sequence limit with n ranging over the natural-number index. The Lean statement instead takes n : ℝ, so it changes the carrier of the variable and therefore the meaning of the limit statement.", "DetailTags": ["type_mismatch"], "NeedsReview": "NO"}
214
+
215
+ ---
216
+
217
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
218
+ [Natural language]
219
+ Verify that there is no magic square of order 2.
220
+
221
+ [Lean]
222
+ theorem brualdi_ch1_10 : Β¬βˆƒ (M : Matrix (Fin 2) (Fin 2) β„•), IsMagicSquare M := by sorry
223
+
224
+ {"Verdict": "NO", "Explanation": "A 2Γ—2 magic square is naturally modeled by a matrix indexed by Fin 2 with natural entries. The Lean statement uses the right carrier and domain, so there is no domain mismatch.", "DetailTags": [], "NeedsReview": "NO"}
225
+
226
+ ---
227
+
228
+ Input:
229
+ [Natural language]
230
+ {{PROBLEM_NL}}
231
+
232
+ [Lean]
233
+ {{LEAN_CODE}}
234
+
235
+ Return JSON only.
236
+ ```
237
+
238
+ ---
239
+
240
+ ## Prompt 5 β€” definition_mismatch
241
+
242
+ ```text
243
+ CATEGORY: definition_mismatch
244
+
245
+ Definition: Lean objects don't represent the intended math notion (wrong operator, wrong constant, wrong library concept, misuse of API).
246
+
247
+ Allowed DetailTags: misuse_of_concept, wrong_operator, wrong_constant, library_usage_error, incorrect_function_choice, paper_vs_lean_semantics, encoding_issue, other
248
+
249
+ Boundary: Wrong type β†’ domain_mismatch. Missing assumptions β†’ specification_error.
250
+
251
+ ---
252
+
253
+ FEW-SHOT EXAMPLE (Verdict: YES β€” the formal object is the wrong mathematical concept)
254
+ [Natural language]
255
+ Evaluate the integral ∫ cbrt(cos x) · sin^3(x) dx. The answer is
256
+ -(3/4) cos^(4/3)(x) + (3/10) cos^(10/3)(x) + C.
257
+
258
+ [Lean]
259
+ theorem integral_of_cube_root_cos_sin_cube (x : ℝ) :
260
+ ∫ x in Set.Icc 0 x, (cos x)^(1/3 : ℝ) * (sin x)^3 =
261
+ - (3/4) * (cos x)^(4/3 : ℝ) + (3/10) * (cos x)^(10/3 : ℝ) + C := by sorry
262
+
263
+ {"Verdict": "YES", "Explanation": "The NL asks for an indefinite integral, i.e. an antiderivative family with +C. The Lean statement instead uses a definite interval integral and also leaves C free, so it formalizes the wrong concept.", "DetailTags": ["misuse_of_concept"], "NeedsReview": "NO"}
264
+
265
+ ---
266
+
267
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
268
+ [Natural language]
269
+ Prove that -(-v) = v for every v ∈ V.
270
+
271
+ [Lean]
272
+ theorem exercise_1_3 {F V : Type*} [AddCommGroup V] [Field F]
273
+ [Module F V] {v : V} : -(-v) = v := by sorry
274
+
275
+ {"Verdict": "NO", "Explanation": "Lean's negation here is exactly the additive inverse from the NL statement, and the theorem states the intended identity directly. There is no definition mismatch.", "DetailTags": [], "NeedsReview": "NO"}
276
+
277
+ ---
278
+
279
+ Input:
280
+ [Natural language]
281
+ {{PROBLEM_NL}}
282
+
283
+ [Lean]
284
+ {{LEAN_CODE}}
285
+
286
+ Return JSON only.
287
+ ```
288
+
289
+ ---
290
+
291
+ ## Prompt 6 β€” quantifier_indexing_mismatch
292
+
293
+ ```text
294
+ CATEGORY: quantifier_indexing_mismatch
295
+
296
+ Definition: Bug in quantifiers, bounds, indexing, or variable scope (off-by-one, wrong range, free vs bound variable).
297
+
298
+ Allowed DetailTags: quantifier_mismatch, indexing_mismatch, bound_mismatch, variable_mismatch, other
299
+
300
+ Boundary: Connective issues (∧ vs β†’) β†’ formalization_error. Missing constraints β†’ specification_error. Wrong types β†’ domain_mismatch.
301
+
302
+ ---
303
+
304
+ FEW-SHOT EXAMPLE (Verdict: YES β€” the summation range is off by one)
305
+ [Natural language]
306
+ The sum βˆ‘_k binom(n, floor(k/2)) x^k is equal to (1 + x)(1 + x^2)^n.
307
+
308
+ [Lean]
309
+ theorem binomial_sum_equiv_product (n : β„•) (x : ℝ) :
310
+ βˆ‘ k in range (2 * n + 1), (Nat.choose n (k / 2)) * x ^ k = (1 + x) * (1 + x ^ 2) ^ n := by sorry
311
+
312
+ {"Verdict": "YES", "Explanation": "The right-hand side has degree 2n + 1, so the intended sum includes the k = 2n + 1 term. Lean uses range (2 * n + 1), which runs only from k = 0 to 2n, so the indexing is off by one.", "DetailTags": ["indexing_mismatch"], "NeedsReview": "NO"}
313
+
314
+ ---
315
+
316
+ FEW-SHOT EXAMPLE (Verdict: NO β€” the formalization is fine for this category)
317
+ [Natural language]
318
+ Let n be the smallest positive integer satisfying
319
+ n ≑ 2 (mod 3), n ≑ 3 (mod 5), and n ≑ 1 (mod 7).
320
+ Then n = 8.
321
+
322
+ [Lean]
323
+ theorem smallest_positive_integer :
324
+ (βˆƒ n : β„•+, congruence1 n ∧ congruence2 n ∧ congruence3 n) ∧
325
+ (βˆ€ n : β„•+, congruence1 n ∧ congruence2 n ∧ congruence3 n β†’ n β‰₯ 8) ∧
326
+ (congruence1 8 ∧ congruence2 8 ∧ congruence3 8) := by sorry
327
+
328
+ {"Verdict": "NO", "Explanation": "The quantifiers correctly express existence of a positive solution, minimality over all positive solutions, and verification that 8 satisfies the congruences. There is no quantifier or indexing mismatch here.", "DetailTags": [], "NeedsReview": "NO"}
329
+
330
+ ---
331
+
332
+ Input:
333
+ [Natural language]
334
+ {{PROBLEM_NL}}
335
+
336
+ [Lean]
337
+ {{LEAN_CODE}}
338
+
339
+ Return JSON only.
340
+ ```
ground_truth_schema.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # semantic_lean_errors Schema
2
+
3
+ This file documents the schema of the exported `semantic_lean_errors.jsonl` and `semantic_lean_errors.json` files.
4
+ Both files contain the same records.
5
+
6
+ - `semantic_lean_errors.jsonl` stores one record per line.
7
+ - `semantic_lean_errors.json` stores the same records as a pretty-printed JSON array.
8
+
9
+ ## Record Format
10
+
11
+ Each record is one labeled NL/Lean pair.
12
+
13
+ Fields:
14
+
15
+ - `id` (string)
16
+ - Stable example identifier.
17
+ - `source` (string)
18
+ - Source benchmark: one of `FormalMath`, `ProofNet`, `ProverBench`, `CombiBench`.
19
+ - `problem_nl` (string)
20
+ - Natural-language problem statement.
21
+ - `lean_code` (string)
22
+ - Canonical Lean statement being judged.
23
+ - `expected_verdict` (string)
24
+ - Row-level binary label.
25
+ - `YES` means the row contains a semantic error.
26
+ - `NO` means the row is a clean example.
27
+ - `error_primary` (string or null)
28
+ - Primary semantic error category.
29
+ - Null for clean examples.
30
+ - `error_secondary` (array[string])
31
+ - Optional secondary semantic categories.
32
+ - `error_tags` (array[string])
33
+ - Detail tags refining the error type.
34
+ - `meta_tags` (array[string])
35
+ - Optional non-prompt metadata tags.
36
+ - `gold_explanation` (string)
37
+ - Human-written explanation of the label.
38
+
39
+ ## Primary Categories
40
+
41
+ The dataset uses six primary semantic-error categories:
42
+
43
+ - `problem_statement_error`
44
+ - `specification_error`
45
+ - `formalization_error`
46
+ - `domain_mismatch`
47
+ - `definition_mismatch`
48
+ - `quantifier_indexing_mismatch`
49
+
50
+ See `error_tags.md` for category definitions, boundaries, and detail-tag guidance.
51
+
52
+ ## Label Semantics
53
+
54
+ Two label views are represented in the export:
55
+
56
+ 1. Binary row-level view
57
+ - Use `expected_verdict`.
58
+ - `YES` = some semantic error is present.
59
+ - `NO` = clean example.
60
+
61
+ 2. Category-specific view
62
+ - Use `error_primary`.
63
+ - In the current 6-category evaluation, a category prompt expects `YES` iff `error_primary` equals the queried category; otherwise `NO`.
64
+
65
+ ## Normalization Policy
66
+
67
+ This exported release is intentionally normalized:
68
+
69
+ - `lean_code` is the single canonical code field.
70
+ - ProofNet examples are normalized from `original_lean_code` to `lean_code`.
71
+ - `fixed_lean_code` and `lean_code_fixed` are not included in this release bundle.
72
+ - `error_secondary`, `error_tags`, and `meta_tags` are always lists.
73
+
74
+ ## Example
75
+
76
+ ```json
77
+ {
78
+ "id": "example_id",
79
+ "source": "FormalMath",
80
+ "problem_nl": "...",
81
+ "lean_code": "theorem ... := by",
82
+ "expected_verdict": "YES",
83
+ "error_primary": "definition_mismatch",
84
+ "error_secondary": [],
85
+ "error_tags": ["wrong_operator"],
86
+ "meta_tags": [],
87
+ "gold_explanation": "The Lean operator does not match the intended informal notion."
88
+ }
89
+ ```
semantic_lean_errors.json ADDED
@@ -0,0 +1,1415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "id": "combibench_apmo_1991_p2",
4
+ "source": "CombiBench",
5
+ "problem_nl": "Suppose there are 997 points given in a plane. If every two points are joined by a line segment with its midpoint coloured in red, show that there are at least 1991 red points in the plane.",
6
+ "lean_code": "theorem apmo_1991_p2 (points : Fin 997 β†’ ℝ Γ— ℝ) : (red_points points).card β‰₯ 1991 := by sorry",
7
+ "expected_verdict": "YES",
8
+ "error_primary": "specification_error",
9
+ "error_secondary": [],
10
+ "error_tags": [
11
+ "distinctness_missing"
12
+ ],
13
+ "meta_tags": [],
14
+ "gold_explanation": "If points are not distinct, the bound fails (e.g., all points equal), but the NL assumes distinct points."
15
+ },
16
+ {
17
+ "id": "combibench_apmo_2023_p1",
18
+ "source": "CombiBench",
19
+ "problem_nl": "Let $n \\geq 5$ be an integer. Consider $n$ squares with side lengths $1,2, \\ldots, n$, respectively. The squares are arranged in the plane with their sides parallel to the $x$ and $y$ axes. Suppose that no two squares touch, except possibly at their vertices.\\nShow that it is possible to arrange these squares in a way such that every square touches exactly two other squares.",
20
+ "lean_code": "theorem apmo_2023_p1 (n : β„•) (h_n: n β‰₯ 5) :\n βˆƒ position: Fin n β†’ ℝ Γ— ℝ,\n (βˆ€ n1 n2 : Fin n, n1 β‰  n2 β†’ Β¬ touches_interior_or_edge ⟨position n1, n1 + 1⟩ ⟨position n2, n2 + 1⟩)\n ∧ βˆ€m : Fin n, βˆƒ l k, m β‰  l ∧ m β‰  k ∧ l β‰  k\n ∧ touches ⟨position m, m + 1⟩ ⟨position l, l + 1⟩\n ∧ touches ⟨position m, m + 1⟩ ⟨position k, k + 1⟩\n ∧ (βˆ€ j : Fin n, j βˆ‰ [m, l, k] β†’ Β¬ touches ⟨position m, m + 1⟩ ⟨position j, j + 1⟩) := by sorry",
21
+ "expected_verdict": "YES",
22
+ "error_primary": "definition_mismatch",
23
+ "error_secondary": [
24
+ "formalization_error"
25
+ ],
26
+ "error_tags": [
27
+ "encoding_issue",
28
+ "goal_mismatch"
29
+ ],
30
+ "meta_tags": [],
31
+ "gold_explanation": "The notion of 'touch / touch only at vertices' and the way 'exactly two touches' is counted appears under-specified/possibly mis-modeled; hard to verify without the definitions of touches*."
32
+ },
33
+ {
34
+ "id": "combibench_balticway_2015_p7",
35
+ "source": "CombiBench",
36
+ "problem_nl": "There are 100 members in a ladies' club. Each lady has had tea (in private) with exactly 56 of the other members of the club. The Board, consisting of the 50 most distinguished ladies, have all had tea with one another. Prove that the entire club may be split into two groups in such a way that, within each group, any lady has had tea with any other.",
37
+ "lean_code": "theorem balticway_2015_p7 (had_tea: SimpleGraph (Ladies)) [DecidableRel had_tea.Adj]\n (h_had_tea_with_56: βˆ€ l : Ladies, had_tea.degree l = 56)\n (h_board: βˆƒ board : Finset Ladies, board.card = 50 ∧ (βˆ€ l1 l2: board, had_tea.Adj l1 l2)) :\n βˆƒ group1 group2: Finset Ladies,\n group1 βˆͺ group2 = Finset.univ\n ∧ Disjoint group1 group2\n ∧ (βˆ€ l1 l2: group1, had_tea.Adj l1 l2)\n ∧ (βˆ€ l1 l2: group2, had_tea.Adj l1 l2) := by sorry",
38
+ "expected_verdict": "YES",
39
+ "error_primary": "definition_mismatch",
40
+ "error_secondary": [],
41
+ "error_tags": [
42
+ "library_usage_error"
43
+ ],
44
+ "meta_tags": [
45
+ "tooling_error"
46
+ ],
47
+ "gold_explanation": "βˆ€ l1 l2 : board is ill-typed and does not express a clique; IsClique matches NL."
48
+ },
49
+ {
50
+ "id": "combibench_brualdi_ch10_34",
51
+ "source": "CombiBench",
52
+ "problem_nl": "Let $t$ be a positive integer. Prove that, if there exists a Steiner triple system of index 1 having $v$ varieties, then there exists a Steiner triple system having $v^{t}$ varieties.",
53
+ "lean_code": "theorem brualdi_ch10_34 (t v : β„•) (ht : t > 1): Nonempty (SteinerTripleSystemOfIndOne 2 3 v) β†’\n Nonempty (SteinerTripleSystemOfIndOne 2 3 (v ^ t)) := by sorry",
54
+ "expected_verdict": "YES",
55
+ "error_primary": "specification_error",
56
+ "error_secondary": [
57
+ "definition_mismatch"
58
+ ],
59
+ "error_tags": [
60
+ "incorrect_spec",
61
+ "encoding_issue"
62
+ ],
63
+ "meta_tags": [],
64
+ "gold_explanation": "NL says 'STS of index 1 β‡’ STS (some index) on v^t'; original conclusion stays in 'index 1' and assumption t>1 vs 'positive integer' is unclear without STS definitions."
65
+ },
66
+ {
67
+ "id": "combibench_brualdi_ch10_60",
68
+ "source": "CombiBench",
69
+ "problem_nl": "Prove that a symmetric, idempotent Latin square has odd order.",
70
+ "lean_code": "theorem brualdi_ch10_60 {n : β„•} (L : LatinSquare n) :\n IsIdempotentElem L.1 ∧ L.1.IsSymm β†’ Odd n := by sorry",
71
+ "expected_verdict": "YES",
72
+ "error_primary": "specification_error",
73
+ "error_secondary": [
74
+ "definition_mismatch"
75
+ ],
76
+ "error_tags": [
77
+ "base_case_missing",
78
+ "library_usage_error"
79
+ ],
80
+ "meta_tags": [],
81
+ "gold_explanation": "NL assumes positive order and idempotence on the diagonal; original predicate name is unclear and no positivity guard was present."
82
+ },
83
+ {
84
+ "id": "combibench_brualdi_ch11_5",
85
+ "source": "CombiBench",
86
+ "problem_nl": "Use the pigeonhole principle to prove that a graph of order n β‰₯ 2 always has two vertices of the same degree.",
87
+ "lean_code": "theorem brualdi_ch11_5 {V : Type*} (n : β„•) (h_n: n β‰₯ 2) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] :\n βˆƒ v1 v2, v1 β‰  v2 ∧ G.degree v1 = G.degree v2 := by sorry",
88
+ "expected_verdict": "NO",
89
+ "error_primary": null,
90
+ "error_secondary": [],
91
+ "error_tags": [],
92
+ "meta_tags": [
93
+ "unused_parameter",
94
+ "code_style_issue"
95
+ ],
96
+ "gold_explanation": "Removal of an unused type parameter is refactor-only; original statement was still correct."
97
+ },
98
+ {
99
+ "id": "combibench_brualdi_ch14_26",
100
+ "source": "CombiBench",
101
+ "problem_nl": "How many different necklaces are there that contain four red and three blue beads?",
102
+ "lean_code": "structure PreNecklaces where\n c : Fin 7 β†’ Fin 2\n deriving Fintype",
103
+ "expected_verdict": "YES",
104
+ "error_primary": "specification_error",
105
+ "error_secondary": [],
106
+ "error_tags": [
107
+ "missing_hypothesis"
108
+ ],
109
+ "meta_tags": [],
110
+ "gold_explanation": "NL requires exactly four red and three blue beads, but the original structure had no count constraint. Note: the proposed fix with βˆƒ S, S.card = 4 only enforces at-least-4-red, not exactly-4-red."
111
+ },
112
+ {
113
+ "id": "combibench_brualdi_ch1_5",
114
+ "source": "CombiBench",
115
+ "problem_nl": "Find the number of different perfect covers of a 3-by-4 chessboard by dominoes.",
116
+ "lean_code": "theorem brualdi_ch1_5 : Fintype.card PerfectCover = brualdi_ch1_5_solution := by sorry",
117
+ "expected_verdict": "YES",
118
+ "error_primary": "domain_mismatch",
119
+ "error_secondary": [
120
+ "definition_mismatch"
121
+ ],
122
+ "error_tags": [
123
+ "type_mismatch",
124
+ "encoding_issue"
125
+ ],
126
+ "meta_tags": [],
127
+ "gold_explanation": "Refactor to explicit domino modeling and specialization; original already fixed board size, so correctness is unclear."
128
+ },
129
+ {
130
+ "id": "combibench_brualdi_ch2_36",
131
+ "source": "CombiBench",
132
+ "problem_nl": "Determine the total number of combinations (of any size) of a multiset of objects of $k$ different types with finite repetition numbers $n_1, n_2, \\ldots, n_k$, respectively.",
133
+ "lean_code": "theorem brualdi_ch2_36 {k : β„•} (n : Fin k β†’ β„•) (sols : Finset (Fin k β†’ β„•)) (h_sols : βˆ€ f, f ∈ sols ↔ (βˆ€ i, f i ≀ n i)) : sols.card = ((fun n => (βˆ‘ i : Fin k, (n i + 1))) : (Fin k β†’ β„•) β†’ β„•) n := by sorry",
134
+ "expected_verdict": "YES",
135
+ "error_primary": "definition_mismatch",
136
+ "error_secondary": [],
137
+ "error_tags": [
138
+ "wrong_operator"
139
+ ],
140
+ "meta_tags": [],
141
+ "gold_explanation": "The number of combinations of a multiset with repetition bounds n_i is the product ∏(n_i+1), not the sum βˆ‘(n_i+1). Sum gives wrong answer for any k>1."
142
+ },
143
+ {
144
+ "id": "combibench_brualdi_ch2_6",
145
+ "source": "CombiBench",
146
+ "problem_nl": "How many integers greater than 5400 have both of the following properties? (a) The digits are distinct. (b) The digits 2 and 7 do not occur.",
147
+ "lean_code": "theorem brualdi_ch2_6 (s : Finset β„•)\n (hs0 : βˆ€ n ∈ s, n > 5400)\n (hs1 : βˆ€ n ∈ s, (Nat.digits 10 n).Nodup)\n (hs2 : βˆ€ n ∈ s, 2 βˆ‰ (Nat.digits 10 n) ∧ 7 βˆ‰ (Nat.digits 10 n)) :\n s.card = brualdi_ch2_6_solution := by sorry",
148
+ "expected_verdict": "YES",
149
+ "error_primary": "specification_error",
150
+ "error_secondary": [],
151
+ "error_tags": [
152
+ "incomplete_spec"
153
+ ],
154
+ "meta_tags": [],
155
+ "gold_explanation": "Before only required s subset of valid integers, so s.card is not determined; need iff."
156
+ },
157
+ {
158
+ "id": "combibench_brualdi_ch3_18",
159
+ "source": "CombiBench",
160
+ "problem_nl": "Prove that of any five points chosen within a square of side length 2 , there are two whose distance apart is at most $\\sqrt{2}$.",
161
+ "lean_code": "theorem brualdi_ch3_18\n (points : Fin 5 β†’ Set.Icc (0 : ℝ) 2 Γ— Set.Icc (0 : ℝ) 2) :\n βˆƒ i j, i β‰  j ∧ Dist.dist (points i) (points j) ≀ √2 := by sorry",
162
+ "expected_verdict": "YES",
163
+ "error_primary": "domain_mismatch",
164
+ "error_secondary": [
165
+ "definition_mismatch"
166
+ ],
167
+ "error_tags": [
168
+ "type_mismatch",
169
+ "paper_vs_lean_semantics"
170
+ ],
171
+ "meta_tags": [
172
+ "tooling_error"
173
+ ],
174
+ "gold_explanation": "Original used Set.Icc Γ— Set.Icc which is ill-typed. Also ℝ×ℝ would have wrong metric (sup not Euclidean). EuclideanSpace is correct. Expert confirmed (Joseph Myers)."
175
+ },
176
+ {
177
+ "id": "combibench_brualdi_ch4_35",
178
+ "source": "CombiBench",
179
+ "problem_nl": "The complement $\\bar{A}$ of an $r$-subset $A$ of $\\{1,2, \\ldots, n\\}$ is the $(n-r)$-subset of $\\{1,2, \\ldots, n\\}$, consisting of all those elements that do not belong to $A$. Let $M=\\binom{n}{r}$, the number of $r$-subsets and, at the same time, the number of $(n-r)$ subsets of $\\{1,2, \\ldots, n\\}$. Prove that, if $A_{1}, A_{2}, A_{3}, \\ldots, A_{M}$ are the $r$-subsets in lexicographic order, then $\\overline{A_{M}}, \\ldots, \\overline{A_{3}}, \\overline{A_{2}}, \\overline{A_{1}}$ are the $(n-r)$-subsets in lexicographic order.",
180
+ "lean_code": "theorem brualdi_ch4_35 (r n M : β„•) (hM : M = ((@Finset.univ (Fin n)).powersetCount r).card)\n (A : Fin M β†’ (Finset.powersetCount r (@Finset.univ (Fin M) _))) :\n βˆ€ i j, (List.Lex (fun x1 x2 : Fin M => x1 ≀ x2)\n (Finset.sort (Β· ≀ Β·) (A i)) (Finset.sort (Β· ≀ Β·) (A j))) β†’\n (List.Lex (fun x1 x2 : Fin M => x1 ≀ x2)\n (Finset.sort (Β· ≀ Β·) (A j)ᢜ) (Finset.sort (Β· ≀ Β·) (A i)ᢜ)) := by sorry",
181
+ "expected_verdict": "YES",
182
+ "error_primary": "domain_mismatch",
183
+ "error_secondary": [],
184
+ "error_tags": [
185
+ "type_mismatch"
186
+ ],
187
+ "meta_tags": [],
188
+ "gold_explanation": "Statement is about r-subsets of {1..n}, but before used Fin M elements and lex order on M, so the domain is wrong."
189
+ },
190
+ {
191
+ "id": "combibench_brualdi_ch4_59",
192
+ "source": "CombiBench",
193
+ "problem_nl": "Let $n \\geq 2$ be an integer. Prove that the total number of inversions of all $n$ ! permutations of $1,2, \\ldots, n$ equals $\\frac{1}{2} n!\\binom{n}{2}=n!\\frac{n(n-1)}{4}$ (Hint: Pair up the permutations so that the number of inversions in each pair is $\\frac{n(n-1)}{2}$.)",
194
+ "lean_code": "def invNum {n : β„•} (Οƒ : Equiv.Perm (Fin n)) : β„• :=\n βˆ‘ x ∈ Equiv.Perm.finPairsLT n, if Οƒ x.fst ≀ Οƒ x.snd then 0 else 1",
195
+ "expected_verdict": "YES",
196
+ "error_primary": "definition_mismatch",
197
+ "error_secondary": [],
198
+ "error_tags": [
199
+ "wrong_operator"
200
+ ],
201
+ "meta_tags": [],
202
+ "gold_explanation": "Before counted inversions (pairs where Οƒ(i) > Οƒ(j) for i < j). After counts non-inversions. Both give same sum over all permutations due to symmetry, so theorem remains correct either way."
203
+ },
204
+ {
205
+ "id": "combibench_brualdi_ch4_9",
206
+ "source": "CombiBench",
207
+ "problem_nl": "Show that the largest number of inversions of a permutation of ${1, 2, ... , n}$ equals $\\frac{n(n -1)}{2}$.",
208
+ "lean_code": "def invNum {n : β„•} (Οƒ : Equiv.Perm (Fin n)) : β„• :=\n βˆ‘ x ∈ Equiv.Perm.finPairsLT n, if Οƒ x.fst ≀ Οƒ x.snd then 0 else 1",
209
+ "expected_verdict": "YES",
210
+ "error_primary": "definition_mismatch",
211
+ "error_secondary": [],
212
+ "error_tags": [
213
+ "wrong_operator"
214
+ ],
215
+ "meta_tags": [],
216
+ "gold_explanation": "Before counted inversions, after counts non-inversions. Both give same maximum n(n-1)/2 (reverse perm has max inversions = identity has max non-inversions), so theorem correct either way."
217
+ },
218
+ {
219
+ "id": "combibench_brualdi_ch6_9",
220
+ "source": "CombiBench",
221
+ "problem_nl": "Determine the number of integral solutions of the equation $x_{1}+x_{2}+x_{3}+x_{4}=20$ that satisfy $1 \\leq x_{1} \\leq 6,0 \\leq x_{2} \\leq 7,4 \\leq x_{3} \\leq 8,2 \\leq x_{4} \\leq 6$.",
222
+ "lean_code": "theorem brualdi_ch6_9 : {x : Fin 4 β†’ β„• | x 0 ∈ Icc 1 6 ∧ x 1 ∈ Icc 0 7 ∧\n x 2 ∈ Icc 4 8 ∧ x 3 ∈ Icc 2 6}.ncard = brualdi_ch6_9_solution := by sorry",
223
+ "expected_verdict": "YES",
224
+ "error_primary": "specification_error",
225
+ "error_secondary": [],
226
+ "error_tags": [
227
+ "incomplete_spec"
228
+ ],
229
+ "meta_tags": [],
230
+ "gold_explanation": "Missing constraint x1+x2+x3+x4=20; before counts all tuples in bounds."
231
+ },
232
+ {
233
+ "id": "combibench_brualdi_ch9_13",
234
+ "source": "CombiBench",
235
+ "problem_nl": "Let $A$ be a matrix with $n$ columns, with integer entries taken from the set $S=\\{1,2, \\ldots, k\\}$. Assume that each integer $i$ in $S$ occurs exactly $n r_{i}$ times in $A$, where $r_{i}$ is an integer. Prove that it is possible to permute the entries in each row of $A$ to obtain a matrix $B$ in which each integer $i$ in $S$ appears $r_{i}$ times in each column.",
236
+ "lean_code": "theorem brualdi_ch9_13 (n m : β„•) (k : β„•+) (A : Matrix (Fin m) (Fin n) β„•)\n (hA : βˆ€ i j, A i j ∈ Finset.Icc 1 k.1) :\n βˆƒ (rΟƒ : Fin m β†’ Equiv.Perm (Fin n)), βˆ€ j : Fin n, βˆ€ i ∈ Set.Icc 1 k.1,\n (βˆ‘ x : Fin m, if A x ((rΟƒ x).symm j) = x then 1 else 0) * n =\n (βˆ‘ x : Fin m, βˆ‘ y : Fin n, if A x y = i then 1 else 0) := by sorry",
237
+ "expected_verdict": "YES",
238
+ "error_primary": "specification_error",
239
+ "error_secondary": [
240
+ "quantifier_indexing_mismatch",
241
+ "formalization_error"
242
+ ],
243
+ "error_tags": [
244
+ "missing_hypothesis",
245
+ "variable_mismatch",
246
+ "goal_mismatch"
247
+ ],
248
+ "meta_tags": [],
249
+ "gold_explanation": "Before omits the nr_i counting hypothesis and compares A x ... to x instead of i; it does not encode the NL statement."
250
+ },
251
+ {
252
+ "id": "combibench_egmo_2022_p5",
253
+ "source": "CombiBench",
254
+ "problem_nl": "For all positive integers n, k, let f(n, 2k) be the number of ways an n Γ— 2k board can be fully covered by nk dominoes of size 2 Γ— 1. Find all positive integers n such that for every positive integer k, the number f(n, 2k) is odd.",
255
+ "lean_code": "structure PerfectCover (n k : β„•) where\n d_set : Finset (Domino n k)\n d_card : d_set.card = n * k\n covers : βˆ€ i : Fin n Γ— Fin (2 * k), βˆƒ d ∈ d_set, i ∈ d.carrier",
256
+ "expected_verdict": "YES",
257
+ "error_primary": "definition_mismatch",
258
+ "error_secondary": [],
259
+ "error_tags": [
260
+ "encoding_issue"
261
+ ],
262
+ "meta_tags": [],
263
+ "gold_explanation": "PerfectCover uses Finset of labeled Dominos and distinguishes two squares of each domino. Count is multiplied by (nk)!Β·2^(nk). Problem asks when count is odd, so this bug matters. Expert confirmed (Joseph Myers)."
264
+ },
265
+ {
266
+ "id": "combibench_hackmath_3",
267
+ "source": "CombiBench",
268
+ "problem_nl": "How many four-digit numbers can be formed from the numbers 3 5 8 9 if they are not allowed to be repeated?",
269
+ "lean_code": "theorem hackmath_3 (sol : Finset β„•)\n (h_sol : βˆ€ s ∈ sol, 1000 ≀ s ∧ s ≀ 9999 ∧ (Nat.digits 10 s).toFinset = {3, 5, 8, 9}) :\n sol.card = hackmath_3_solution := by sorry",
270
+ "expected_verdict": "YES",
271
+ "error_primary": "specification_error",
272
+ "error_secondary": [],
273
+ "error_tags": [
274
+ "incomplete_spec"
275
+ ],
276
+ "meta_tags": [],
277
+ "gold_explanation": "Before only required sol subset of valid numbers, so sol.card is not fixed; need iff."
278
+ },
279
+ {
280
+ "id": "combibench_hackmath_4",
281
+ "source": "CombiBench",
282
+ "problem_nl": "How many people must be in a group for at least two of them to be born in the same month?",
283
+ "lean_code": "theorem hackmath_4 : IsLeast {n | βˆ€ f : Fin n β†’ Fin 12, βˆƒ a b, f a = f b} hackmath_4_solution := by sorry",
284
+ "expected_verdict": "YES",
285
+ "error_primary": "specification_error",
286
+ "error_secondary": [],
287
+ "error_tags": [
288
+ "distinctness_missing"
289
+ ],
290
+ "meta_tags": [],
291
+ "gold_explanation": "Without a β‰  b, the pigeonhole condition is trivially satisfied by taking a=b, so the least n is wrong."
292
+ },
293
+ {
294
+ "id": "combibench_hackmath_8",
295
+ "source": "CombiBench",
296
+ "problem_nl": "A ferry with a capacity of 10 people takes a group of 13 men and 7 women across a river. Find the number of ways in which the group may be taken across the if all women go on the first group.",
297
+ "lean_code": "theorem hackmath_8 (sols : Finset ((Fin 13 β†’ Fin 2) Γ— (Fin 7 β†’ Fin 2)))\n (h_women : βˆ€ f ∈ sols, βˆ€ i, f.2 i = 0)\n (h_sols : βˆ€ f, f ∈ sols ↔ βˆ€ k, ((List.ofFn f.1).count k + (List.ofFn f.2).count k = 10)) :\n sols.card = hackmath_8_solution := by sorry",
298
+ "expected_verdict": "YES",
299
+ "error_primary": "specification_error",
300
+ "error_secondary": [],
301
+ "error_tags": [
302
+ "incomplete_spec"
303
+ ],
304
+ "meta_tags": [],
305
+ "gold_explanation": "Women constraint was outside the membership iff, so sols could be any subset; NL needs the exact set."
306
+ },
307
+ {
308
+ "id": "combibench_imo_2000_p4",
309
+ "source": "CombiBench",
310
+ "problem_nl": "A magician has one hundred cards numbered $1$ to $100$. He puts them into three boxes, a red one, a white one and a blue one, so that each box contains at least one card. A member of the audience selects two of the three boxes, chooses one card from each and announces the sum of the numbers on the chosen cards. Given this sum, the magician identifies the box from which no card has been chosen. How many ways are there to put all the cards into the boxes so that this trick always works? (Two ways are considered different if at least one card is put into a different box.)",
311
+ "lean_code": "theorem imo_2000_p4 (good_allocations : Finset Allocation)\n (h : βˆ€ f ∈ good_allocations, βˆƒ (t : Trick), trick_works f t) :\n good_allocations.card = imo_2000_p4_solution := by sorry",
312
+ "expected_verdict": "YES",
313
+ "error_primary": "specification_error",
314
+ "error_secondary": [
315
+ "domain_mismatch"
316
+ ],
317
+ "error_tags": [
318
+ "missing_hypothesis",
319
+ "incomplete_spec",
320
+ "domain_of_variables_mismatch"
321
+ ],
322
+ "meta_tags": [],
323
+ "gold_explanation": "Cards should be 1..100 and good_allocations should be exactly surjective allocations with a working trick; before is underconstrained and off by domain."
324
+ },
325
+ {
326
+ "id": "combibench_imo_2005_p6",
327
+ "source": "CombiBench",
328
+ "problem_nl": "In a mathematical competition, in which 6 problems were posed to the participants, every two of these problems were solved by more than 2/5 of the contestants. Moreover, no contestant solved all the 6 problems. Show that there are at least 2 contestants who solved exactly 5 problems each.",
329
+ "lean_code": "theorem imo_2005_p6 {participants : Type} [Fintype participants] [DecidableEq participants]\n (solved : Fin 6 β†’ Finset participants)\n (h : βˆ€ i j, i β‰  j β†’ (solved i ∩ solved j).card > (2 * Fintype.card participants : ℝ) / 5)\n (h' : βˆ€ i, (solved i).card < Fintype.card participants) :\n βˆƒ s : Finset participants, s.card β‰₯ 2 ∧\n (βˆ€ i ∈ s, βˆƒ p : Finset (Fin 6), p.card = 5 ∧ βˆ€ j, j ∈ p ↔ i ∈ solved j) := by sorry",
330
+ "expected_verdict": "YES",
331
+ "error_primary": "quantifier_indexing_mismatch",
332
+ "error_secondary": [],
333
+ "error_tags": [
334
+ "quantifier_mismatch"
335
+ ],
336
+ "meta_tags": [],
337
+ "gold_explanation": "NL says each participant missed at least one problem; original only said each problem had someone who missed it."
338
+ },
339
+ {
340
+ "id": "combibench_imo_2010_p5",
341
+ "source": "CombiBench",
342
+ "problem_nl": "Each of the six boxes $B_1$, $B_2$, $B_3$, $B_4$, $B_5$, $B_6$ initially contains one coin. The following operations are allowed: Type 1) Choose a non-empty box $B_j$, $1\\leq j \\leq 5$, remove one coin from $B_j$ and add two coins to $B_{j+1}$; Type 2) Choose a non-empty box $B_k$, $1\\leq k \\leq 4$, remove one coin from $B_k$ and swap the contents (maybe empty) of the boxes $B_{k+1}$ and $B_{k+2}$. Determine if there exists a finite sequence of operations of the allowed types, such that the five boxes $B_1$, $B_2$, $B_3$, $B_4$, $B_5$ become empty, while box $B_6$ contains exactly $2010^{2010^{2010}}$ coins.",
343
+ "lean_code": "def op22 : Boxes β†’ Boxes\n | ⟨b1, b2, b3, b4, b5, b6⟩ => ⟨b1, b2 - 4, b4, b3, b5, b6⟩",
344
+ "expected_verdict": "YES",
345
+ "error_primary": "definition_mismatch",
346
+ "error_secondary": [],
347
+ "error_tags": [
348
+ "wrong_constant"
349
+ ],
350
+ "meta_tags": [],
351
+ "gold_explanation": "Type-1 operation removes one coin, but op22 subtracted 4; constant was wrong."
352
+ },
353
+ {
354
+ "id": "combibench_imo_2014_p2",
355
+ "source": "CombiBench",
356
+ "problem_nl": "Let $n\\ge2$ be an integer. Consider an $n\\times n$ chessboard consisting of $n^2$ unit squares. A configuration of $n$ rooks on this board is $\\textit{peaceful}$ if every row and every column contains exactly one rook. Find the greatest positive integer $k$ such that, for each peaceful configuration of $n$ rooks, there is a $k\\times k$ square which does not contain a rook on any of its $k^2$ squares.",
357
+ "lean_code": "theorem imo_2014_p2 (n : β„•) (hn : n β‰₯ 2) :\n IsGreatest {(k : β„•) | (k > 0) ∧ βˆ€ r : peaceful_rooks n, βˆƒ i j : Fin n,\n i.val + k - 1 < n ∧ i.val + k - 1 < n ∧\n βˆ€ m n, m.val < k ∧ n.val < k ∧ r.carrier (i + m) (j + n) = false}\n (imo_2014_p2_solution n) := by sorry",
358
+ "expected_verdict": "YES",
359
+ "error_primary": "formalization_error",
360
+ "error_secondary": [
361
+ "quantifier_indexing_mismatch"
362
+ ],
363
+ "error_tags": [
364
+ "connective_mismatch",
365
+ "variable_mismatch"
366
+ ],
367
+ "meta_tags": [],
368
+ "gold_explanation": "Original required m<k ∧ n<k for all m,n, which is impossible; implication matches NL. Also had duplicated i.val + k - 1 < n where second should be j.val."
369
+ },
370
+ {
371
+ "id": "combibench_imo_2014_p6",
372
+ "source": "CombiBench",
373
+ "problem_nl": "A set of lines in the plane is in general position if no two are parallel and no three pass through the same point. A set of lines in general position cuts the plane into regions, some of which have finite area; we call these its finite regions. Prove that for all sufficiently large n, in any set of n lines in general position it is possible to colour at least √n of the lines blue in such a way that none of its finite regions has a completely blue boundary.",
374
+ "lean_code": "def finite_regions (S : Set (ℝ Γ— ℝ)) (L : Finset (ℝ Γ— ℝ Γ— ℝ)) : Prop :=\n S.Nonempty ∧ Bornology.IsBounded S ∧\n βˆ€ l ∈ L, (βˆ€ p ∈ S, on_line p l) ∨ (βˆ€ p ∈ S, same_side_of_line p l)",
375
+ "expected_verdict": "YES",
376
+ "error_primary": "definition_mismatch",
377
+ "error_secondary": [],
378
+ "error_tags": [
379
+ "encoding_issue"
380
+ ],
381
+ "meta_tags": [],
382
+ "gold_explanation": "finite_regions is true for any singleton point, making the theorem trivially false. Should define actual finite regions created by the line arrangement. Expert confirmed (Joseph Myers)."
383
+ },
384
+ {
385
+ "id": "combibench_imo_2015_p1",
386
+ "source": "CombiBench",
387
+ "problem_nl": "We say that a finite set $\\mathcal{S}$ in the plane is balanced if, for any two different points $A$, $B$ in $\\mathcal{S}$, there is a point $C$ in $\\mathcal{S}$ such that $AC=BC$. We say that $\\mathcal{S}$ is centre-free if for any three points $A$, $B$, $C$ in $\\mathcal{S}$, there is no point $P$ in $\\mathcal{S}$ such that $PA=PB=PC$. (1) Show that for all integers $n\\geq 3$, there exists a balanced set consisting of $n$ points. (1) Determine all integers $n\\geq 3$ for which there exists a balanced centre-free set consisting of $n$ points.",
388
+ "lean_code": "theorem imo_2015_p1 : (βˆ€ n β‰₯ 3, βˆƒ (S : Finset (ℝ Γ— ℝ)), balanced S ∧ S.card = n) ∧\n {n | n β‰₯ 3 ∧ (βˆƒ (S : Finset (ℝ Γ— ℝ)), balanced S ∧ centre_free S ∧ S.card = n)} =\n imo_2015_p1_solution := by sorry",
389
+ "expected_verdict": "YES",
390
+ "error_primary": "domain_mismatch",
391
+ "error_secondary": [
392
+ "definition_mismatch"
393
+ ],
394
+ "error_tags": [
395
+ "type_mismatch",
396
+ "paper_vs_lean_semantics"
397
+ ],
398
+ "meta_tags": [],
399
+ "gold_explanation": "ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean. For balanced/centre-free sets with distance conditions, this fundamentally changes the problem. Expert confirmed (Joseph Myers)."
400
+ },
401
+ {
402
+ "id": "combibench_imo_2017_p3",
403
+ "source": "CombiBench",
404
+ "problem_nl": "A hunter and an invisible rabbit play a game in the Euclidean plane. The rabbit's starting point, $A_0$, and the hunter's starting point, $B_0$, are the same. After $n-1$ rounds of the game, the rabbit is at point $A_{n-1}$ and the hunter is at point $B_{n-1}$. In the nth round of the game, three things occur in order. (i) The rabbit moves invisibly to a point $A_n$ such that the distance between $A_{n-1}$ and $A_n$ is exactly 1. (ii) A tracking device reports a point $P_n$ to the hunter. The only guarantee provided by the tracking device is that the distance between $P_n$ and $A_n$ is at most 1. (iii) The hunter moves visibly to a point $B_n$ such that the distance between $B_{n-1}$ and $B_n$ is exactly 1. Is it always possible, no matter how the rabbit moves, and no matter what points are reported by the tracking device, for the hunter to choose her moves so that after $10^9$ rounds she can ensure that the distance between her and the rabbit is at most 100?",
405
+ "lean_code": "theorem imo_2017_p3 (start : ℝ Γ— ℝ) : imo_2017_p3_solution =\n βˆ€ (A : β„• β†’ (Fin 2 β†’ ℝ)), A 0 = ![start.1, start.2] β†’ βˆ€ n, dist (A n) (A (n + 1)) = 1 β†’\n (βˆƒ (P : β„• β†’ (Fin 2 β†’ ℝ)), βˆ€ n > 0, dist (P n) (A n) ≀ 1) β†’\n (βˆƒ (B : β„• β†’ (Fin 2 β†’ ℝ)), B 0 = ![start.1, start.2] ∧ βˆ€ n, dist (B n) (B (n + 1)) = 1 ∧\n dist (A (10 ^ 9)) (B (10 ^9)) ≀ 100) := by sorry",
406
+ "expected_verdict": "YES",
407
+ "error_primary": "domain_mismatch",
408
+ "error_secondary": [
409
+ "definition_mismatch"
410
+ ],
411
+ "error_tags": [
412
+ "type_mismatch",
413
+ "paper_vs_lean_semantics"
414
+ ],
415
+ "meta_tags": [],
416
+ "gold_explanation": "ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean. Hunter/rabbit game with 'distance exactly 1' has different meaning with wrong metric. Expert confirmed (Joseph Myers)."
417
+ },
418
+ {
419
+ "id": "combibench_imo_2017_p5",
420
+ "source": "CombiBench",
421
+ "problem_nl": "An integer $N \\ge 2$ is given. A collection of $N(N + 1)$ soccer players, no two of whom are of the same height, stand in a row. Sir Alex wants to remove $N(N - 1)$ players from this row leaving a new row of $2N$ players in which the following $N$ conditions hold: ($1$) no one stands between the two tallest players, ($2$) no one stands between the third and fourth tallest players, $\\cdots$ ($N$) no one stands between the two shortest players. Show that this is always possible.",
422
+ "lean_code": "theorem imo_2017_p5 (N : β„•) (h_N : N β‰₯ 2) (height : Perm (Fin (N * (N + 1)))) :\n βˆƒ kept : Fin (2 * N) β†ͺo Fin (N * (N + 1)),\n βˆ€ i j, Even #{l | height (kept l) < height (kept i)} β†’\n (βˆ€ k, height (kept i) < height (kept k) ↔ height (kept j) ≀ height (kept k)) β†’\n (βˆ€ k, kept i < kept k ↔ kept j ≀ kept k) ∨ (βˆ€ k, kept j < kept k ↔ kept i ≀ kept k) := by sorry",
423
+ "expected_verdict": "YES",
424
+ "error_primary": "definition_mismatch",
425
+ "error_secondary": [
426
+ "formalization_error"
427
+ ],
428
+ "error_tags": [
429
+ "encoding_issue",
430
+ "goal_mismatch"
431
+ ],
432
+ "meta_tags": [],
433
+ "gold_explanation": "Original ordering condition replaced with count-of-shorter/no-between constraint; unclear which matches NL."
434
+ },
435
+ {
436
+ "id": "combibench_imo_2018_p3",
437
+ "source": "CombiBench",
438
+ "problem_nl": "An anti-Pascal triangle is an equilateral triangular array of numbers such that, except for the numbers in the bottom row, each number is the absolute value of the difference of the two numbers immediately below it. For example, the following is an anti-Pascal triangle with four rows which contains every integer from $1$ to $10$ \\[4\\]\\[2\\quad 6\\]\\[5\\quad 7 \\quad 1\\] \\[8\\quad 3 \\quad 10 \\quad 9\\] Does there exist an anti-Pascal triangle with $2018$ rows which contains every integer from $1$ to $1 + 2 + 3 + \\dots + 2018$?",
439
+ "lean_code": "theorem imo_2018_p3 : imo_2018_p3_solution = βˆƒ l, IsAntiPascal l ∧\n List.range' 1 (βˆ‘ i ∈ Finset.Icc 1 2018, i) = List.insertionSort (Β· ≀ Β·) (List.flatten l) := by",
440
+ "expected_verdict": "YES",
441
+ "error_primary": "definition_mismatch",
442
+ "error_secondary": [],
443
+ "error_tags": [
444
+ "encoding_issue"
445
+ ],
446
+ "meta_tags": [],
447
+ "gold_explanation": "Triangle representation changed from lists to indexed function; likely modeling fix but not clearly wrong."
448
+ },
449
+ {
450
+ "id": "combibench_imo_2018_p4",
451
+ "source": "CombiBench",
452
+ "problem_nl": "A site is any point (x, y) in the plane such that x and y are both positive integers less than or equal to 20. Amy and Ben take turns placing stones. On her turn, Amy places a red stone such that the distance between any two red stones is not equal to √5. Find the greatest K such that Amy can ensure she places at least K red stones.",
453
+ "lean_code": "-- Site defined as subset of οΏ½οΏ½ Γ— ℝ\n-- Problem: ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean\n-- dist((1,0), (2,1)) = max(1,1) = 1 with sup metric\n-- dist((1,0), (2,1)) = √(1Β²+1Β²) = √2 with Euclidean\n-- The \"distance √5\" condition has wrong meaning!",
454
+ "expected_verdict": "YES",
455
+ "error_primary": "domain_mismatch",
456
+ "error_secondary": [
457
+ "definition_mismatch"
458
+ ],
459
+ "error_tags": [
460
+ "type_mismatch",
461
+ "paper_vs_lean_semantics"
462
+ ],
463
+ "meta_tags": [],
464
+ "gold_explanation": "ℝ×ℝ (Prod) uses sup/L∞ metric in Mathlib. The problem requires Euclidean distance for 'distance not equal to √5' (knight's move). With sup metric, √5 distance means something completely different. Expert confirmed (Joseph Myers)."
465
+ },
466
+ {
467
+ "id": "combibench_imo_2023_p5",
468
+ "source": "CombiBench",
469
+ "problem_nl": "A Japanese triangle consists of 1 + 2 + ... + n circles arranged in an equilateral triangular shape such that for each i = 1, 2, ..., n, the ith row contains exactly i circles. Each circle is colored red or blue. A ninja path starts from a top-row circle and in each step goes to one of the two circles immediately below. Find the greatest k such that in each Japanese triangle there is a ninja path containing at least k red circles.",
470
+ "lean_code": "def triangleGraph (n : β„•+) : Digraph (Index n) where\n Adj p q :=\n p.atBottomLeft q ∨ p.atBottomRight q ∨\n q.atBottomLeft p ∨ q.atBottomRight p",
471
+ "expected_verdict": "YES",
472
+ "error_primary": "definition_mismatch",
473
+ "error_secondary": [],
474
+ "error_tags": [
475
+ "encoding_issue",
476
+ "wrong_constant"
477
+ ],
478
+ "meta_tags": [],
479
+ "gold_explanation": "Digraph edges go both up and down, but ninja paths must go down only. Also Real.log is natural log, not logβ‚‚ as needed. Expert confirmed (Joseph Myers)."
480
+ },
481
+ {
482
+ "id": "combibench_imosl_2011_c6",
483
+ "source": "CombiBench",
484
+ "problem_nl": "Let $n$ be a positive integer and let $W=\\ldots x_{-1} x_{0} x_{1} x_{2} \\ldots$ be an infinite periodic word consisting of the letters $a$ and $b$. Suppose that the minimal period $N$ of $W$ is greater than $2^{n}$. A finite nonempty word $U$ is said to appear in $W$ if there exist indices $k \\leq \\ell$ such that $U=x_{k} x_{k+1} \\ldots x_{\\ell}$. A finite word $U$ is called ubiquitous if the four words $U a, U b, a U$, and $b U$ all appear in $W$. Prove that there are at least $n$ ubiquitous finite nonempty words.",
485
+ "lean_code": "theorem imosl_2011_c6 (W : β„€ β†’ Fin 2) (n : β„•+) (N : β„•) (hN : 2 ^ n.1 < N)\n (hW : Function.Periodic W N) (hW' : βˆ€ N' < N, Β¬ Function.Periodic W N') :\n βˆƒ (x : Fin n β†ͺ (Ξ£ k, Fin k β†’ Fin 2)), (βˆ€ i, (x i).1 β‰  0) ∧ (βˆ€ i, ubiquitous W (x i)) := by sorry",
486
+ "expected_verdict": "YES",
487
+ "error_primary": "specification_error",
488
+ "error_secondary": [],
489
+ "error_tags": [
490
+ "missing_hypothesis"
491
+ ],
492
+ "meta_tags": [],
493
+ "gold_explanation": "Period 0 always makes a function periodic, so forbidding all N'<N including 0 makes the premise impossible."
494
+ },
495
+ {
496
+ "id": "combibench_imosl_2015_c6",
497
+ "source": "CombiBench",
498
+ "problem_nl": "Let $S$ be a nonempty set of positive integers. We say that a positive integer $n$ is clean if it has a unique representation as a sum of an odd number of distinct elements from $S$. Prove that there exist infinitely many positive integers that are not clean.",
499
+ "lean_code": "theorem imosl_2015_c6 (S : Set β„•+) : βˆ€ (N : β„•), βˆƒ (m : β„•), N < m ∧ Β¬ clean S m := by sorry",
500
+ "expected_verdict": "YES",
501
+ "error_primary": "specification_error",
502
+ "error_secondary": [],
503
+ "error_tags": [
504
+ "missing_hypothesis"
505
+ ],
506
+ "meta_tags": [],
507
+ "gold_explanation": "NL assumes S nonempty; original allowed empty S (statement may still hold), so mismatch is unclear."
508
+ },
509
+ {
510
+ "id": "combibench_usamo_2000_p4",
511
+ "source": "CombiBench",
512
+ "problem_nl": "Find the smallest positive integer $n$ such that if $n$ squares of a $1000 \\times 1000$ chessboard are colored, then there will exist three colored squares whose centers form a right triangle with sides parallel to the edges of the board.",
513
+ "lean_code": "theorem usamo_2000_p4 : IsLeast colored_card usamo_2000_p4_solution.1 := by sorry",
514
+ "expected_verdict": "YES",
515
+ "error_primary": "quantifier_indexing_mismatch",
516
+ "error_secondary": [],
517
+ "error_tags": [
518
+ "quantifier_mismatch"
519
+ ],
520
+ "meta_tags": [],
521
+ "gold_explanation": "NL requires all size-n colorings force a right triangle; original only required existence of one such coloring."
522
+ },
523
+ {
524
+ "id": "formalmath_aime_all_2013_II_1",
525
+ "source": "FormalMath",
526
+ "problem_nl": "Time is converted to metric system: 10 metric hours per day, 100 metric minutes per hour. A person wants to wake at the equivalent of 6:36 AM. Find 100A+10B+C where A:BC is the metric time.",
527
+ "lean_code": "import Mathlib.Tactic\n\ntheorem aime_all_2013_II_1 (A B C : β„•) (hβ‚€ : 0 ≀ A ∧ A < 10) (h₁ : 0 ≀ B ∧ B < 10)\n (hβ‚‚ : 0 ≀ C ∧ C < 10) (h₃ : (6 * 100 + 36) * 10 / (24 * 60) = 100 * A + 10 * B + C) :\n 100 * A + 10 * B + C = 275 := by",
528
+ "expected_verdict": "YES",
529
+ "error_primary": "definition_mismatch",
530
+ "error_secondary": [],
531
+ "error_tags": [
532
+ "misuse_of_concept",
533
+ "wrong_constant"
534
+ ],
535
+ "meta_tags": [],
536
+ "gold_explanation": "Uses Nat division so 6360/1440 truncates to 4; also uses 6*100+36 instead of 6*60+36 for 6:36 AM. Hypothesis can force 100A+10B+C=4, not 275."
537
+ },
538
+ {
539
+ "id": "formalmath_aime_all_2017_I_10",
540
+ "source": "FormalMath",
541
+ "problem_nl": "Let z be the UNIQUE complex number with properties that (z₃-z₁)/(zβ‚‚-z₁)Β·(z-zβ‚‚)/(z-z₃) is real and Im(z) is greatest possible. Find Re(z).",
542
+ "lean_code": "import Mathlib\n\ntheorem aime_all_2017_I_10 (z1 z2 z3 z : β„‚) ... (hzz : βˆƒ r : ℝ, ...) (hzim : βˆ€ z', ... β†’ z.im β‰₯ z'.im) : z.re = 56 := by",
543
+ "expected_verdict": "YES",
544
+ "error_primary": "specification_error",
545
+ "error_secondary": [],
546
+ "error_tags": [
547
+ "incomplete_spec"
548
+ ],
549
+ "meta_tags": [],
550
+ "gold_explanation": "NL specifies a unique maximizer z; the Lean statement (as sketched) does not encode unique existence (βˆƒ!) / a uniqueness hypothesis, only properties of a given z."
551
+ },
552
+ {
553
+ "id": "formalmath_olymid-ref-base_3054",
554
+ "source": "FormalMath",
555
+ "problem_nl": "Find all positive integers k and n such that k⁴ + n² is divisible by 7^k - 3^n. Prove that the answer is: (k, n) = (2, 4)",
556
+ "lean_code": "import Mathlib\n\ntheorem olymid_ref_base_3054 (k n : β„•) :\n k > 0 ∧ n > 0 ∧ 7^k - 3^n ∣ k^4 + n^2 ↔ (k = 2 ∧ n = 4) := by",
557
+ "expected_verdict": "YES",
558
+ "error_primary": "domain_mismatch",
559
+ "error_secondary": [],
560
+ "error_tags": [
561
+ "truncation_issue"
562
+ ],
563
+ "meta_tags": [],
564
+ "gold_explanation": "In β„•, 7^k - 3^n truncates to 0 when 3^n > 7^k; at (2,4) denominator becomes 0, so '0 ∣ 32' is false and the claimed ↔ fails."
565
+ },
566
+ {
567
+ "id": "formalmath_olymid-ref-base_4847",
568
+ "source": "FormalMath",
569
+ "problem_nl": "Let t=2016 and p=ln 2. Evaluate βˆ‘_{k=1}^∞ (1 - βˆ‘_{n=0}^{k-1} e^{-t}t^n/n!) (1-p)^{k-1} p",
570
+ "lean_code": "import Mathlib\n\nopen Real\n\ntheorem olymid_ref_base_4847 (t : ℝ) (p : ℝ) (ht : t = 2016) (hp : p = log 2) :\n βˆ‘' k : β„•, ((1 - βˆ‘ n in Finset.range k, exp (-t) * t ^ n / Nat.factorial n) * (1 - p) ^ (k - 1) * p) =\n 1 - (1 / 2) ^ 2016 := by",
571
+ "expected_verdict": "YES",
572
+ "error_primary": "quantifier_indexing_mismatch",
573
+ "error_secondary": [],
574
+ "error_tags": [
575
+ "indexing_mismatch"
576
+ ],
577
+ "meta_tags": [],
578
+ "gold_explanation": "NL sums k=1..∞ but Lean uses βˆ‘' k : β„• starting at k=0, adding an extra k=0 term (and k-1 is Nat subtraction, so at k=0 it becomes 0, not βˆ’1)."
579
+ },
580
+ {
581
+ "id": "formalmath_olymid-ref-base_5274",
582
+ "source": "FormalMath",
583
+ "problem_nl": "Find the smallest positive integer n for which 1!2!β‹―(n-1)! > n!Β²",
584
+ "lean_code": "import Mathlib\n\nopen Nat BigOperators\n\ntheorem olymid_ref_base_5274 :\n IsLeast {n : β„• | 0 < n ∧ ∏ i in Finset.Icc 1 (n - 1), i ! > (n !) ^ 2} 8 := by",
585
+ "expected_verdict": "NO",
586
+ "error_primary": null,
587
+ "error_secondary": [],
588
+ "error_tags": [],
589
+ "meta_tags": [],
590
+ "gold_explanation": "This appears correctly encoded: product over Icc 1 (n-1) is 1!β‹―(nβˆ’1)!, n>0 is enforced, and 8 is indeed the smallest n satisfying the inequality."
591
+ },
592
+ {
593
+ "id": "formalmath_olymid-ref-base_6282",
594
+ "source": "FormalMath",
595
+ "problem_nl": "Let n β‰₯ 3. Let a_1 < a_2 < ... < a_n be positive reals with a_{n+1} = a_1. Prove βˆ‘_{k=1}^n (a_k/a_{k+1}) > βˆ‘_{k=1}^n (a_{k+1}/a_k).",
596
+ "lean_code": "import Mathlib\n\nopen Real\n\ntheorem olymid_ref_base_6282 {n : β„•} (hn : 3 ≀ n) (a : Fin (n + 1) β†’ ℝ)\n (ha : StrictMono a) (hpos : βˆ€ i, 0 < a i) (han : a n = a 0) :\n βˆ‘ k, a k / a (k + 1) > βˆ‘ k, a (k + 1) / a k := by",
597
+ "expected_verdict": "YES",
598
+ "error_primary": "formalization_error",
599
+ "error_secondary": [
600
+ "quantifier_indexing_mismatch"
601
+ ],
602
+ "error_tags": [
603
+ "premise_translation_error",
604
+ "indexing_mismatch"
605
+ ],
606
+ "meta_tags": [],
607
+ "gold_explanation": "StrictMono a on Fin(n+1) implies a 0 < … < a n, but also assumes a n = a 0; premises become inconsistent and mis-encode the cyclic condition a_{n+1}=a_1."
608
+ },
609
+ {
610
+ "id": "formalmath_olymid-ref-base_8963",
611
+ "source": "FormalMath",
612
+ "problem_nl": "The Fibonacci numbers F_0, F_1, F_2, ... are defined by F_0=0, F_1=1, F_{n+1}=F_n+F_{n-1}. Given n β‰₯ 2, find the smallest size of a set S of INTEGERS such that for every k=2,...,n there exist x,y ∈ S with x-y=F_k.",
613
+ "lean_code": "import Mathlib\n\ndef fib (n : β„•) : β„• := match n with\n| 0 => 0\n| 1 => 1\n| n + 2 => fib (n + 1) + fib n\n\ntheorem olymid_ref_base_8963 (n : β„•) (hn : 2 ≀ n) :\n IsLeast {k | βˆƒ S : Finset β„•, S.card = k ∧ βˆ€ k ∈ Finset.Icc 2 n, οΏ½οΏ½οΏ½ x ∈ S, βˆƒ y ∈ S, x - y = fib k} (Nat.ceil (n / 2) + 1) := by",
614
+ "expected_verdict": "YES",
615
+ "error_primary": "domain_mismatch",
616
+ "error_secondary": [],
617
+ "error_tags": [
618
+ "type_mismatch",
619
+ "truncation_issue"
620
+ ],
621
+ "meta_tags": [],
622
+ "gold_explanation": "NL needs a set of integers and differences xβˆ’y with sign; Lean uses Finset β„• and Nat subtraction x-y, which can't represent negative differences and truncates when y>x."
623
+ },
624
+ {
625
+ "id": "formalmath_olymid_ref_base_2137",
626
+ "source": "FormalMath",
627
+ "problem_nl": "Let a₁,...,a₂₀₁₉ be positive integers. Prove: βˆƒ real x such that aα΅’ = ⌊ixβŒ‹ for all i ∈ {1,...,2019} iff for all i,j with i+j ≀ 2019, aα΅’ + aβ±Ό ≀ aα΅’β‚Šβ±Ό ≀ aα΅’ + aβ±Ό + 1.",
628
+ "lean_code": "import Mathlib\n\ntheorem olymid_ref_base_2137 (a : Fin 2019 β†’ β„€) (ha : βˆ€ i, 0 < a i) :\n (βˆƒ x : ℝ, βˆ€ i, a i = ⌊i * xβŒ‹) ↔\n (βˆ€ i j, i + j ≀ 2019 β†’ a i + a j ≀ a (i + j) ∧ a (i + j) ≀ a i + a j + 1) := by",
629
+ "expected_verdict": "YES",
630
+ "error_primary": "domain_mismatch",
631
+ "error_secondary": [
632
+ "quantifier_indexing_mismatch"
633
+ ],
634
+ "error_tags": [
635
+ "domain_of_variables_mismatch",
636
+ "indexing_mismatch",
637
+ "bound_mismatch"
638
+ ],
639
+ "meta_tags": [],
640
+ "gold_explanation": "Uses Fin 2019 indices (includes 0, wraps on addition) but NL uses 1..2019 with ordinary addition; i=0 forces ⌊0*xβŒ‹=0 contradicting positivity, and (i+j) in Fin wraps mod 2019 rather than staying ≀2019."
641
+ },
642
+ {
643
+ "id": "formalmath_omni_theorem_131",
644
+ "source": "FormalMath",
645
+ "problem_nl": "What is the smallest integer n, greater than one, for which the root-mean-square of the first n positive integers is an integer? The RMS is defined as sqrt((a_1Β² + ... + a_nΒ²)/n).",
646
+ "lean_code": "import Mathlib\n\nopen Real\n\nnoncomputable def sumOfSquares (n : β„•) : β„• := βˆ‘ k in Finset.Icc 1 n, k ^ 2\n\ntheorem omni_theorem_131 :\n IsLeast {n | 1 < n ∧ βˆƒ k : β„€, sqrt (sumOfSquares n / n) = k} 337 := by",
647
+ "expected_verdict": "YES",
648
+ "error_primary": "definition_mismatch",
649
+ "error_secondary": [],
650
+ "error_tags": [
651
+ "misuse_of_concept"
652
+ ],
653
+ "meta_tags": [],
654
+ "gold_explanation": "RMS needs real division sqrt((βˆ‘k^2)/n), but Lean computes Nat division sumOfSquares n / n first (truncates) then coerces to ℝ for sqrt."
655
+ },
656
+ {
657
+ "id": "formalmath_omni_theorem_1586",
658
+ "source": "FormalMath",
659
+ "problem_nl": "Let {a_n}_{nβ‰₯1} be arithmetic and {g_n}_{nβ‰₯1} be geometric such that first four terms of {a_n+g_n} are 0,0,1,0. Find the 10th term.",
660
+ "lean_code": "import Mathlib\n\ntheorem omni_theorem_1586 (a g : β„• β†’ ℝ) (ha : βˆƒ d, βˆ€ n, a n = a 1 + d * (n - 1))\n (hg : βˆƒ r, βˆ€ n, g n = g 1 * r ^ (n - 1)) (h : a 1 + g 1 = 0) (h' : a 2 + g 2 = 0)\n (h'' : a 3 + g 3 = 1) (h''' : a 4 + g 4 = 0) :\n a 10 + g 10 = -54 := by",
661
+ "expected_verdict": "YES",
662
+ "error_primary": "domain_mismatch",
663
+ "error_secondary": [],
664
+ "error_tags": [
665
+ "domain_of_variables_mismatch",
666
+ "truncation_issue"
667
+ ],
668
+ "meta_tags": [],
669
+ "gold_explanation": "Sequences are intended for nβ‰₯1, but ha/hg quantify βˆ€ n:β„• with (n-1) using Nat subtraction; at n=0 this forces a0=a1 and g0=g1, adding unintended constraints."
670
+ },
671
+ {
672
+ "id": "formalmath_omni_theorem_2830",
673
+ "source": "FormalMath",
674
+ "problem_nl": "Find quadratic polynomials f(x) = axΒ² + bx + c where a,b,c are positive integers, p<q are primes, f(p)=f(q)=17, f(p+q)=47. Find sum of f(pq) mod 100.",
675
+ "lean_code": "import Mathlib\n\ntheorem omni_theorem_2830 :\n (βˆ‘αΆ  x ∈ {x | βˆƒ a b c p q : β„•, a > 0 ∧ p.Prime ∧ q.Prime ∧ p < q ∧ x = a * (p * q) ^ 2 + b * (p * q) + c ∧\n a * p ^ 2 + b * p + c = 17 ∧ a * q ^ 2 + b * q + c = 17 ∧ a * (p + q) ^ 2 + b * (p + q) + c = 47}, x) % 100 = 71 := by",
676
+ "expected_verdict": "YES",
677
+ "error_primary": "problem_statement_error",
678
+ "error_secondary": [],
679
+ "error_tags": [
680
+ "unprovable_problem"
681
+ ],
682
+ "meta_tags": [],
683
+ "gold_explanation": "As written ('a,b,c are positive integers'), the constraints force b = βˆ’a(p+q) < 0, so no solutions exist; likely the NL intended b to be an integer (not necessarily positive)."
684
+ },
685
+ {
686
+ "id": "formalmath_omni_theorem_2926",
687
+ "source": "FormalMath",
688
+ "problem_nl": "What is the smallest integer that can be placed in the box so that 1/2 < β–‘/9? Prove that the answer is: 5",
689
+ "lean_code": "import Mathlib\n\ntheorem omni_theorem_2926 : IsLeast {n | 1 / 2 < n / 9} 5 := by",
690
+ "expected_verdict": "YES",
691
+ "error_primary": "definition_mismatch",
692
+ "error_secondary": [],
693
+ "error_tags": [
694
+ "misuse_of_concept"
695
+ ],
696
+ "meta_tags": [],
697
+ "gold_explanation": "Inferred type is β„•, so 1/2=0 and n/9 is Nat division; predicate becomes 0 < n/9, whose least solution is 9, not 5."
698
+ },
699
+ {
700
+ "id": "formalmath_omni_theorem_4006",
701
+ "source": "FormalMath",
702
+ "problem_nl": "Let S(n) be the sum of the digits of the positive integer n. Find all n such that S(n)(S(n)-1) = n-1. Prove that the answer is: n ∈ {1, 13, 43, 91, 157}",
703
+ "lean_code": "import Mathlib\n\ndef S : β„• β†’ β„•\n| n => (Nat.digits 10 n).sum\n\ntheorem omni_theorem_4006 {n : β„•} :\n (S n) * (S n - 1) = n - 1 ↔ n = 1 ∨ n = 13 ∨ n = 43 ∨ n = 91 ∨ n = 157 := by",
704
+ "expected_verdict": "YES",
705
+ "error_primary": "specification_error",
706
+ "error_secondary": [],
707
+ "error_tags": [
708
+ "base_case_missing"
709
+ ],
710
+ "meta_tags": [],
711
+ "gold_explanation": "NL says positive n, but Lean allows n=0; then (S 0)*(S 0 - 1)=0=(0-1) in β„•, so LHS true while RHS 'n∈{1,13,43,91,157}' is false."
712
+ },
713
+ {
714
+ "id": "formalmath_quantitative_reasoning_zh_blue_41",
715
+ "source": "FormalMath",
716
+ "problem_nl": "Given M = {x | x = aΒ² + 1, a ∈ β„•*}, N = {x | x = bΒ² - 4b + 5, b ∈ β„•*}, prove M ⊊ N. The proof shows 1 ∈ N (at b=2: 4-8+5=1) but 1 βˆ‰ M.",
717
+ "lean_code": "import Mathlib\n\ntheorem quantitative_reasoning_zh_blue_41 :\n {x : β„• | βˆƒ a : β„•, 0 < a ∧ x = a^2 + 1} βŠ‚ {x : β„• | βˆƒ b : β„•, 0 < b ∧ x = b^2 - 4 * b + 5} := by",
718
+ "expected_verdict": "YES",
719
+ "error_primary": "domain_mismatch",
720
+ "error_secondary": [
721
+ "definition_mismatch"
722
+ ],
723
+ "error_tags": [
724
+ "truncation_issue",
725
+ "encoding_issue"
726
+ ],
727
+ "meta_tags": [],
728
+ "gold_explanation": "b^2 - 4*b + 5 is computed in β„• with truncating subtraction; the NL witness b=2 gives 1, but Lean gives 5, so N is not the intended set."
729
+ },
730
+ {
731
+ "id": "formalmath_quantitative_reasoning_zh_blue_891",
732
+ "source": "FormalMath",
733
+ "problem_nl": "Given 0 ≀ x_0 < 1, the sequence {x_n} satisfies x_{n+1} = 2x_n - 1 if 1/2 ≀ x_n < 1, else x_{n+1} = 2x_n if 0 ≀ x_n < 1/2. If x_5 = x_0, how many such sequences exist? Answer: 31",
734
+ "lean_code": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\ntheorem quantitative_reasoning_zh_blue_891 :\n Set.ncard {x : β„• β†’ ℝ | βˆƒ x0 : ℝ, 0 ≀ x0 ∧ x0 < 1 ∧\n (βˆ€ n : β„•, x (n + 1) = if 1 / 2 ≀ x n ∧ x n < 1 then 2 * x n - 1 else 2 * x n) ∧\n x 5 = x0} = 31 := by",
735
+ "expected_verdict": "YES",
736
+ "error_primary": "specification_error",
737
+ "error_secondary": [],
738
+ "error_tags": [
739
+ "incomplete_spec"
740
+ ],
741
+ "meta_tags": [],
742
+ "gold_explanation": "Does not enforce x 0 = x0 and does not maintain the invariant x n ∈ [0,1); the piecewise recurrence is only correct under those missing constraints."
743
+ },
744
+ {
745
+ "id": "formalmath_theorem_proving_zh_blue_548",
746
+ "source": "FormalMath",
747
+ "problem_nl": "Find the maximum cardinality of a set S of positive integers ≀100 such that for any two distinct elements a,b ∈ S: (1) there exists c ∈ S with gcd(a,c)=1 and gcd(b,c)=1, and (2) there exists d ∈ S with dβ‰ a, dβ‰ b, gcd(a,d)>1, gcd(b,d)>1. Solution proves |S|_max = 72.",
748
+ "lean_code": "import Mathlib\n\ntheorem algebra_587982 :\n IsGreatest {n | βˆƒ S : Finset β„•, S.card = n ∧\n (βˆ€ x ∈ S, x ≀ 100) ∧\n (βˆ€ a ∈ S, βˆ€ b ∈ S, a β‰  b β†’ βˆƒ c ∈ S, Nat.gcd a c = 1 ∧ Nat.gcd b c = 1) ∧\n (βˆ€ a ∈ S, βˆ€ b ∈ S, a β‰  b β†’ βˆƒ d ∈ S, d β‰  a ∧ d β‰  b ∧ Nat.gcd a d > 1 ∧ Nat.gcd b d > 1)} 54 := by",
749
+ "expected_verdict": "YES",
750
+ "error_primary": "definition_mismatch",
751
+ "error_secondary": [],
752
+ "error_tags": [
753
+ "wrong_constant"
754
+ ],
755
+ "meta_tags": [
756
+ "answer_handling_mismatch"
757
+ ],
758
+ "gold_explanation": "Lean claims the maximum is 54, but the provided solution text claims |S|_max = 72; the constant in IsGreatest is wrong."
759
+ },
760
+ {
761
+ "id": "formalmath_theorem_proving_zh_blue_614",
762
+ "source": "FormalMath",
763
+ "problem_nl": "If the sequence {a_n} satisfies that for any n ∈ β„•*, βˆ‘_{d|n} a_d = 2^n, prove that n | a_n.",
764
+ "lean_code": "import Mathlib\n\ntheorem algebra_56552 {a : β„• β†’ β„•} (ha : βˆ€ n, βˆ‘ d in n.divisors, a d = 2 ^ n) :\n βˆ€ n, n ∣ a n := by",
765
+ "expected_verdict": "YES",
766
+ "error_primary": "specification_error",
767
+ "error_secondary": [],
768
+ "error_tags": [
769
+ "base_case_missing"
770
+ ],
771
+ "meta_tags": [],
772
+ "gold_explanation": "NL quantifies nβˆˆβ„•* but Lean has βˆ€ n including 0; Nat.divisors 0 is empty in Mathlib, so ha 0 would require 0=2^0=1 (inconsistent), making the theorem vacuous."
773
+ },
774
+ {
775
+ "id": "formalmath_theorem_proving_zh_blue_671",
776
+ "source": "FormalMath",
777
+ "problem_nl": "Let F be a finite set of integers satisfying: (1) for any x ∈ F, there exist y,z ∈ F with x = y + z; (2) there exists n ∈ β„•* such that for any 1 ≀ k ≀ n and any x_1,...,x_k ∈ F, we have βˆ‘x_i β‰  0. Prove |F| β‰₯ 2n + 2.",
778
+ "lean_code": "import Mathlib\n\ntheorem theorem_proving_zh_blue_671 {F : Finset β„€} (hF : βˆ€ x ∈ F, βˆƒ y z, x = y + z)\n (hn : βˆƒ n : β„•, 0 < n ∧ βˆ€ k ∈ Finset.Icc 1 n, βˆ€ x : Fin k β†’ β„€,\n (βˆ€ i, x i ∈ F) β†’ βˆ‘ i, x i β‰  0) :\n F.card β‰₯ 2 * n + 2 := by",
779
+ "expected_verdict": "YES",
780
+ "error_primary": "quantifier_indexing_mismatch",
781
+ "error_secondary": [
782
+ "specification_error"
783
+ ],
784
+ "error_tags": [
785
+ "variable_mismatch",
786
+ "incomplete_spec"
787
+ ],
788
+ "meta_tags": [],
789
+ "gold_explanation": "Conclusion uses free n not bound by the βˆƒn in hn; also hF forgets to require y,z ∈ F (it only states βˆƒ y z with x=y+z)."
790
+ },
791
+ {
792
+ "id": "formalmath_theorem_proving_zh_blue_681",
793
+ "source": "FormalMath",
794
+ "problem_nl": "Let f(m,n) satisfy f(1,n) = f(m,1) = 1 (m,n ∈ β„•*), and when m,n β‰₯ 2, f(m,n) ≀ f(m,n-1) + f(m-1,n). Prove f(m,n) ≀ C(m+n-2, m-1).",
795
+ "lean_code": "import Mathlib\n\ntheorem algebra_539172 {f : β„• β†’ β„• β†’ β„•}\n (h₁ : βˆ€ n, f 1 n = 1) (hβ‚‚ : βˆ€ m, f m 1 = 1)\n (h₃ : βˆ€ m n, 2 ≀ m β†’ 2 ≀ n β†’ f m n ≀ f m (n - 1) + f (m - 1) n) :\n βˆ€ m n, f m n ≀ (m + n - 2).choose (m - 1) := by",
796
+ "expected_verdict": "YES",
797
+ "error_primary": "specification_error",
798
+ "error_secondary": [],
799
+ "error_tags": [
800
+ "missing_hypothesis"
801
+ ],
802
+ "meta_tags": [],
803
+ "gold_explanation": "NL is for m,nβˆˆβ„•* but Lean concludes βˆ€ m n without positivity constraints; this introduces m=0 or n=0 cases where (m+n-2).choose(m-1) and n-1 style terms are not the intended spec."
804
+ },
805
+ {
806
+ "id": "formalmath_u-math_684",
807
+ "source": "FormalMath",
808
+ "problem_nl": "An epidemiological study of the spread of a certain influenza strain that hit a small school population found that the total number of students, P, who contracted the flu t days after it broke out is given by the model P = tΒ² - 12t + 180, where 1 ≀ t ≀ 6. Find the day that 160 students had the flu.",
809
+ "lean_code": "import Mathlib\n\ntheorem u_math_684 (t : β„•) (ht : 1 ≀ t ∧ t ≀ 6) :\n let P := t ^ 2 - 12 * t + 180\n P = 160 ↔ t = 2 := by",
810
+ "expected_verdict": "YES",
811
+ "error_primary": "domain_mismatch",
812
+ "error_secondary": [],
813
+ "error_tags": [
814
+ "truncation_issue"
815
+ ],
816
+ "meta_tags": [],
817
+ "gold_explanation": "Uses β„• subtraction in t^2 - 12*t; at t=2, (4-24) truncates to 0 so P=180, not 160, so the ↔ fails."
818
+ },
819
+ {
820
+ "id": "formalmath_u-math_921",
821
+ "source": "FormalMath",
822
+ "problem_nl": "Compute the integral: ∫ -1/(3·sin(x/3)⁢) dx. Answer involves +C.",
823
+ "lean_code": "import Mathlib\n\ntheorem u_math_921 : ∫ x, -1 / (3 * sin (x / 3) ^ 6) =\n cos (x / 3) / (5 * sin (x / 3) ^ 5) -\n 4 / 15 * (-cos (x / 3) / sin (x / 3) ^ 3 - 2 / tan (x / 3)) + C := by",
824
+ "expected_verdict": "YES",
825
+ "error_primary": "definition_mismatch",
826
+ "error_secondary": [
827
+ "quantifier_indexing_mismatch"
828
+ ],
829
+ "error_tags": [
830
+ "misuse_of_concept",
831
+ "variable_mismatch"
832
+ ],
833
+ "meta_tags": [],
834
+ "gold_explanation": "Lean's '∫ x, …' is a definite integral (not an antiderivative), and the RHS contains free x and free C (autoImplicit/scope bug), so it does not represent '+C' indefinite integration."
835
+ },
836
+ {
837
+ "id": "formalmath_u-math_945",
838
+ "source": "FormalMath",
839
+ "problem_nl": "Compute the integral: ∫ 10/sin(4x)^6 dx",
840
+ "lean_code": "import Mathlib\n\nopen Real Set\nopen scoped BigOperators\n\ntheorem u_math_945 : ∫ x, 10 / sin (4 * x) ^ 6 =\n - (cot (4 * x)) ^ 5 / 2 - 5 / 2 * cot (4 * x) - 5 / 3 * (cot (4 * x)) ^ 3 + C := by",
841
+ "expected_verdict": "YES",
842
+ "error_primary": "definition_mismatch",
843
+ "error_secondary": [
844
+ "quantifier_indexing_mismatch"
845
+ ],
846
+ "error_tags": [
847
+ "misuse_of_concept",
848
+ "variable_mismatch"
849
+ ],
850
+ "meta_tags": [],
851
+ "gold_explanation": "Same calculus issue: '∫ x, …' is a definite integral, and the RHS contains free x and free C, so it does not formalize an indefinite integral '+C'."
852
+ },
853
+ {
854
+ "id": "proofnet_artin_exercise_11_4_6b",
855
+ "source": "ProofNet",
856
+ "problem_nl": "Prove that $x^2+1$ is irreducible in $\\mathbb{F}_7$",
857
+ "lean_code": "theorem exercise_11_4_6b {F : Type*} [Field F] [Fintype F] (hF : card F = 31) :\n Irreducible (X ^ 3 - 9 : Polynomial F) := sorry",
858
+ "expected_verdict": "YES",
859
+ "error_primary": "specification_error",
860
+ "error_secondary": [
861
+ "formalization_error"
862
+ ],
863
+ "error_tags": [
864
+ "incorrect_spec",
865
+ "goal_mismatch"
866
+ ],
867
+ "meta_tags": [],
868
+ "gold_explanation": "Original assumes card F = 31 and proves Irreducible (X^3-9), but NL is about F_7 and x^2+1."
869
+ },
870
+ {
871
+ "id": "proofnet_axler_exercise_3_8",
872
+ "source": "ProofNet",
873
+ "problem_nl": "Suppose that $V$ is finite dimensional and that $T \\in \\mathcal{L}(V, W)$. Prove that there exists a subspace $U$ of $V$ such that $U \\cap \\operatorname{null} T=\\{0\\}$ and range $T=\\{T u: u \\in U\\}$.",
874
+ "lean_code": "theorem exercise_3_8 {F V W : Type*} [AddCommGroup V]\n [AddCommGroup W] [Field F] [Module F V] [Module F W]\n (L : V β†’β‚—[F] W) :\n βˆƒ U : Submodule F V, U βŠ“ (ker L) = βŠ₯ ∧\n (range L = range (domRestrict L U)) := sorry",
875
+ "expected_verdict": "YES",
876
+ "error_primary": "specification_error",
877
+ "error_secondary": [],
878
+ "error_tags": [
879
+ "missing_hypothesis"
880
+ ],
881
+ "meta_tags": [],
882
+ "gold_explanation": "NL assumes V is finite-dimensional, but original Lean omits [FiniteDimensional F V]."
883
+ },
884
+ {
885
+ "id": "proofnet_axler_exercise_6_16",
886
+ "source": "ProofNet",
887
+ "problem_nl": "Suppose $U$ is a subspace of $V$. Prove that $U^{\\perp}=\\{0\\}$ if and only if $U=V$",
888
+ "lean_code": "theorem exercise_6_16 {K V : Type*} [RCLike K] [NormedAddCommGroup V] [InnerProductSpace K V]\n {U : Submodule K V} :\n U.orthogonal = βŠ₯ ↔ U = ⊀ := sorry",
889
+ "expected_verdict": "NO",
890
+ "error_primary": null,
891
+ "error_secondary": [],
892
+ "error_tags": [],
893
+ "meta_tags": [],
894
+ "gold_explanation": "No semantic issue: U.orthogonal = bot iff U = top matches 'U^perp = {0} iff U=V'."
895
+ },
896
+ {
897
+ "id": "proofnet_axler_exercise_6_3",
898
+ "source": "ProofNet",
899
+ "problem_nl": "Prove that $\\left(\\sum_{j=1}^{n} a_{j} b_{j}\\right)^{2} \\leq\\left(\\sum_{j=1}^{n} j a_{j}{ }^{2}\\right)\\left(\\sum_{j=1}^{n} \\frac{b_{j}{ }^{2}}{j}\\right)$ for all real numbers $a_{1}, \\ldots, a_{n}$ and $b_{1}, \\ldots, b_{n}$.",
900
+ "lean_code": "theorem exercise_6_3 {n : β„•} (a b : Fin n β†’ ℝ) :\n (βˆ‘ i, a i * b i) ^ 2 ≀ (βˆ‘ i : Fin n, i * a i ^ 2) * (βˆ‘ i, b i ^ 2 / i) := sorry",
901
+ "expected_verdict": "YES",
902
+ "error_primary": "quantifier_indexing_mismatch",
903
+ "error_secondary": [],
904
+ "error_tags": [
905
+ "indexing_mismatch"
906
+ ],
907
+ "meta_tags": [],
908
+ "gold_explanation": "NL sums j=1..n; original uses i:Fin n (0..n-1), so weights use i not (i+1) and introduces division by i=0."
909
+ },
910
+ {
911
+ "id": "proofnet_dummit_foote_exercise_4_5_13",
912
+ "source": "ProofNet",
913
+ "problem_nl": "Prove that a group of order 56 has a normal Sylow $p$-subgroup for some prime $p$ dividing its order.",
914
+ "lean_code": "theorem exercise_4_5_13 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 56) :\n βˆƒ (p : β„•) (P : Sylow p G), P.Normal := sorry",
915
+ "expected_verdict": "YES",
916
+ "error_primary": "specification_error",
917
+ "error_secondary": [],
918
+ "error_tags": [
919
+ "incomplete_spec"
920
+ ],
921
+ "meta_tags": [],
922
+ "gold_explanation": "Same as 4_5_14: missing p.Prime and p | card G; otherwise trivial p=1-style witnesses are allowed."
923
+ },
924
+ {
925
+ "id": "proofnet_dummit_foote_exercise_4_5_14",
926
+ "source": "ProofNet",
927
+ "problem_nl": "Prove that a group of order 312 has a normal Sylow $p$-subgroup for some prime $p$ dividing its order.",
928
+ "lean_code": "theorem exercise_4_5_14 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 312) :\n βˆƒ (p : β„•) (P : Sylow p G), P.Normal := sorry",
929
+ "expected_verdict": "YES",
930
+ "error_primary": "specification_error",
931
+ "error_secondary": [],
932
+ "error_tags": [
933
+ "incomplete_spec"
934
+ ],
935
+ "meta_tags": [],
936
+ "gold_explanation": "Original misses the constraints 'p is prime' and 'p | |G|'; otherwise p=1 gives a trivial normal Sylow 1-subgroup-style witness."
937
+ },
938
+ {
939
+ "id": "proofnet_herstein_exercise_2_2_5",
940
+ "source": "ProofNet",
941
+ "problem_nl": "Let $G$ be a group in which $(a b)^{3}=a^{3} b^{3}$ and $(a b)^{5}=a^{5} b^{5}$ for all $a, b \\in G$. Show that $G$ is abelian.",
942
+ "lean_code": "def exercise_2_2_5 {G : Type*} [Group G]\n (h : βˆ€ (a b : G), (a * b) ^ 3 = a ^ 3 * b ^ 3 ∧ (a * b) ^ 5 = a ^ 5 * b ^ 5) :\n CommGroup G := sorry",
943
+ "expected_verdict": "YES",
944
+ "error_primary": "definition_mismatch",
945
+ "error_secondary": [],
946
+ "error_tags": [
947
+ "paper_vs_lean_semantics"
948
+ ],
949
+ "meta_tags": [],
950
+ "gold_explanation": "Conclusion 'CommGroup G' can mean existence of some commutative group structure on the type G, not commutativity of the given [Group G] multiplication; NL needs forall a b, a*b=b*a."
951
+ },
952
+ {
953
+ "id": "proofnet_herstein_exercise_2_8_15",
954
+ "source": "ProofNet",
955
+ "problem_nl": "Prove that if $p > q$ are two primes such that $q \\mid p - 1$, then any two nonabelian groups of order $pq$ are isomorphic.",
956
+ "lean_code": "def exercise_2_8_15 {G H: Type*} [Fintype G] [Group G] [Fintype H]\n [Group H] {p q : β„•} (hp : Nat.Prime p) (hq : Nat.Prime q)\n (h : p > q) (h1 : q ∣ p - 1) (hG : card G = p*q) (hH : card G = p*q) :\n G ≃* H := sorry",
957
+ "expected_verdict": "YES",
958
+ "error_primary": "quantifier_indexing_mismatch",
959
+ "error_secondary": [
960
+ "specification_error"
961
+ ],
962
+ "error_tags": [
963
+ "variable_mismatch",
964
+ "missing_hypothesis"
965
+ ],
966
+ "meta_tags": [],
967
+ "gold_explanation": "Original typo uses hH : card G = p*q instead of card H; also missing 'G nonabelian' and 'H nonabelian' hypotheses required by NL."
968
+ },
969
+ {
970
+ "id": "proofnet_ireland_rosen_exercise_2_4",
971
+ "source": "ProofNet",
972
+ "problem_nl": "If $n$ is a positive integer such that $n \\equiv 7 \\pmod{8}$, show that $n$ is not a sum of three squares.",
973
+ "lean_code": "theorem exercise_2_4 {n : β„•} (hn : n % 8 = 7) :\n Β¬βˆƒ (a b c : β„€), n = a^2 + b^2 + c^2 := sorry",
974
+ "expected_verdict": "YES",
975
+ "error_primary": "domain_mismatch",
976
+ "error_secondary": [],
977
+ "error_tags": [
978
+ "type_mismatch"
979
+ ],
980
+ "meta_tags": [
981
+ "tooling_error"
982
+ ],
983
+ "gold_explanation": "Original equates n:N with a^2+b^2+c^2:Z; needs explicit cast (n:Z). Likely does not typecheck as written."
984
+ },
985
+ {
986
+ "id": "proofnet_ireland_rosen_exercise_4_11",
987
+ "source": "ProofNet",
988
+ "problem_nl": "Prove that $1^{k}+2^{k}+\\cdots+(p-1)^{k} \\equiv 0(p)$ if $p-1 \\nmid k$ and $-1(p)$ if $p-1 \\mid k$.",
989
+ "lean_code": "theorem exercise_4_11 {p : β„•} (hp : p.Prime) (k s: β„•)\n (s := βˆ‘ n : Fin p, (n : β„•) ^ k) :\n ((Β¬ p - 1 ∣ k) β†’ s ≑ 0 [MOD p]) ∧ (p - 1 ∣ k β†’ s ≑ 0 [MOD p]) := sorry",
990
+ "expected_verdict": "YES",
991
+ "error_primary": "quantifier_indexing_mismatch",
992
+ "error_secondary": [
993
+ "definition_mismatch"
994
+ ],
995
+ "error_tags": [
996
+ "indexing_mismatch",
997
+ "wrong_constant"
998
+ ],
999
+ "meta_tags": [],
1000
+ "gold_explanation": "Original sums over Fin p (includes 0, excludes 1-indexing) and states the divisible case is =0, but NL says it should be = -1 (mod p)."
1001
+ },
1002
+ {
1003
+ "id": "proofnet_munkres_exercise_38_6",
1004
+ "source": "ProofNet",
1005
+ "problem_nl": "Let $X$ be completely regular. Show that $X$ is connected if and only if the Stone-Čech compactification of $X$ is connected.",
1006
+ "lean_code": "theorem exercise_38_6 {X : Type*}\n (X : Type*) [TopologicalSpace X] [RegularSpace X]\n (h : βˆ€ x A, IsClosed A ∧ Β¬ x ∈ A β†’\n βˆƒ (f : X β†’ I), Continuous f ∧ f x = (1 : I) ∧ f '' A = {0}) :\n IsConnected (univ : Set X) ↔ IsConnected (univ : Set (StoneCech X)) := sorry",
1007
+ "expected_verdict": "YES",
1008
+ "error_primary": "definition_mismatch",
1009
+ "error_secondary": [],
1010
+ "error_tags": [
1011
+ "encoding_issue"
1012
+ ],
1013
+ "meta_tags": [
1014
+ "code_style_issue"
1015
+ ],
1016
+ "gold_explanation": "Original 'completely regular' hypothesis uses f '' A = {0}, which fails for A=empty (image is empty), so the encoding is wrong/vacuous; also has redundant/shadowed X binder."
1017
+ },
1018
+ {
1019
+ "id": "proofnet_rudin_exercise_2_28",
1020
+ "source": "ProofNet",
1021
+ "problem_nl": "Prove that every closed set in a separable metric space is the union of a (possibly empty) perfect set and a set which is at most countable.",
1022
+ "lean_code": "theorem exercise_2_28 (X : Type*) [MetricSpace X] [SeparableSpace X]\n (A : Set X) (hA : IsClosed A) :\n βˆƒ P₁ Pβ‚‚ : Set X, A = P₁ βˆͺ Pβ‚‚ ∧ IsPerfect P₁ ∧ Set.Countable Pβ‚‚ := sorry",
1023
+ "expected_verdict": "NO",
1024
+ "error_primary": null,
1025
+ "error_secondary": [],
1026
+ "error_tags": [],
1027
+ "meta_tags": [],
1028
+ "gold_explanation": "No semantic issue: statement matches NL (perfect set + countable set decomposition of closed sets in separable metric spaces)."
1029
+ },
1030
+ {
1031
+ "id": "proofnet_rudin_exercise_3_21",
1032
+ "source": "ProofNet",
1033
+ "problem_nl": "If $\\left\\{E_{n}\\right\\}$ is a sequence of closed nonempty and bounded sets in a complete metric space $X$, if $E_{n} \\supset E_{n+1}$, and if $\\lim _{n \\rightarrow \\infty} \\operatorname{diam} E_{n}=0,$ then $\\bigcap_{1}^{\\infty} E_{n}$ consists of exactly one point.",
1034
+ "lean_code": "theorem exercise_3_21\n {X : Type*} [MetricSpace X] [CompleteSpace X]\n (E : β„• β†’ Set X)\n (hEcl : βˆ€ n, IsClosed (E n))\n (hEne : βˆ€ n, (E n).Nonempty)\n (hEbdd : βˆ€ n, Bornology.IsBounded (E n))\n (hE : βˆ€ n, E n βŠ‡ E (n + 1))\n (hE' : Tendsto (Ξ» n => Metric.diam (E n)) atTop (𝓝 0)) :\n βˆƒ a, Set.iInter E = {a} := sorry",
1035
+ "expected_verdict": "NO",
1036
+ "error_primary": null,
1037
+ "error_secondary": [],
1038
+ "error_tags": [],
1039
+ "meta_tags": [],
1040
+ "gold_explanation": "No semantic issue: standard Cantor intersection theorem variant is correctly expressed."
1041
+ },
1042
+ {
1043
+ "id": "proverbench_aime_2024ii_p13",
1044
+ "source": "ProverBench",
1045
+ "problem_nl": "Let Ο‰β‰ 1 be a 13th root of unity. Find the remainder when ∏_{k=0}^{12}(2-2Ο‰^k+Ο‰^{2k}) is divided by 1000. Show that it is 321.",
1046
+ "lean_code": "import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology Rat\n\ntheorem aime_2024ii_p13 (Ο‰ : β„‚) (hβ‚€ : Ο‰ = Complex.exp (2 * ↑Real.pi * Complex.I / 13)) :\n (∏ k in Finset.range 13, (2 - 2 * Ο‰ ^ k + Ο‰ ^ (2 * k))) % 1000 = 321 := by",
1047
+ "expected_verdict": "YES",
1048
+ "error_primary": "domain_mismatch",
1049
+ "error_secondary": [],
1050
+ "error_tags": [
1051
+ "type_mismatch"
1052
+ ],
1053
+ "meta_tags": [
1054
+ "tooling_error"
1055
+ ],
1056
+ "gold_explanation": "Applies % 1000 to a complex-valued product; the intended workflow is: prove the product is an integer N, then take N % 1000. As written it's ill-typed or meaningless."
1057
+ },
1058
+ {
1059
+ "id": "proverbench_calculus__p1",
1060
+ "source": "ProverBench",
1061
+ "problem_nl": "The integral of \\[(x^3 - 3cosx) dx\\] is \\[\\frac{x^4}{4} - 3sinx + C\\].",
1062
+ "lean_code": "import Mathlib\n\n/-\nThe integral of \\[(x^3 - 3cosx) dx\\] is \\[\\frac{x^4}{4} - 3sinx + C\\].\n-/\n\n-- Define the function f(x)\nnoncomputable def f (x : ℝ) : ℝ := x^3 - 3 * Real.cos x\n\n-- Define the integral of f(x)\nnoncomputable def integralf (x : ℝ) : ℝ := (x^4 / 4) - 3 * Real.sin x\n\n-- Theorem statement\n\ntheorem integral_f_eq_integralF_plus_C (x C : ℝ):\n ∫ x , f x = integralf x + C :=",
1063
+ "expected_verdict": "YES",
1064
+ "error_primary": "definition_mismatch",
1065
+ "error_secondary": [
1066
+ "quantifier_indexing_mismatch"
1067
+ ],
1068
+ "error_tags": [
1069
+ "misuse_of_concept",
1070
+ "quantifier_mismatch"
1071
+ ],
1072
+ "meta_tags": [],
1073
+ "gold_explanation": "Lean uses ∫ x, f x (a definite integral over ℝ with measure), not an indefinite integral/antiderivative; also C is treated as arbitrary, but the constant of integration should be existential/handled via derivatives."
1074
+ },
1075
+ {
1076
+ "id": "proverbench_calculus__p10",
1077
+ "source": "ProverBench",
1078
+ "problem_nl": "The integral \\(\\displaystyle \\int \\frac{1}{\\sqrt{81-x^2}}\\,dx\\)\nis equivalent to \\(\\arcsin\\left(\\frac{x}{9}\\right)+C\\).",
1079
+ "lean_code": "import Mathlib\n\n/-\nThe integral \\(\\displaystyle \\int \\frac{1}{\\sqrt{81-x^2}}\\,dx\\)\nis equivalent to \\(\\arcsin\\left(\\frac{x}{9}\\right)+C\\).\n-/\n\nopen Real\n\n\ntheorem integral_of_one_over_sqrt_eighty_one_minus_x_squared (x C : ℝ):\n ∫ x, 1 / sqrt (81 - x^2) = arcsin (x / 9) + C :=",
1080
+ "expected_verdict": "YES",
1081
+ "error_primary": "definition_mismatch",
1082
+ "error_secondary": [
1083
+ "quantifier_indexing_mismatch"
1084
+ ],
1085
+ "error_tags": [
1086
+ "misuse_of_concept",
1087
+ "quantifier_mismatch"
1088
+ ],
1089
+ "meta_tags": [],
1090
+ "gold_explanation": "Mis-models an indefinite integral as a definite integral; C is treated as an arbitrary parameter rather than part of an antiderivative characterization."
1091
+ },
1092
+ {
1093
+ "id": "proverbench_calculus__p12",
1094
+ "source": "ProverBench",
1095
+ "problem_nl": "The integral of \\(\\displaystyle \\frac{1}{x^2-9}\\,dx\\) is equal to \\(\\frac{1}{6}\\ln\\left|\\frac{x-3}{x+3}\\right|+C\\).",
1096
+ "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\displaystyle \\frac{1}{x^2-9}\\,dx\\) is equal to \\(\\frac{1}{6}\\ln\\left|\\frac{x-3}{x+3}\\right|+C\\).\n-/\n\nopen Real\n\n\ntheorem integral_of_rational_function_with_log :\n βˆ€ (x : ℝ), x β‰  3 ∧ x β‰  -3 β†’\n (∫ (dx : ℝ), 1 / (x^2 - 9)) = (1 / 6) * log (abs ((x - 3) / (x + 3))) + C :=",
1097
+ "expected_verdict": "YES",
1098
+ "error_primary": "definition_mismatch",
1099
+ "error_secondary": [
1100
+ "quantifier_indexing_mismatch"
1101
+ ],
1102
+ "error_tags": [
1103
+ "misuse_of_concept",
1104
+ "variable_mismatch"
1105
+ ],
1106
+ "meta_tags": [
1107
+ "autoimplicit_bug"
1108
+ ],
1109
+ "gold_explanation": "C is unbound; also the integral is over dx but the integrand doesn't depend on dx (it depends on x), so it's not an antiderivative statement and is semantically wrong."
1110
+ },
1111
+ {
1112
+ "id": "proverbench_calculus__p14",
1113
+ "source": "ProverBench",
1114
+ "problem_nl": "The value of the integral ∭_D e^{xΒ²+yΒ²} dV where D is bounded by planes y=0, z=0, y=x, and paraboloid z=4-xΒ²-yΒ² is (e^4-5)Ο€/8.",
1115
+ "lean_code": "import Mathlib\n\nopen MeasureTheory\n\nvariable {D : Type} [MeasurableSpace D] [MeasureSpace D]\nvariable (D : Set (Fin 3 β†’ ℝ))\n\ntheorem integral_value_over_region (D : Set (Fin 3 β†’ ℝ))\n (hD : D = {p : Fin 3 β†’ ℝ | p 2 β‰₯ 0 ∧ p 3 β‰₯ 0 ∧ p 2 ≀ p 1 ∧ p 3 ≀ 4 - p 1^2 - p 2^2}) :\n let integrand := fun p : Fin 3 β†’ ℝ => Real.exp (p 1^2 + p 2^2)\n ∫ p in D, integrand p = (Real.exp 4 - 5) * Ο€ / 8 :=",
1116
+ "expected_verdict": "YES",
1117
+ "error_primary": "quantifier_indexing_mismatch",
1118
+ "error_secondary": [],
1119
+ "error_tags": [
1120
+ "indexing_mismatch"
1121
+ ],
1122
+ "meta_tags": [],
1123
+ "gold_explanation": "Uses p 3 with p : Fin 3 β†’ ℝ; in Lean (3 : Fin 3) = 0, so 'p 3' is actually p 0, breaking the intended coordinate constraints for the 3D region."
1124
+ },
1125
+ {
1126
+ "id": "proverbench_calculus__p15",
1127
+ "source": "ProverBench",
1128
+ "problem_nl": "Prove that \\(\\displaystyle \\lim_{x\\to 0}\\frac{1-\\cos x}{x^2}=\\frac12\\).",
1129
+ "lean_code": "import Mathlib\n\n/-\nProve that \\(\\displaystyle \\lim_{x\\to 0}\\frac{1-\\cos x}{x^2}=\\frac12\\).\n-/\n\nopen Filter Topology\n\n\n/-- Version 1: Using explicit domain restriction -/\ntheorem limit_of_cosine_difference_quotient :\n Β¬ (Tendsto (fun x => if x β‰  0 then (1 - Real.cos x) / x^2 else 1/2) (𝓝 0) (𝓝 (1/2)) ) :=",
1130
+ "expected_verdict": "YES",
1131
+ "error_primary": "formalization_error",
1132
+ "error_secondary": [],
1133
+ "error_tags": [
1134
+ "connective_mismatch"
1135
+ ],
1136
+ "meta_tags": [],
1137
+ "gold_explanation": "The Lean statement negates the limit (Β¬ Tendsto ...), while the NL statement asserts the limit equals 1/2."
1138
+ },
1139
+ {
1140
+ "id": "proverbench_calculus__p17",
1141
+ "source": "ProverBench",
1142
+ "problem_nl": "The integral \\(\\int \\frac{1}{\\cos^2 x} \\, dx\\) equals to \\(\\tan x + C\\).",
1143
+ "lean_code": "import Mathlib\n\n/-\nThe integral \\(\\int \\frac{1}{\\cos^2 x} \\, dx\\) equals to \\(\\tan x + C\\).\n-/\n\n-- Define the constant C for the integration constant\nvariable (C : ℝ)\n\n-- Theorem: The indefinite integral of 1/cos^2(x) with respect to x is tan(x) + C.\n\ntheorem integral_of_one_over_cos_sq (x : ℝ) :\n∫ (x : ℝ), 1 / (Real.cos x ^ 2) = Real.tan x + C :=",
1144
+ "expected_verdict": "YES",
1145
+ "error_primary": "definition_mismatch",
1146
+ "error_secondary": [
1147
+ "quantifier_indexing_mismatch"
1148
+ ],
1149
+ "error_tags": [
1150
+ "misuse_of_concept",
1151
+ "quantifier_mismatch"
1152
+ ],
1153
+ "meta_tags": [],
1154
+ "gold_explanation": "Indefinite integral is mis-modeled as ∫ x, ... (definite integral), and '+ C' is encoded as an arbitrary parameter rather than antiderivative up to a constant."
1155
+ },
1156
+ {
1157
+ "id": "proverbench_calculus__p3",
1158
+ "source": "ProverBench",
1159
+ "problem_nl": "The local maximum of the function f(x)=x^4/4 - x^3/3 - 2x^2 + 4x + 5 on the interval [-3,3] is 41/4 and is attained at x=3, and the local minimum is -13/3 and it is attained for x=-2.",
1160
+ "lean_code": "import Mathlib\n\nnoncomputable def f (x : ℝ) : ℝ := x^4 / 4 - x^3 / 3 - 2 * x^2 + 4 * x + 5\n\ntheorem extrema_on_interval :\n Β¬ ((βˆƒ x : ℝ, x ∈ Set.Icc (-3) 3 ∧ (βˆ€ y ∈ Set.Icc (-3) 3, f y ≀ f x) ∧ f x = 41/4 ∧ x = 3) ∧\n (βˆƒ z : ℝ, z ∈ Set.Icc (-3) 3 ∧ (βˆ€ y ∈ Set.Icc (-3) 3, f z ≀ f y) ∧ f z = - 13 / 3 ∧ z = -2)) :=",
1161
+ "expected_verdict": "YES",
1162
+ "error_primary": "formalization_error",
1163
+ "error_secondary": [],
1164
+ "error_tags": [
1165
+ "connective_mismatch"
1166
+ ],
1167
+ "meta_tags": [],
1168
+ "gold_explanation": "The Lean statement is negated (Β¬(...)) but NL asserts the extrema claims are true; it proves the opposite."
1169
+ },
1170
+ {
1171
+ "id": "proverbench_calculus__p5",
1172
+ "source": "ProverBench",
1173
+ "problem_nl": "The integral of \\(\\int \\frac{1}{x^2+1} \\, dx\\) is \\(\\arctan x + C\\).",
1174
+ "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\int \\frac{1}{x^2+1} \\, dx\\) is \\(\\arctan x + C\\).\n-/\n\nopen Real\n\nnoncomputable def f (x:ℝ ):ℝ := 1 / (x^2 + 1)\n\n\ntheorem integral_of_inv_sq_plus_one (x C: ℝ) :\n ∫ x , f x = arctan x + C :=",
1175
+ "expected_verdict": "YES",
1176
+ "error_primary": "definition_mismatch",
1177
+ "error_secondary": [
1178
+ "quantifier_indexing_mismatch"
1179
+ ],
1180
+ "error_tags": [
1181
+ "misuse_of_concept",
1182
+ "quantifier_mismatch"
1183
+ ],
1184
+ "meta_tags": [],
1185
+ "gold_explanation": "Indefinite integral '= arctan x + C' is not expressed by ∫ x, f x = ...; C is treated as arbitrary rather than handled via derivative/βˆƒ constant."
1186
+ },
1187
+ {
1188
+ "id": "proverbench_calculus__p8",
1189
+ "source": "ProverBench",
1190
+ "problem_nl": "The surface integral ∬_G (xΒ²+yΒ²+2z) dS, where G is the part of the paraboloid z=7-xΒ²-yΒ² that lies above the xy-plane is equal to (957√29-47)/20 Ο€.",
1191
+ "lean_code": "import Mathlib\n\nvariable {G : Set (ℝ Γ— ℝ Γ— ℝ)} (hG : G = {p : ℝ Γ— ℝ Γ— ℝ | p.2.2 = 7 - p.1^2 - p.2.1^2 ∧ p.2.2 β‰₯ 0})\n\ntheorem paraboloid_integral_value :\n∫ (x : ℝ) in Set.Icc (-Real.sqrt 7) (Real.sqrt 7), ∫ (y : ℝ) in Set.Icc (-Real.sqrt (7 - x^2)) (Real.sqrt (7 - x^2)),\n(x^2 + y^2 + 2*(7 - x^2 - y^2)) = (957 * Real.sqrt 29 - 47) / 20 * Ο€ :=",
1192
+ "expected_verdict": "YES",
1193
+ "error_primary": "definition_mismatch",
1194
+ "error_secondary": [],
1195
+ "error_tags": [
1196
+ "misuse_of_concept"
1197
+ ],
1198
+ "meta_tags": [],
1199
+ "gold_explanation": "NL asks for surface integral ∬ f dS but Lean computes double integral ∬ f dA. Missing surface element √(1 + (βˆ‚z/βˆ‚x)Β² + (βˆ‚z/βˆ‚y)Β²) = √(1 + 4xΒ² + 4yΒ²)."
1200
+ },
1201
+ {
1202
+ "id": "proverbench_calculus__p9",
1203
+ "source": "ProverBench",
1204
+ "problem_nl": "The integral of \\(\\sin^3 x\\cos^{6}x\\,dx\\) is equal to \\(-\\frac{\\cos^7 x}{7} + \\frac{\\cos^9 x}{9} + C\\).",
1205
+ "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\sin^3 x\\cos^{6}x\\,dx\\) is equal to \\(-\\frac{\\cos^7 x}{7} + \\frac{\\cos^9 x}{9} + C\\).\n-/\n\n\ntheorem integral_sin_cube_cos_six_power (x : ℝ) :\n ∫ (x : ℝ), Real.sin x ^ 3 * Real.cos x ^ 6 = -(Real.cos x ^ 7 / 7) + Real.cos x ^ 9 / 9 + C :=",
1206
+ "expected_verdict": "YES",
1207
+ "error_primary": "definition_mismatch",
1208
+ "error_secondary": [
1209
+ "quantifier_indexing_mismatch"
1210
+ ],
1211
+ "error_tags": [
1212
+ "misuse_of_concept",
1213
+ "variable_mismatch"
1214
+ ],
1215
+ "meta_tags": [
1216
+ "autoimplicit_bug"
1217
+ ],
1218
+ "gold_explanation": "Uses ∫ x, ... as a definite integral, and C is free/unbound in the statement (scope/autoImplicit issue)."
1219
+ },
1220
+ {
1221
+ "id": "proverbench_elementary_algebra__p1",
1222
+ "source": "ProverBench",
1223
+ "problem_nl": "For a polynomial \\(P\\) of degree \\(n\\) where \\(P(i)\\) equals the remainder of \\(i\\) modulo 2 for each \\(i=0,1,\\dots,n\\),\n\\(P(n+1)\\) is 1 if \\(n\\) is even and 0 if \\(n\\) is odd.",
1224
+ "lean_code": "import Mathlib\n\n/-\nFor a polynomial \\(P\\) of degree \\(n\\) where \\(P(i)\\) equals the remainder of \\(i\\) modulo 2 for each \\(i=0,1,\\dots,n\\),\n\\(P(n+1)\\) is 1 if \\(n\\) is even and 0 if \\(n\\) is odd.\n-/\n\nvariable {P : Polynomial β„€} {n : β„•} (hP : βˆ€ i ∈ Finset.range (n + 1), P.eval (i : β„€) = i % 2)\n\n\ntheorem polynomial_parity_evaluation :\n (n % 2 = 0 β†’ P.eval ((n + 1) : β„€) = 1) ∧ (n % 2 β‰  0 β†’ P.eval ((n + 1) : β„€) = 0) :=",
1225
+ "expected_verdict": "YES",
1226
+ "error_primary": "problem_statement_error",
1227
+ "error_secondary": [
1228
+ "specification_error"
1229
+ ],
1230
+ "error_tags": [
1231
+ "unprovable_problem",
1232
+ "incomplete_spec"
1233
+ ],
1234
+ "meta_tags": [],
1235
+ "gold_explanation": "Even with degree = n, the claimed parity value at n+1 is not generally true over β„€ (fails for n=0, n=1, n=2); also Lean statement omits the degree constraint entirely."
1236
+ },
1237
+ {
1238
+ "id": "proverbench_elementary_algebra__p15",
1239
+ "source": "ProverBench",
1240
+ "problem_nl": "Prove that if the difference of two consecutive cubes is nΒ², n ∈ β„•, then 2n-1 is a square.",
1241
+ "lean_code": "import Mathlib\n\nvariable (n : β„•)\n\ntheorem consecutive_cubes_difference_implies_square :\n ( (n + 1) ^ 3 - n ^ 3 = n ^ 2 ) β†’ βˆƒ k : β„•, k ^ 2 = 2 * n - 1 :=",
1242
+ "expected_verdict": "YES",
1243
+ "error_primary": "formalization_error",
1244
+ "error_secondary": [
1245
+ "quantifier_indexing_mismatch"
1246
+ ],
1247
+ "error_tags": [
1248
+ "premise_translation_error",
1249
+ "variable_mismatch"
1250
+ ],
1251
+ "meta_tags": [],
1252
+ "gold_explanation": "Uses same variable n for both the cube index and the square. NL says 'difference of two consecutive cubes is nΒ²' meaning (m+1)Β³ - mΒ³ = nΒ² for some m. Correct formalization needs separate variables. Current premise is never satisfiable for n ∈ β„•, making theorem vacuously true."
1253
+ },
1254
+ {
1255
+ "id": "proverbench_elementary_algebra__p19",
1256
+ "source": "ProverBench",
1257
+ "problem_nl": "Proves the inequality: aΒ²(s-a) + bΒ²(s-b) + cΒ²(s-c) ≀ (3/2)abc where a, b, c are real numbers.",
1258
+ "lean_code": "import Mathlib\n\ntheorem inequality_statement {a b c s : ℝ} :\n a^2 * (s - a) + b^2 * (s - b) + c^2 * (s - c) ≀ (3/2) * a * b * c :=",
1259
+ "expected_verdict": "YES",
1260
+ "error_primary": "problem_statement_error",
1261
+ "error_secondary": [
1262
+ "specification_error"
1263
+ ],
1264
+ "error_tags": [
1265
+ "incomplete_statement",
1266
+ "missing_hypothesis"
1267
+ ],
1268
+ "meta_tags": [],
1269
+ "gold_explanation": "Both NL and Lean are missing the constraint that s = (a+b+c)/2 (semi-perimeter). The NL problem statement is incomplete - this inequality only holds when s is the semi-perimeter. Without this constraint, the statement is FALSE. Counterexample: a=b=c=1, s=100 gives LHS=297 > RHS=1.5."
1270
+ },
1271
+ {
1272
+ "id": "proverbench_linear_algebra__p13_1",
1273
+ "source": "ProverBench",
1274
+ "problem_nl": "Let T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.",
1275
+ "lean_code": "import Mathlib\n\n/-\nLet T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.\n-/\n\nopen Int AddMonoidHom\n\nvariable (T : β„€ Γ— β„€ β†’+ β„€)\n\naxiom T10 : T (1, 0) = 3\n\naxiom T01 : T (0, 1) = -5\n\n\nlemma T_expression : βˆ€ (x y : β„€), T (x, y) = 3 * x - 5 * y :=",
1276
+ "expected_verdict": "YES",
1277
+ "error_primary": "formalization_error",
1278
+ "error_secondary": [],
1279
+ "error_tags": [
1280
+ "premise_translation_error"
1281
+ ],
1282
+ "meta_tags": [
1283
+ "unsound_axiom"
1284
+ ],
1285
+ "gold_explanation": "Constraints T(1,0)=3 and T(0,1)=-5 were introduced as global axioms (effectively for all T), rather than hypotheses about a specific T; this makes the context inconsistent (e.g. T=0)."
1286
+ },
1287
+ {
1288
+ "id": "proverbench_linear_algebra__p13_2",
1289
+ "source": "ProverBench",
1290
+ "problem_nl": "Let T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.",
1291
+ "lean_code": "import Mathlib\n\n/-\nLet T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.\n-/\n\nopen Int AddMonoidHom\n\nvariable (T : β„€ Γ— β„€ β†’+ β„€)\n\naxiom T10 : T (1, 0) = 3\n\naxiom T01 : T (0, 1) = -5\n\naxiom T_expression : βˆ€ (x y : β„€), T (x, y) = 3 * x - 5 * y\n\n\ntheorem T_value (x y : β„€) : T (x, y) = 3 * x - 5 * y :=",
1292
+ "expected_verdict": "YES",
1293
+ "error_primary": "formalization_error",
1294
+ "error_secondary": [],
1295
+ "error_tags": [
1296
+ "premise_translation_error"
1297
+ ],
1298
+ "meta_tags": [
1299
+ "unsound_axiom"
1300
+ ],
1301
+ "gold_explanation": "Same issue as p13_1: axioms assert properties for all T and even directly assert the conclusion, making the theorem trivial/unsound rather than a conditional statement."
1302
+ },
1303
+ {
1304
+ "id": "proverbench_number_theory__p16",
1305
+ "source": "ProverBench",
1306
+ "problem_nl": "The smallest possible value for n in a library with n books, where if books are arranged in boxes with 7 books in each box, then 5 books remain, if arranged with 9 books in each box, then 3 books remain, and if arranged with 11 books in each box, then 7 books remain, is 579.",
1307
+ "lean_code": "import Mathlib\n\ntheorem smallest_library_books_value {n : β„•}\n (h1 : n % 7 = 5) (h2 : n % 9 = 3) (h3 : n % 11 = 7) :\n n = 579 :=",
1308
+ "expected_verdict": "YES",
1309
+ "error_primary": "specification_error",
1310
+ "error_secondary": [],
1311
+ "error_tags": [
1312
+ "missing_hypothesis"
1313
+ ],
1314
+ "meta_tags": [],
1315
+ "gold_explanation": "Missing minimality constraint. The theorem claims ALL n satisfying the CRT conditions equal 579, but n = 1272 (= 579 + lcm(7,9,11)) also satisfies h1, h2, h3 and 1272 β‰  579. Should add hypothesis that n is the smallest such n."
1316
+ },
1317
+ {
1318
+ "id": "proverbench_number_theory__p2",
1319
+ "source": "ProverBench",
1320
+ "problem_nl": "For the equation x² + y² - 1 = 4xy its general solution in the integers is given by x + u√3 = (2 + √3)^n, where u is the substitute for y - 2x.",
1321
+ "lean_code": "import Mathlib\n\ntheorem general_solution_quadratic_equation (x y : β„€) (u : β„€) (n : β„•) :\n x^2 + y^2 - 1 = 4 * x * y β†’ x + u * Real.sqrt 3 = (2 + Real.sqrt 3)^n := sorry",
1322
+ "expected_verdict": "YES",
1323
+ "error_primary": "problem_statement_error",
1324
+ "error_secondary": [
1325
+ "specification_error",
1326
+ "domain_mismatch"
1327
+ ],
1328
+ "error_tags": [
1329
+ "unprovable_problem",
1330
+ "missing_hypothesis",
1331
+ "type_mismatch"
1332
+ ],
1333
+ "meta_tags": [],
1334
+ "gold_explanation": "NL/formula is wrong as written (the Pell reduction gives u^2-3x^2=1 so the standard form is u + x√3 = (2+√3)^n); also missing u = y - 2x; Lean mixes β„€ variables with ℝ sqrt without proper spec/casts."
1335
+ },
1336
+ {
1337
+ "id": "proverbench_number_theory__p26",
1338
+ "source": "ProverBench",
1339
+ "problem_nl": "For any real number \\(\\alpha\\), there exist infinitely many pairs of positive integers \\((p, q)\\) such that \\(\\left|\\alpha - \\frac{p}{q}\\right| < \\frac{1}{q^2}\\)",
1340
+ "lean_code": "import Mathlib\n\n/-\nFor any real number \\(\\alpha\\), there exist infinitely many pairs of positive integers \\((p, q)\\) such that \\(\\left|\\alpha - \\frac{p}{q}\\right| < \\frac{1}{q^2}\\)\n-/\n\n\ntheorem infinitely_many_positive_integer_pairs_for_real_approximation (Ξ± : ℝ) :\n βˆƒ (p q : β„•) (h : q > 0), βˆ€ (n : β„•), n > 0 β†’ βˆƒ (p_n q_n : β„•) (h_n : q_n > 0),\n |Ξ± - (p_n : ℝ) / q_n| < 1 / q_n^2 :=",
1341
+ "expected_verdict": "YES",
1342
+ "error_primary": "problem_statement_error",
1343
+ "error_secondary": [
1344
+ "quantifier_indexing_mismatch"
1345
+ ],
1346
+ "error_tags": [
1347
+ "unprovable_problem",
1348
+ "quantifier_mismatch"
1349
+ ],
1350
+ "meta_tags": [],
1351
+ "gold_explanation": "As stated with p,q positive, the NL claim fails for negative Ξ± (e.g. Ξ± = -2); the Lean quantifier structure also doesn't encode 'infinitely many distinct pairs' or unbounded q. Variables p,q are unused (bound then ignored)."
1352
+ },
1353
+ {
1354
+ "id": "proverbench_number_theory__p27",
1355
+ "source": "ProverBench",
1356
+ "problem_nl": "Prove that \\(4kxy-1\\) does not divide the number \\(x^m+y^n\\) for any positive integers \\(x,y,k,m,n\\).",
1357
+ "lean_code": "import Mathlib\n\n/-\nProve that \\(4kxy-1\\) does not divide the number \\(x^m+y^n\\) for any positive integers \\(x,y,k,m,n\\).\n-/\n\n\ntheorem no_division {x y k m n : PNat}\n (h : βˆƒ z : PNat, (x : β„•)^(m : β„•) + (y : β„•)^(n : β„•) = z) :\n Β¬((4 * k * x * y - 1) ∣ z) :=",
1358
+ "expected_verdict": "YES",
1359
+ "error_primary": "quantifier_indexing_mismatch",
1360
+ "error_secondary": [],
1361
+ "error_tags": [
1362
+ "variable_mismatch"
1363
+ ],
1364
+ "meta_tags": [
1365
+ "autoimplicit_bug"
1366
+ ],
1367
+ "gold_explanation": "z in the divisibility conclusion is not bound to the z from the βˆƒ-hypothesis (autoImplicit-style scope bug), making the statement meaningless/false."
1368
+ },
1369
+ {
1370
+ "id": "proverbench_number_theory__p28",
1371
+ "source": "ProverBench",
1372
+ "problem_nl": "Let \\(p\\) be a prime number and \\( N=\\prod _{k=1}^{p-1}(k^2+1)\\). The remainder of \\(N\\) upon division by \\(p\\) is 4 if \\(p\\) is congruent to 3 modulo 4, and 0 if \\(p\\) is congruent to 1 modulo 4.",
1373
+ "lean_code": "import Mathlib\n\n/-\nLet \\(p\\) be a prime number and \\( N=\\prod _{k=1}^{p-1}(k^2+1)\\). The remainder of \\(N\\) upon division by \\(p\\) is 4 if \\(p\\) is congruent to 3 modulo 4, and 0 if \\(p\\) is congruent to 1 modulo 4.\n-/\n\nopen Finset\n\n\ntheorem prime_remainder_theorem (p : β„•) (hp : Prime p) :\n let N := (range (p - 1)).prod (Ξ» k => k^2 + 1);\n if p % 4 = 3 then N % p = 4 else N % p = 0 :=",
1374
+ "expected_verdict": "YES",
1375
+ "error_primary": "quantifier_indexing_mismatch",
1376
+ "error_secondary": [
1377
+ "specification_error"
1378
+ ],
1379
+ "error_tags": [
1380
+ "indexing_mismatch",
1381
+ "missing_hypothesis"
1382
+ ],
1383
+ "meta_tags": [],
1384
+ "gold_explanation": "range (p-1) indexes k=0..p-2, not 1..p-1 as NL specifies; additionally 'remainder = 4' should be encoded as N % p = 4 % p (or require p>4), otherwise p=3 breaks literal remainder equality."
1385
+ },
1386
+ {
1387
+ "id": "proverbench_number_theory__p6",
1388
+ "source": "ProverBench",
1389
+ "problem_nl": "The solutions for the equation xΒ² - dyΒ² = 1 in the set of rational numbers, for a given integer d, are x = (dtΒ² + 1)/(dtΒ² - 1) and y = 2t/(dtΒ² - 1) where t ∈ β„š.",
1390
+ "lean_code": "import Mathlib\n\nvariable (d : β„€)\n\ntheorem rational_solutions_of_pell_equation (t : β„š) :\n βˆƒ (x y : β„š), x = (d * t^2 + 1) / (d * t^2 - 1) ∧ y = 2 * t / (d * t^2 - 1) ∧ x^2 - d * y^2 = 1 :=",
1391
+ "expected_verdict": "YES",
1392
+ "error_primary": "specification_error",
1393
+ "error_secondary": [],
1394
+ "error_tags": [
1395
+ "incomplete_spec",
1396
+ "division_by_zero_risk"
1397
+ ],
1398
+ "meta_tags": [],
1399
+ "gold_explanation": "Only proves 'for each t, the formulas give a solution' (one direction); NL reads like a full characterization of all rational solutions (↔). Also denominator d*t^2-1 can be 0, which needs an explicit guard in a faithful spec."
1400
+ },
1401
+ {
1402
+ "id": "proverbench_number_theory__p7",
1403
+ "source": "ProverBench",
1404
+ "problem_nl": "Exactly one of the equations xΒ² - pyΒ² = Β±2 has an integral solution where p is a prime of the form 4k + 3.",
1405
+ "lean_code": "import Mathlib\n\nvariable {p : β„€} (hp : Prime p) (hpForm : p % 4 = 3)\n\ntheorem exactly_one_has_integral_solution:\n (βˆƒ (x y : β„€), x^2 - p * y^2 = 2) ∨ (βˆƒ (x y : β„€), x^2 - p * y^2 = -2) ∧\n Β¬((βˆƒ (x y : β„€), x^2 - p * y^2 = 2) ∧ (βˆƒ (x y : β„€), x^2 - p * y^2 = -2)) :=",
1406
+ "expected_verdict": "YES",
1407
+ "error_primary": "formalization_error",
1408
+ "error_secondary": [],
1409
+ "error_tags": [
1410
+ "connective_mismatch"
1411
+ ],
1412
+ "meta_tags": [],
1413
+ "gold_explanation": "Due to precedence, Lean parses A ∨ (B ∧ ¬(A ∧ B)) instead of (A ∨ B) ∧ ¬(A ∧ B); that weakens 'exactly one'."
1414
+ }
1415
+ ]
semantic_lean_errors.jsonl ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id": "combibench_apmo_1991_p2", "source": "CombiBench", "problem_nl": "Suppose there are 997 points given in a plane. If every two points are joined by a line segment with its midpoint coloured in red, show that there are at least 1991 red points in the plane.", "lean_code": "theorem apmo_1991_p2 (points : Fin 997 β†’ ℝ Γ— ℝ) : (red_points points).card β‰₯ 1991 := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["distinctness_missing"], "meta_tags": [], "gold_explanation": "If points are not distinct, the bound fails (e.g., all points equal), but the NL assumes distinct points."}
2
+ {"id": "combibench_apmo_2023_p1", "source": "CombiBench", "problem_nl": "Let $n \\geq 5$ be an integer. Consider $n$ squares with side lengths $1,2, \\ldots, n$, respectively. The squares are arranged in the plane with their sides parallel to the $x$ and $y$ axes. Suppose that no two squares touch, except possibly at their vertices.\\nShow that it is possible to arrange these squares in a way such that every square touches exactly two other squares.", "lean_code": "theorem apmo_2023_p1 (n : β„•) (h_n: n β‰₯ 5) :\n βˆƒ position: Fin n β†’ ℝ Γ— ℝ,\n (βˆ€ n1 n2 : Fin n, n1 β‰  n2 β†’ Β¬ touches_interior_or_edge ⟨position n1, n1 + 1⟩ ⟨position n2, n2 + 1⟩)\n ∧ βˆ€m : Fin n, βˆƒ l k, m β‰  l ∧ m β‰  k ∧ l β‰  k\n ∧ touches ⟨position m, m + 1⟩ ⟨position l, l + 1⟩\n ∧ touches ⟨position m, m + 1⟩ ⟨position k, k + 1⟩\n ∧ (βˆ€ j : Fin n, j βˆ‰ [m, l, k] β†’ Β¬ touches ⟨position m, m + 1⟩ ⟨position j, j + 1⟩) := by sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["formalization_error"], "error_tags": ["encoding_issue", "goal_mismatch"], "meta_tags": [], "gold_explanation": "The notion of 'touch / touch only at vertices' and the way 'exactly two touches' is counted appears under-specified/possibly mis-modeled; hard to verify without the definitions of touches*."}
3
+ {"id": "combibench_balticway_2015_p7", "source": "CombiBench", "problem_nl": "There are 100 members in a ladies' club. Each lady has had tea (in private) with exactly 56 of the other members of the club. The Board, consisting of the 50 most distinguished ladies, have all had tea with one another. Prove that the entire club may be split into two groups in such a way that, within each group, any lady has had tea with any other.", "lean_code": "theorem balticway_2015_p7 (had_tea: SimpleGraph (Ladies)) [DecidableRel had_tea.Adj]\n (h_had_tea_with_56: βˆ€ l : Ladies, had_tea.degree l = 56)\n (h_board: βˆƒ board : Finset Ladies, board.card = 50 ∧ (βˆ€ l1 l2: board, had_tea.Adj l1 l2)) :\n βˆƒ group1 group2: Finset Ladies,\n group1 βˆͺ group2 = Finset.univ\n ∧ Disjoint group1 group2\n ∧ (βˆ€ l1 l2: group1, had_tea.Adj l1 l2)\n ∧ (βˆ€ l1 l2: group2, had_tea.Adj l1 l2) := by sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["library_usage_error"], "meta_tags": ["tooling_error"], "gold_explanation": "βˆ€ l1 l2 : board is ill-typed and does not express a clique; IsClique matches NL."}
4
+ {"id": "combibench_brualdi_ch10_34", "source": "CombiBench", "problem_nl": "Let $t$ be a positive integer. Prove that, if there exists a Steiner triple system of index 1 having $v$ varieties, then there exists a Steiner triple system having $v^{t}$ varieties.", "lean_code": "theorem brualdi_ch10_34 (t v : β„•) (ht : t > 1): Nonempty (SteinerTripleSystemOfIndOne 2 3 v) β†’\n Nonempty (SteinerTripleSystemOfIndOne 2 3 (v ^ t)) := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": ["definition_mismatch"], "error_tags": ["incorrect_spec", "encoding_issue"], "meta_tags": [], "gold_explanation": "NL says 'STS of index 1 β‡’ STS (some index) on v^t'; original conclusion stays in 'index 1' and assumption t>1 vs 'positive integer' is unclear without STS definitions."}
5
+ {"id": "combibench_brualdi_ch10_60", "source": "CombiBench", "problem_nl": "Prove that a symmetric, idempotent Latin square has odd order.", "lean_code": "theorem brualdi_ch10_60 {n : β„•} (L : LatinSquare n) :\n IsIdempotentElem L.1 ∧ L.1.IsSymm β†’ Odd n := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": ["definition_mismatch"], "error_tags": ["base_case_missing", "library_usage_error"], "meta_tags": [], "gold_explanation": "NL assumes positive order and idempotence on the diagonal; original predicate name is unclear and no positivity guard was present."}
6
+ {"id": "combibench_brualdi_ch11_5", "source": "CombiBench", "problem_nl": "Use the pigeonhole principle to prove that a graph of order n β‰₯ 2 always has two vertices of the same degree.", "lean_code": "theorem brualdi_ch11_5 {V : Type*} (n : β„•) (h_n: n β‰₯ 2) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] :\n βˆƒ v1 v2, v1 β‰  v2 ∧ G.degree v1 = G.degree v2 := by sorry", "expected_verdict": "NO", "error_primary": null, "error_secondary": [], "error_tags": [], "meta_tags": ["unused_parameter", "code_style_issue"], "gold_explanation": "Removal of an unused type parameter is refactor-only; original statement was still correct."}
7
+ {"id": "combibench_brualdi_ch14_26", "source": "CombiBench", "problem_nl": "How many different necklaces are there that contain four red and three blue beads?", "lean_code": "structure PreNecklaces where\n c : Fin 7 β†’ Fin 2\n deriving Fintype", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "NL requires exactly four red and three blue beads, but the original structure had no count constraint. Note: the proposed fix with βˆƒ S, S.card = 4 only enforces at-least-4-red, not exactly-4-red."}
8
+ {"id": "combibench_brualdi_ch1_5", "source": "CombiBench", "problem_nl": "Find the number of different perfect covers of a 3-by-4 chessboard by dominoes.", "lean_code": "theorem brualdi_ch1_5 : Fintype.card PerfectCover = brualdi_ch1_5_solution := by sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["type_mismatch", "encoding_issue"], "meta_tags": [], "gold_explanation": "Refactor to explicit domino modeling and specialization; original already fixed board size, so correctness is unclear."}
9
+ {"id": "combibench_brualdi_ch2_36", "source": "CombiBench", "problem_nl": "Determine the total number of combinations (of any size) of a multiset of objects of $k$ different types with finite repetition numbers $n_1, n_2, \\ldots, n_k$, respectively.", "lean_code": "theorem brualdi_ch2_36 {k : β„•} (n : Fin k β†’ β„•) (sols : Finset (Fin k β†’ β„•)) (h_sols : βˆ€ f, f ∈ sols ↔ (βˆ€ i, f i ≀ n i)) : sols.card = ((fun n => (βˆ‘ i : Fin k, (n i + 1))) : (Fin k β†’ β„•) β†’ β„•) n := by sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["wrong_operator"], "meta_tags": [], "gold_explanation": "The number of combinations of a multiset with repetition bounds n_i is the product ∏(n_i+1), not the sum βˆ‘(n_i+1). Sum gives wrong answer for any k>1."}
10
+ {"id": "combibench_brualdi_ch2_6", "source": "CombiBench", "problem_nl": "How many integers greater than 5400 have both of the following properties? (a) The digits are distinct. (b) The digits 2 and 7 do not occur.", "lean_code": "theorem brualdi_ch2_6 (s : Finset β„•)\n (hs0 : βˆ€ n ∈ s, n > 5400)\n (hs1 : βˆ€ n ∈ s, (Nat.digits 10 n).Nodup)\n (hs2 : βˆ€ n ∈ s, 2 βˆ‰ (Nat.digits 10 n) ∧ 7 βˆ‰ (Nat.digits 10 n)) :\n s.card = brualdi_ch2_6_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Before only required s subset of valid integers, so s.card is not determined; need iff."}
11
+ {"id": "combibench_brualdi_ch3_18", "source": "CombiBench", "problem_nl": "Prove that of any five points chosen within a square of side length 2 , there are two whose distance apart is at most $\\sqrt{2}$.", "lean_code": "theorem brualdi_ch3_18\n (points : Fin 5 β†’ Set.Icc (0 : ℝ) 2 Γ— Set.Icc (0 : ℝ) 2) :\n βˆƒ i j, i β‰  j ∧ Dist.dist (points i) (points j) ≀ √2 := by sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["type_mismatch", "paper_vs_lean_semantics"], "meta_tags": ["tooling_error"], "gold_explanation": "Original used Set.Icc Γ— Set.Icc which is ill-typed. Also ℝ×ℝ would have wrong metric (sup not Euclidean). EuclideanSpace is correct. Expert confirmed (Joseph Myers)."}
12
+ {"id": "combibench_brualdi_ch4_35", "source": "CombiBench", "problem_nl": "The complement $\\bar{A}$ of an $r$-subset $A$ of $\\{1,2, \\ldots, n\\}$ is the $(n-r)$-subset of $\\{1,2, \\ldots, n\\}$, consisting of all those elements that do not belong to $A$. Let $M=\\binom{n}{r}$, the number of $r$-subsets and, at the same time, the number of $(n-r)$ subsets of $\\{1,2, \\ldots, n\\}$. Prove that, if $A_{1}, A_{2}, A_{3}, \\ldots, A_{M}$ are the $r$-subsets in lexicographic order, then $\\overline{A_{M}}, \\ldots, \\overline{A_{3}}, \\overline{A_{2}}, \\overline{A_{1}}$ are the $(n-r)$-subsets in lexicographic order.", "lean_code": "theorem brualdi_ch4_35 (r n M : β„•) (hM : M = ((@Finset.univ (Fin n)).powersetCount r).card)\n (A : Fin M β†’ (Finset.powersetCount r (@Finset.univ (Fin M) _))) :\n βˆ€ i j, (List.Lex (fun x1 x2 : Fin M => x1 ≀ x2)\n (Finset.sort (Β· ≀ Β·) (A i)) (Finset.sort (Β· ≀ Β·) (A j))) β†’\n (List.Lex (fun x1 x2 : Fin M => x1 ≀ x2)\n (Finset.sort (Β· ≀ Β·) (A j)ᢜ) (Finset.sort (Β· ≀ Β·) (A i)ᢜ)) := by sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["type_mismatch"], "meta_tags": [], "gold_explanation": "Statement is about r-subsets of {1..n}, but before used Fin M elements and lex order on M, so the domain is wrong."}
13
+ {"id": "combibench_brualdi_ch4_59", "source": "CombiBench", "problem_nl": "Let $n \\geq 2$ be an integer. Prove that the total number of inversions of all $n$ ! permutations of $1,2, \\ldots, n$ equals $\\frac{1}{2} n!\\binom{n}{2}=n!\\frac{n(n-1)}{4}$ (Hint: Pair up the permutations so that the number of inversions in each pair is $\\frac{n(n-1)}{2}$.)", "lean_code": "def invNum {n : β„•} (Οƒ : Equiv.Perm (Fin n)) : β„• :=\n βˆ‘ x ∈ Equiv.Perm.finPairsLT n, if Οƒ x.fst ≀ Οƒ x.snd then 0 else 1", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["wrong_operator"], "meta_tags": [], "gold_explanation": "Before counted inversions (pairs where Οƒ(i) > Οƒ(j) for i < j). After counts non-inversions. Both give same sum over all permutations due to symmetry, so theorem remains correct either way."}
14
+ {"id": "combibench_brualdi_ch4_9", "source": "CombiBench", "problem_nl": "Show that the largest number of inversions of a permutation of ${1, 2, ... , n}$ equals $\\frac{n(n -1)}{2}$.", "lean_code": "def invNum {n : β„•} (Οƒ : Equiv.Perm (Fin n)) : β„• :=\n βˆ‘ x ∈ Equiv.Perm.finPairsLT n, if Οƒ x.fst ≀ Οƒ x.snd then 0 else 1", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["wrong_operator"], "meta_tags": [], "gold_explanation": "Before counted inversions, after counts non-inversions. Both give same maximum n(n-1)/2 (reverse perm has max inversions = identity has max non-inversions), so theorem correct either way."}
15
+ {"id": "combibench_brualdi_ch6_9", "source": "CombiBench", "problem_nl": "Determine the number of integral solutions of the equation $x_{1}+x_{2}+x_{3}+x_{4}=20$ that satisfy $1 \\leq x_{1} \\leq 6,0 \\leq x_{2} \\leq 7,4 \\leq x_{3} \\leq 8,2 \\leq x_{4} \\leq 6$.", "lean_code": "theorem brualdi_ch6_9 : {x : Fin 4 β†’ β„• | x 0 ∈ Icc 1 6 ∧ x 1 ∈ Icc 0 7 ∧\n x 2 ∈ Icc 4 8 ∧ x 3 ∈ Icc 2 6}.ncard = brualdi_ch6_9_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Missing constraint x1+x2+x3+x4=20; before counts all tuples in bounds."}
16
+ {"id": "combibench_brualdi_ch9_13", "source": "CombiBench", "problem_nl": "Let $A$ be a matrix with $n$ columns, with integer entries taken from the set $S=\\{1,2, \\ldots, k\\}$. Assume that each integer $i$ in $S$ occurs exactly $n r_{i}$ times in $A$, where $r_{i}$ is an integer. Prove that it is possible to permute the entries in each row of $A$ to obtain a matrix $B$ in which each integer $i$ in $S$ appears $r_{i}$ times in each column.", "lean_code": "theorem brualdi_ch9_13 (n m : β„•) (k : β„•+) (A : Matrix (Fin m) (Fin n) β„•)\n (hA : βˆ€ i j, A i j ∈ Finset.Icc 1 k.1) :\n βˆƒ (rΟƒ : Fin m β†’ Equiv.Perm (Fin n)), βˆ€ j : Fin n, βˆ€ i ∈ Set.Icc 1 k.1,\n (βˆ‘ x : Fin m, if A x ((rΟƒ x).symm j) = x then 1 else 0) * n =\n (βˆ‘ x : Fin m, βˆ‘ y : Fin n, if A x y = i then 1 else 0) := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": ["quantifier_indexing_mismatch", "formalization_error"], "error_tags": ["missing_hypothesis", "variable_mismatch", "goal_mismatch"], "meta_tags": [], "gold_explanation": "Before omits the nr_i counting hypothesis and compares A x ... to x instead of i; it does not encode the NL statement."}
17
+ {"id": "combibench_egmo_2022_p5", "source": "CombiBench", "problem_nl": "For all positive integers n, k, let f(n, 2k) be the number of ways an n Γ— 2k board can be fully covered by nk dominoes of size 2 Γ— 1. Find all positive integers n such that for every positive integer k, the number f(n, 2k) is odd.", "lean_code": "structure PerfectCover (n k : β„•) where\n d_set : Finset (Domino n k)\n d_card : d_set.card = n * k\n covers : βˆ€ i : Fin n Γ— Fin (2 * k), βˆƒ d ∈ d_set, i ∈ d.carrier", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["encoding_issue"], "meta_tags": [], "gold_explanation": "PerfectCover uses Finset of labeled Dominos and distinguishes two squares of each domino. Count is multiplied by (nk)!Β·2^(nk). Problem asks when count is odd, so this bug matters. Expert confirmed (Joseph Myers)."}
18
+ {"id": "combibench_hackmath_3", "source": "CombiBench", "problem_nl": "How many four-digit numbers can be formed from the numbers 3 5 8 9 if they are not allowed to be repeated?", "lean_code": "theorem hackmath_3 (sol : Finset β„•)\n (h_sol : βˆ€ s ∈ sol, 1000 ≀ s ∧ s ≀ 9999 ∧ (Nat.digits 10 s).toFinset = {3, 5, 8, 9}) :\n sol.card = hackmath_3_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Before only required sol subset of valid numbers, so sol.card is not fixed; need iff."}
19
+ {"id": "combibench_hackmath_4", "source": "CombiBench", "problem_nl": "How many people must be in a group for at least two of them to be born in the same month?", "lean_code": "theorem hackmath_4 : IsLeast {n | βˆ€ f : Fin n β†’ Fin 12, βˆƒ a b, f a = f b} hackmath_4_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["distinctness_missing"], "meta_tags": [], "gold_explanation": "Without a β‰  b, the pigeonhole condition is trivially satisfied by taking a=b, so the least n is wrong."}
20
+ {"id": "combibench_hackmath_8", "source": "CombiBench", "problem_nl": "A ferry with a capacity of 10 people takes a group of 13 men and 7 women across a river. Find the number of ways in which the group may be taken across the if all women go on the first group.", "lean_code": "theorem hackmath_8 (sols : Finset ((Fin 13 β†’ Fin 2) Γ— (Fin 7 β†’ Fin 2)))\n (h_women : βˆ€ f ∈ sols, βˆ€ i, f.2 i = 0)\n (h_sols : βˆ€ f, f ∈ sols ↔ βˆ€ k, ((List.ofFn f.1).count k + (List.ofFn f.2).count k = 10)) :\n sols.card = hackmath_8_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Women constraint was outside the membership iff, so sols could be any subset; NL needs the exact set."}
21
+ {"id": "combibench_imo_2000_p4", "source": "CombiBench", "problem_nl": "A magician has one hundred cards numbered $1$ to $100$. He puts them into three boxes, a red one, a white one and a blue one, so that each box contains at least one card. A member of the audience selects two of the three boxes, chooses one card from each and announces the sum of the numbers on the chosen cards. Given this sum, the magician identifies the box from which no card has been chosen. How many ways are there to put all the cards into the boxes so that this trick always works? (Two ways are considered different if at least one card is put into a different box.)", "lean_code": "theorem imo_2000_p4 (good_allocations : Finset Allocation)\n (h : βˆ€ f ∈ good_allocations, βˆƒ (t : Trick), trick_works f t) :\n good_allocations.card = imo_2000_p4_solution := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": ["domain_mismatch"], "error_tags": ["missing_hypothesis", "incomplete_spec", "domain_of_variables_mismatch"], "meta_tags": [], "gold_explanation": "Cards should be 1..100 and good_allocations should be exactly surjective allocations with a working trick; before is underconstrained and off by domain."}
22
+ {"id": "combibench_imo_2005_p6", "source": "CombiBench", "problem_nl": "In a mathematical competition, in which 6 problems were posed to the participants, every two of these problems were solved by more than 2/5 of the contestants. Moreover, no contestant solved all the 6 problems. Show that there are at least 2 contestants who solved exactly 5 problems each.", "lean_code": "theorem imo_2005_p6 {participants : Type} [Fintype participants] [DecidableEq participants]\n (solved : Fin 6 β†’ Finset participants)\n (h : βˆ€ i j, i β‰  j β†’ (solved i ∩ solved j).card > (2 * Fintype.card participants : ℝ) / 5)\n (h' : βˆ€ i, (solved i).card < Fintype.card participants) :\n βˆƒ s : Finset participants, s.card β‰₯ 2 ∧\n (βˆ€ i ∈ s, βˆƒ p : Finset (Fin 6), p.card = 5 ∧ βˆ€ j, j ∈ p ↔ i ∈ solved j) := by sorry", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["quantifier_mismatch"], "meta_tags": [], "gold_explanation": "NL says each participant missed at least one problem; original only said each problem had someone who missed it."}
23
+ {"id": "combibench_imo_2010_p5", "source": "CombiBench", "problem_nl": "Each of the six boxes $B_1$, $B_2$, $B_3$, $B_4$, $B_5$, $B_6$ initially contains one coin. The following operations are allowed: Type 1) Choose a non-empty box $B_j$, $1\\leq j \\leq 5$, remove one coin from $B_j$ and add two coins to $B_{j+1}$; Type 2) Choose a non-empty box $B_k$, $1\\leq k \\leq 4$, remove one coin from $B_k$ and swap the contents (maybe empty) of the boxes $B_{k+1}$ and $B_{k+2}$. Determine if there exists a finite sequence of operations of the allowed types, such that the five boxes $B_1$, $B_2$, $B_3$, $B_4$, $B_5$ become empty, while box $B_6$ contains exactly $2010^{2010^{2010}}$ coins.", "lean_code": "def op22 : Boxes β†’ Boxes\n | ⟨b1, b2, b3, b4, b5, b6⟩ => ⟨b1, b2 - 4, b4, b3, b5, b6⟩", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["wrong_constant"], "meta_tags": [], "gold_explanation": "Type-1 operation removes one coin, but op22 subtracted 4; constant was wrong."}
24
+ {"id": "combibench_imo_2014_p2", "source": "CombiBench", "problem_nl": "Let $n\\ge2$ be an integer. Consider an $n\\times n$ chessboard consisting of $n^2$ unit squares. A configuration of $n$ rooks on this board is $\\textit{peaceful}$ if every row and every column contains exactly one rook. Find the greatest positive integer $k$ such that, for each peaceful configuration of $n$ rooks, there is a $k\\times k$ square which does not contain a rook on any of its $k^2$ squares.", "lean_code": "theorem imo_2014_p2 (n : β„•) (hn : n β‰₯ 2) :\n IsGreatest {(k : β„•) | (k > 0) ∧ βˆ€ r : peaceful_rooks n, βˆƒ i j : Fin n,\n i.val + k - 1 < n ∧ i.val + k - 1 < n ∧\n βˆ€ m n, m.val < k ∧ n.val < k ∧ r.carrier (i + m) (j + n) = false}\n (imo_2014_p2_solution n) := by sorry", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["connective_mismatch", "variable_mismatch"], "meta_tags": [], "gold_explanation": "Original required m<k ∧ n<k for all m,n, which is impossible; implication matches NL. Also had duplicated i.val + k - 1 < n where second should be j.val."}
25
+ {"id": "combibench_imo_2014_p6", "source": "CombiBench", "problem_nl": "A set of lines in the plane is in general position if no two are parallel and no three pass through the same point. A set of lines in general position cuts the plane into regions, some of which have finite area; we call these its finite regions. Prove that for all sufficiently large n, in any set of n lines in general position it is possible to colour at least √n of the lines blue in such a way that none of its finite regions has a completely blue boundary.", "lean_code": "def finite_regions (S : Set (ℝ Γ— ℝ)) (L : Finset (ℝ Γ— ℝ Γ— ℝ)) : Prop :=\n S.Nonempty ∧ Bornology.IsBounded S ∧\n βˆ€ l ∈ L, (βˆ€ p ∈ S, on_line p l) ∨ (βˆ€ p ∈ S, same_side_of_line p l)", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["encoding_issue"], "meta_tags": [], "gold_explanation": "finite_regions is true for any singleton point, making the theorem trivially false. Should define actual finite regions created by the line arrangement. Expert confirmed (Joseph Myers)."}
26
+ {"id": "combibench_imo_2015_p1", "source": "CombiBench", "problem_nl": "We say that a finite set $\\mathcal{S}$ in the plane is balanced if, for any two different points $A$, $B$ in $\\mathcal{S}$, there is a point $C$ in $\\mathcal{S}$ such that $AC=BC$. We say that $\\mathcal{S}$ is centre-free if for any three points $A$, $B$, $C$ in $\\mathcal{S}$, there is no point $P$ in $\\mathcal{S}$ such that $PA=PB=PC$. (1) Show that for all integers $n\\geq 3$, there exists a balanced set consisting of $n$ points. (1) Determine all integers $n\\geq 3$ for which there exists a balanced centre-free set consisting of $n$ points.", "lean_code": "theorem imo_2015_p1 : (βˆ€ n β‰₯ 3, βˆƒ (S : Finset (ℝ Γ— ℝ)), balanced S ∧ S.card = n) ∧\n {n | n β‰₯ 3 ∧ (βˆƒ (S : Finset (ℝ Γ— ℝ)), balanced S ∧ centre_free S ∧ S.card = n)} =\n imo_2015_p1_solution := by sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["type_mismatch", "paper_vs_lean_semantics"], "meta_tags": [], "gold_explanation": "ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean. For balanced/centre-free sets with distance conditions, this fundamentally changes the problem. Expert confirmed (Joseph Myers)."}
27
+ {"id": "combibench_imo_2017_p3", "source": "CombiBench", "problem_nl": "A hunter and an invisible rabbit play a game in the Euclidean plane. The rabbit's starting point, $A_0$, and the hunter's starting point, $B_0$, are the same. After $n-1$ rounds of the game, the rabbit is at point $A_{n-1}$ and the hunter is at point $B_{n-1}$. In the nth round of the game, three things occur in order. (i) The rabbit moves invisibly to a point $A_n$ such that the distance between $A_{n-1}$ and $A_n$ is exactly 1. (ii) A tracking device reports a point $P_n$ to the hunter. The only guarantee provided by the tracking device is that the distance between $P_n$ and $A_n$ is at most 1. (iii) The hunter moves visibly to a point $B_n$ such that the distance between $B_{n-1}$ and $B_n$ is exactly 1. Is it always possible, no matter how the rabbit moves, and no matter what points are reported by the tracking device, for the hunter to choose her moves so that after $10^9$ rounds she can ensure that the distance between her and the rabbit is at most 100?", "lean_code": "theorem imo_2017_p3 (start : ℝ Γ— ℝ) : imo_2017_p3_solution =\n βˆ€ (A : β„• β†’ (Fin 2 β†’ ℝ)), A 0 = ![start.1, start.2] β†’ βˆ€ n, dist (A n) (A (n + 1)) = 1 β†’\n (βˆƒ (P : β„• β†’ (Fin 2 β†’ ℝ)), βˆ€ n > 0, dist (P n) (A n) ≀ 1) β†’\n (βˆƒ (B : β„• β†’ (Fin 2 β†’ ℝ)), B 0 = ![start.1, start.2] ∧ βˆ€ n, dist (B n) (B (n + 1)) = 1 ∧\n dist (A (10 ^ 9)) (B (10 ^9)) ≀ 100) := by sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["type_mismatch", "paper_vs_lean_semantics"], "meta_tags": [], "gold_explanation": "ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean. Hunter/rabbit game with 'distance exactly 1' has different meaning with wrong metric. Expert confirmed (Joseph Myers)."}
28
+ {"id": "combibench_imo_2017_p5", "source": "CombiBench", "problem_nl": "An integer $N \\ge 2$ is given. A collection of $N(N + 1)$ soccer players, no two of whom are of the same height, stand in a row. Sir Alex wants to remove $N(N - 1)$ players from this row leaving a new row of $2N$ players in which the following $N$ conditions hold: ($1$) no one stands between the two tallest players, ($2$) no one stands between the third and fourth tallest players, $\\cdots$ ($N$) no one stands between the two shortest players. Show that this is always possible.", "lean_code": "theorem imo_2017_p5 (N : β„•) (h_N : N β‰₯ 2) (height : Perm (Fin (N * (N + 1)))) :\n βˆƒ kept : Fin (2 * N) β†ͺo Fin (N * (N + 1)),\n βˆ€ i j, Even #{l | height (kept l) < height (kept i)} β†’\n (βˆ€ k, height (kept i) < height (kept k) ↔ height (kept j) ≀ height (kept k)) β†’\n (βˆ€ k, kept i < kept k ↔ kept j ≀ kept k) ∨ (βˆ€ k, kept j < kept k ↔ kept i ≀ kept k) := by sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["formalization_error"], "error_tags": ["encoding_issue", "goal_mismatch"], "meta_tags": [], "gold_explanation": "Original ordering condition replaced with count-of-shorter/no-between constraint; unclear which matches NL."}
29
+ {"id": "combibench_imo_2018_p3", "source": "CombiBench", "problem_nl": "An anti-Pascal triangle is an equilateral triangular array of numbers such that, except for the numbers in the bottom row, each number is the absolute value of the difference of the two numbers immediately below it. For example, the following is an anti-Pascal triangle with four rows which contains every integer from $1$ to $10$ \\[4\\]\\[2\\quad 6\\]\\[5\\quad 7 \\quad 1\\] \\[8\\quad 3 \\quad 10 \\quad 9\\] Does there exist an anti-Pascal triangle with $2018$ rows which contains every integer from $1$ to $1 + 2 + 3 + \\dots + 2018$?", "lean_code": "theorem imo_2018_p3 : imo_2018_p3_solution = βˆƒ l, IsAntiPascal l ∧\n List.range' 1 (βˆ‘ i ∈ Finset.Icc 1 2018, i) = List.insertionSort (Β· ≀ Β·) (List.flatten l) := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["encoding_issue"], "meta_tags": [], "gold_explanation": "Triangle representation changed from lists to indexed function; likely modeling fix but not clearly wrong."}
30
+ {"id": "combibench_imo_2018_p4", "source": "CombiBench", "problem_nl": "A site is any point (x, y) in the plane such that x and y are both positive integers less than or equal to 20. Amy and Ben take turns placing stones. On her turn, Amy places a red stone such that the distance between any two red stones is not equal to √5. Find the greatest K such that Amy can ensure she places at least K red stones.", "lean_code": "-- Site defined as subset of ℝ Γ— ℝ\n-- Problem: ℝ Γ— ℝ uses sup/L∞ metric in Mathlib, not Euclidean\n-- dist((1,0), (2,1)) = max(1,1) = 1 with sup metric\n-- dist((1,0), (2,1)) = √(1Β²+1Β²) = √2 with Euclidean\n-- The \"distance √5\" condition has wrong meaning!", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["type_mismatch", "paper_vs_lean_semantics"], "meta_tags": [], "gold_explanation": "ℝ×ℝ (Prod) uses sup/L∞ metric in Mathlib. The problem requires Euclidean distance for 'distance not equal to √5' (knight's move). With sup metric, √5 distance means something completely different. Expert confirmed (Joseph Myers)."}
31
+ {"id": "combibench_imo_2023_p5", "source": "CombiBench", "problem_nl": "A Japanese triangle consists of 1 + 2 + ... + n circles arranged in an equilateral triangular shape such that for each i = 1, 2, ..., n, the ith row contains exactly i circles. Each circle is colored red or blue. A ninja path starts from a top-row circle and in each step goes to one of the two circles immediately below. Find the greatest k such that in each Japanese triangle there is a ninja path containing at least k red circles.", "lean_code": "def triangleGraph (n : β„•+) : Digraph (Index n) where\n Adj p q :=\n p.atBottomLeft q ∨ p.atBottomRight q ∨\n q.atBottomLeft p ∨ q.atBottomRight p", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["encoding_issue", "wrong_constant"], "meta_tags": [], "gold_explanation": "Digraph edges go both up and down, but ninja paths must go down only. Also Real.log is natural log, not logβ‚‚ as needed. Expert confirmed (Joseph Myers)."}
32
+ {"id": "combibench_imosl_2011_c6", "source": "CombiBench", "problem_nl": "Let $n$ be a positive integer and let $W=\\ldots x_{-1} x_{0} x_{1} x_{2} \\ldots$ be an infinite periodic word consisting of the letters $a$ and $b$. Suppose that the minimal period $N$ of $W$ is greater than $2^{n}$. A finite nonempty word $U$ is said to appear in $W$ if there exist indices $k \\leq \\ell$ such that $U=x_{k} x_{k+1} \\ldots x_{\\ell}$. A finite word $U$ is called ubiquitous if the four words $U a, U b, a U$, and $b U$ all appear in $W$. Prove that there are at least $n$ ubiquitous finite nonempty words.", "lean_code": "theorem imosl_2011_c6 (W : β„€ β†’ Fin 2) (n : β„•+) (N : β„•) (hN : 2 ^ n.1 < N)\n (hW : Function.Periodic W N) (hW' : βˆ€ N' < N, Β¬ Function.Periodic W N') :\n βˆƒ (x : Fin n β†ͺ (Ξ£ k, Fin k β†’ Fin 2)), (βˆ€ i, (x i).1 β‰  0) ∧ (βˆ€ i, ubiquitous W (x i)) := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "Period 0 always makes a function periodic, so forbidding all N'<N including 0 makes the premise impossible."}
33
+ {"id": "combibench_imosl_2015_c6", "source": "CombiBench", "problem_nl": "Let $S$ be a nonempty set of positive integers. We say that a positive integer $n$ is clean if it has a unique representation as a sum of an odd number of distinct elements from $S$. Prove that there exist infinitely many positive integers that are not clean.", "lean_code": "theorem imosl_2015_c6 (S : Set β„•+) : βˆ€ (N : β„•), βˆƒ (m : β„•), N < m ∧ Β¬ clean S m := by sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "NL assumes S nonempty; original allowed empty S (statement may still hold), so mismatch is unclear."}
34
+ {"id": "combibench_usamo_2000_p4", "source": "CombiBench", "problem_nl": "Find the smallest positive integer $n$ such that if $n$ squares of a $1000 \\times 1000$ chessboard are colored, then there will exist three colored squares whose centers form a right triangle with sides parallel to the edges of the board.", "lean_code": "theorem usamo_2000_p4 : IsLeast colored_card usamo_2000_p4_solution.1 := by sorry", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["quantifier_mismatch"], "meta_tags": [], "gold_explanation": "NL requires all size-n colorings force a right triangle; original only required existence of one such coloring."}
35
+ {"id": "formalmath_aime_all_2013_II_1", "source": "FormalMath", "problem_nl": "Time is converted to metric system: 10 metric hours per day, 100 metric minutes per hour. A person wants to wake at the equivalent of 6:36 AM. Find 100A+10B+C where A:BC is the metric time.", "lean_code": "import Mathlib.Tactic\n\ntheorem aime_all_2013_II_1 (A B C : β„•) (hβ‚€ : 0 ≀ A ∧ A < 10) (h₁ : 0 ≀ B ∧ B < 10)\n (hβ‚‚ : 0 ≀ C ∧ C < 10) (h₃ : (6 * 100 + 36) * 10 / (24 * 60) = 100 * A + 10 * B + C) :\n 100 * A + 10 * B + C = 275 := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["misuse_of_concept", "wrong_constant"], "meta_tags": [], "gold_explanation": "Uses Nat division so 6360/1440 truncates to 4; also uses 6*100+36 instead of 6*60+36 for 6:36 AM. Hypothesis can force 100A+10B+C=4, not 275."}
36
+ {"id": "formalmath_aime_all_2017_I_10", "source": "FormalMath", "problem_nl": "Let z be the UNIQUE complex number with properties that (z₃-z₁)/(zβ‚‚-z₁)Β·(z-zβ‚‚)/(z-z₃) is real and Im(z) is greatest possible. Find Re(z).", "lean_code": "import Mathlib\n\ntheorem aime_all_2017_I_10 (z1 z2 z3 z : β„‚) ... (hzz : βˆƒ r : ℝ, ...) (hzim : βˆ€ z', ... β†’ z.im β‰₯ z'.im) : z.re = 56 := by", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "NL specifies a unique maximizer z; the Lean statement (as sketched) does not encode unique existence (βˆƒ!) / a uniqueness hypothesis, only properties of a given z."}
37
+ {"id": "formalmath_olymid-ref-base_3054", "source": "FormalMath", "problem_nl": "Find all positive integers k and n such that k⁴ + nΒ² is divisible by 7^k - 3^n. Prove that the answer is: (k, n) = (2, 4)", "lean_code": "import Mathlib\n\ntheorem olymid_ref_base_3054 (k n : β„•) :\n k > 0 ∧ n > 0 ∧ 7^k - 3^n ∣ k^4 + n^2 ↔ (k = 2 ∧ n = 4) := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["truncation_issue"], "meta_tags": [], "gold_explanation": "In β„•, 7^k - 3^n truncates to 0 when 3^n > 7^k; at (2,4) denominator becomes 0, so '0 ∣ 32' is false and the claimed ↔ fails."}
38
+ {"id": "formalmath_olymid-ref-base_4847", "source": "FormalMath", "problem_nl": "Let t=2016 and p=ln 2. Evaluate βˆ‘_{k=1}^∞ (1 - βˆ‘_{n=0}^{k-1} e^{-t}t^n/n!) (1-p)^{k-1} p", "lean_code": "import Mathlib\n\nopen Real\n\ntheorem olymid_ref_base_4847 (t : ℝ) (p : ℝ) (ht : t = 2016) (hp : p = log 2) :\n βˆ‘' k : β„•, ((1 - βˆ‘ n in Finset.range k, exp (-t) * t ^ n / Nat.factorial n) * (1 - p) ^ (k - 1) * p) =\n 1 - (1 / 2) ^ 2016 := by", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["indexing_mismatch"], "meta_tags": [], "gold_explanation": "NL sums k=1..∞ but Lean uses βˆ‘' k : β„• starting at k=0, adding an extra k=0 term (and k-1 is Nat subtraction, so at k=0 it becomes 0, not βˆ’1)."}
39
+ {"id": "formalmath_olymid-ref-base_5274", "source": "FormalMath", "problem_nl": "Find the smallest positive integer n for which 1!2!β‹―(n-1)! > n!Β²", "lean_code": "import Mathlib\n\nopen Nat BigOperators\n\ntheorem olymid_ref_base_5274 :\n IsLeast {n : β„• | 0 < n ∧ ∏ i in Finset.Icc 1 (n - 1), i ! > (n !) ^ 2} 8 := by", "expected_verdict": "NO", "error_primary": null, "error_secondary": [], "error_tags": [], "meta_tags": [], "gold_explanation": "This appears correctly encoded: product over Icc 1 (n-1) is 1!β‹―(nβˆ’1)!, n>0 is enforced, and 8 is indeed the smallest n satisfying the inequality."}
40
+ {"id": "formalmath_olymid-ref-base_6282", "source": "FormalMath", "problem_nl": "Let n β‰₯ 3. Let a_1 < a_2 < ... < a_n be positive reals with a_{n+1} = a_1. Prove βˆ‘_{k=1}^n (a_k/a_{k+1}) > βˆ‘_{k=1}^n (a_{k+1}/a_k).", "lean_code": "import Mathlib\n\nopen Real\n\ntheorem olymid_ref_base_6282 {n : β„•} (hn : 3 ≀ n) (a : Fin (n + 1) β†’ ℝ)\n (ha : StrictMono a) (hpos : βˆ€ i, 0 < a i) (han : a n = a 0) :\n βˆ‘ k, a k / a (k + 1) > βˆ‘ k, a (k + 1) / a k := by", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["premise_translation_error", "indexing_mismatch"], "meta_tags": [], "gold_explanation": "StrictMono a on Fin(n+1) implies a 0 < … < a n, but also assumes a n = a 0; premises become inconsistent and mis-encode the cyclic condition a_{n+1}=a_1."}
41
+ {"id": "formalmath_olymid-ref-base_8963", "source": "FormalMath", "problem_nl": "The Fibonacci numbers F_0, F_1, F_2, ... are defined by F_0=0, F_1=1, F_{n+1}=F_n+F_{n-1}. Given n β‰₯ 2, find the smallest size of a set S of INTEGERS such that for every k=2,...,n there exist x,y ∈ S with x-y=F_k.", "lean_code": "import Mathlib\n\ndef fib (n : β„•) : β„• := match n with\n| 0 => 0\n| 1 => 1\n| n + 2 => fib (n + 1) + fib n\n\ntheorem olymid_ref_base_8963 (n : β„•) (hn : 2 ≀ n) :\n IsLeast {k | βˆƒ S : Finset β„•, S.card = k ∧ βˆ€ k ∈ Finset.Icc 2 n, βˆƒ x ∈ S, βˆƒ y ∈ S, x - y = fib k} (Nat.ceil (n / 2) + 1) := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["type_mismatch", "truncation_issue"], "meta_tags": [], "gold_explanation": "NL needs a set of integers and differences xβˆ’y with sign; Lean uses Finset β„• and Nat subtraction x-y, which can't represent negative differences and truncates when y>x."}
42
+ {"id": "formalmath_olymid_ref_base_2137", "source": "FormalMath", "problem_nl": "Let a₁,...,a₂₀₁₉ be positive integers. Prove: βˆƒ real x such that aα΅’ = ⌊ixβŒ‹ for all i ∈ {1,...,2019} iff for all i,j with i+j ≀ 2019, aα΅’ + aβ±Ό ≀ aα΅’β‚Šβ±Ό ≀ aα΅’ + aβ±Ό + 1.", "lean_code": "import Mathlib\n\ntheorem olymid_ref_base_2137 (a : Fin 2019 β†’ β„€) (ha : βˆ€ i, 0 < a i) :\n (βˆƒ x : ℝ, βˆ€ i, a i = ⌊i * xβŒ‹) ↔\n (βˆ€ i j, i + j ≀ 2019 β†’ a i + a j ≀ a (i + j) ∧ a (i + j) ≀ a i + a j + 1) := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["domain_of_variables_mismatch", "indexing_mismatch", "bound_mismatch"], "meta_tags": [], "gold_explanation": "Uses Fin 2019 indices (includes 0, wraps on addition) but NL uses 1..2019 with ordinary addition; i=0 forces ⌊0*xβŒ‹=0 contradicting positivity, and (i+j) in Fin wraps mod 2019 rather than staying ≀2019."}
43
+ {"id": "formalmath_omni_theorem_131", "source": "FormalMath", "problem_nl": "What is the smallest integer n, greater than one, for which the root-mean-square of the first n positive integers is an integer? The RMS is defined as sqrt((a_1Β² + ... + a_nΒ²)/n).", "lean_code": "import Mathlib\n\nopen Real\n\nnoncomputable def sumOfSquares (n : β„•) : β„• := βˆ‘ k in Finset.Icc 1 n, k ^ 2\n\ntheorem omni_theorem_131 :\n IsLeast {n | 1 < n ∧ βˆƒ k : β„€, sqrt (sumOfSquares n / n) = k} 337 := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["misuse_of_concept"], "meta_tags": [], "gold_explanation": "RMS needs real division sqrt((βˆ‘k^2)/n), but Lean computes Nat division sumOfSquares n / n first (truncates) then coerces to ℝ for sqrt."}
44
+ {"id": "formalmath_omni_theorem_1586", "source": "FormalMath", "problem_nl": "Let {a_n}_{nβ‰₯1} be arithmetic and {g_n}_{nβ‰₯1} be geometric such that first four terms of {a_n+g_n} are 0,0,1,0. Find the 10th term.", "lean_code": "import Mathlib\n\ntheorem omni_theorem_1586 (a g : β„• β†’ ℝ) (ha : βˆƒ d, βˆ€ n, a n = a 1 + d * (n - 1))\n (hg : βˆƒ r, βˆ€ n, g n = g 1 * r ^ (n - 1)) (h : a 1 + g 1 = 0) (h' : a 2 + g 2 = 0)\n (h'' : a 3 + g 3 = 1) (h''' : a 4 + g 4 = 0) :\n a 10 + g 10 = -54 := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["domain_of_variables_mismatch", "truncation_issue"], "meta_tags": [], "gold_explanation": "Sequences are intended for nβ‰₯1, but ha/hg quantify βˆ€ n:β„• with (n-1) using Nat subtraction; at n=0 this forces a0=a1 and g0=g1, adding unintended constraints."}
45
+ {"id": "formalmath_omni_theorem_2830", "source": "FormalMath", "problem_nl": "Find quadratic polynomials f(x) = axΒ² + bx + c where a,b,c are positive integers, p<q are primes, f(p)=f(q)=17, f(p+q)=47. Find sum of f(pq) mod 100.", "lean_code": "import Mathlib\n\ntheorem omni_theorem_2830 :\n (βˆ‘αΆ  x ∈ {x | βˆƒ a b c p q : β„•, a > 0 ∧ p.Prime ∧ q.Prime ∧ p < q ∧ x = a * (p * q) ^ 2 + b * (p * q) + c ∧\n a * p ^ 2 + b * p + c = 17 ∧ a * q ^ 2 + b * q + c = 17 ∧ a * (p + q) ^ 2 + b * (p + q) + c = 47}, x) % 100 = 71 := by", "expected_verdict": "YES", "error_primary": "problem_statement_error", "error_secondary": [], "error_tags": ["unprovable_problem"], "meta_tags": [], "gold_explanation": "As written ('a,b,c are positive integers'), the constraints force b = βˆ’a(p+q) < 0, so no solutions exist; likely the NL intended b to be an integer (not necessarily positive)."}
46
+ {"id": "formalmath_omni_theorem_2926", "source": "FormalMath", "problem_nl": "What is the smallest integer that can be placed in the box so that 1/2 < β–‘/9? Prove that the answer is: 5", "lean_code": "import Mathlib\n\ntheorem omni_theorem_2926 : IsLeast {n | 1 / 2 < n / 9} 5 := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["misuse_of_concept"], "meta_tags": [], "gold_explanation": "Inferred type is β„•, so 1/2=0 and n/9 is Nat division; predicate becomes 0 < n/9, whose least solution is 9, not 5."}
47
+ {"id": "formalmath_omni_theorem_4006", "source": "FormalMath", "problem_nl": "Let S(n) be the sum of the digits of the positive integer n. Find all n such that S(n)(S(n)-1) = n-1. Prove that the answer is: n ∈ {1, 13, 43, 91, 157}", "lean_code": "import Mathlib\n\ndef S : β„• β†’ β„•\n| n => (Nat.digits 10 n).sum\n\ntheorem omni_theorem_4006 {n : β„•} :\n (S n) * (S n - 1) = n - 1 ↔ n = 1 ∨ n = 13 ∨ n = 43 ∨ n = 91 ∨ n = 157 := by", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["base_case_missing"], "meta_tags": [], "gold_explanation": "NL says positive n, but Lean allows n=0; then (S 0)*(S 0 - 1)=0=(0-1) in β„•, so LHS true while RHS 'n∈{1,13,43,91,157}' is false."}
48
+ {"id": "formalmath_quantitative_reasoning_zh_blue_41", "source": "FormalMath", "problem_nl": "Given M = {x | x = aΒ² + 1, a ∈ β„•*}, N = {x | x = bΒ² - 4b + 5, b ∈ β„•*}, prove M ⊊ N. The proof shows 1 ∈ N (at b=2: 4-8+5=1) but 1 βˆ‰ M.", "lean_code": "import Mathlib\n\ntheorem quantitative_reasoning_zh_blue_41 :\n {x : β„• | βˆƒ a : β„•, 0 < a ∧ x = a^2 + 1} βŠ‚ {x : β„• | βˆƒ b : β„•, 0 < b ∧ x = b^2 - 4 * b + 5} := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["truncation_issue", "encoding_issue"], "meta_tags": [], "gold_explanation": "b^2 - 4*b + 5 is computed in β„• with truncating subtraction; the NL witness b=2 gives 1, but Lean gives 5, so N is not the intended set."}
49
+ {"id": "formalmath_quantitative_reasoning_zh_blue_891", "source": "FormalMath", "problem_nl": "Given 0 ≀ x_0 < 1, the sequence {x_n} satisfies x_{n+1} = 2x_n - 1 if 1/2 ≀ x_n < 1, else x_{n+1} = 2x_n if 0 ≀ x_n < 1/2. If x_5 = x_0, how many such sequences exist? Answer: 31", "lean_code": "import Mathlib\n\nopen Real\nopen scoped BigOperators\n\ntheorem quantitative_reasoning_zh_blue_891 :\n Set.ncard {x : β„• β†’ ℝ | βˆƒ x0 : ℝ, 0 ≀ x0 ∧ x0 < 1 ∧\n (βˆ€ n : β„•, x (n + 1) = if 1 / 2 ≀ x n ∧ x n < 1 then 2 * x n - 1 else 2 * x n) ∧\n x 5 = x0} = 31 := by", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Does not enforce x 0 = x0 and does not maintain the invariant x n ∈ [0,1); the piecewise recurrence is only correct under those missing constraints."}
50
+ {"id": "formalmath_theorem_proving_zh_blue_548", "source": "FormalMath", "problem_nl": "Find the maximum cardinality of a set S of positive integers ≀100 such that for any two distinct elements a,b ∈ S: (1) there exists c ∈ S with gcd(a,c)=1 and gcd(b,c)=1, and (2) there exists d ∈ S with dβ‰ a, dβ‰ b, gcd(a,d)>1, gcd(b,d)>1. Solution proves |S|_max = 72.", "lean_code": "import Mathlib\n\ntheorem algebra_587982 :\n IsGreatest {n | βˆƒ S : Finset β„•, S.card = n ∧\n (βˆ€ x ∈ S, x ≀ 100) ∧\n (βˆ€ a ∈ S, βˆ€ b ∈ S, a β‰  b β†’ βˆƒ c ∈ S, Nat.gcd a c = 1 ∧ Nat.gcd b c = 1) ∧\n (βˆ€ a ∈ S, βˆ€ b ∈ S, a β‰  b β†’ βˆƒ d ∈ S, d β‰  a ∧ d β‰  b ∧ Nat.gcd a d > 1 ∧ Nat.gcd b d > 1)} 54 := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["wrong_constant"], "meta_tags": ["answer_handling_mismatch"], "gold_explanation": "Lean claims the maximum is 54, but the provided solution text claims |S|_max = 72; the constant in IsGreatest is wrong."}
51
+ {"id": "formalmath_theorem_proving_zh_blue_614", "source": "FormalMath", "problem_nl": "If the sequence {a_n} satisfies that for any n ∈ β„•*, βˆ‘_{d|n} a_d = 2^n, prove that n | a_n.", "lean_code": "import Mathlib\n\ntheorem algebra_56552 {a : β„• β†’ β„•} (ha : βˆ€ n, βˆ‘ d in n.divisors, a d = 2 ^ n) :\n βˆ€ n, n ∣ a n := by", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["base_case_missing"], "meta_tags": [], "gold_explanation": "NL quantifies nβˆˆβ„•* but Lean has βˆ€ n including 0; Nat.divisors 0 is empty in Mathlib, so ha 0 would require 0=2^0=1 (inconsistent), making the theorem vacuous."}
52
+ {"id": "formalmath_theorem_proving_zh_blue_671", "source": "FormalMath", "problem_nl": "Let F be a finite set of integers satisfying: (1) for any x ∈ F, there exist y,z ∈ F with x = y + z; (2) there exists n ∈ β„•* such that for any 1 ≀ k ≀ n and any x_1,...,x_k ∈ F, we have βˆ‘x_i β‰  0. Prove |F| β‰₯ 2n + 2.", "lean_code": "import Mathlib\n\ntheorem theorem_proving_zh_blue_671 {F : Finset β„€} (hF : βˆ€ x ∈ F, βˆƒ y z, x = y + z)\n (hn : βˆƒ n : β„•, 0 < n ∧ βˆ€ k ∈ Finset.Icc 1 n, βˆ€ x : Fin k β†’ β„€,\n (βˆ€ i, x i ∈ F) β†’ βˆ‘ i, x i β‰  0) :\n F.card β‰₯ 2 * n + 2 := by", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": ["specification_error"], "error_tags": ["variable_mismatch", "incomplete_spec"], "meta_tags": [], "gold_explanation": "Conclusion uses free n not bound by the βˆƒn in hn; also hF forgets to require y,z ∈ F (it only states βˆƒ y z with x=y+z)."}
53
+ {"id": "formalmath_theorem_proving_zh_blue_681", "source": "FormalMath", "problem_nl": "Let f(m,n) satisfy f(1,n) = f(m,1) = 1 (m,n ∈ β„•*), and when m,n β‰₯ 2, f(m,n) ≀ f(m,n-1) + f(m-1,n). Prove f(m,n) ≀ C(m+n-2, m-1).", "lean_code": "import Mathlib\n\ntheorem algebra_539172 {f : β„• β†’ β„• β†’ β„•}\n (h₁ : βˆ€ n, f 1 n = 1) (hβ‚‚ : βˆ€ m, f m 1 = 1)\n (h₃ : βˆ€ m n, 2 ≀ m β†’ 2 ≀ n β†’ f m n ≀ f m (n - 1) + f (m - 1) n) :\n βˆ€ m n, f m n ≀ (m + n - 2).choose (m - 1) := by", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "NL is for m,nβˆˆβ„•* but Lean concludes βˆ€ m n without positivity constraints; this introduces m=0 or n=0 cases where (m+n-2).choose(m-1) and n-1 style terms are not the intended spec."}
54
+ {"id": "formalmath_u-math_684", "source": "FormalMath", "problem_nl": "An epidemiological study of the spread of a certain influenza strain that hit a small school population found that the total number of students, P, who contracted the flu t days after it broke out is given by the model P = tΒ² - 12t + 180, where 1 ≀ t ≀ 6. Find the day that 160 students had the flu.", "lean_code": "import Mathlib\n\ntheorem u_math_684 (t : β„•) (ht : 1 ≀ t ∧ t ≀ 6) :\n let P := t ^ 2 - 12 * t + 180\n P = 160 ↔ t = 2 := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["truncation_issue"], "meta_tags": [], "gold_explanation": "Uses β„• subtraction in t^2 - 12*t; at t=2, (4-24) truncates to 0 so P=180, not 160, so the ↔ fails."}
55
+ {"id": "formalmath_u-math_921", "source": "FormalMath", "problem_nl": "Compute the integral: ∫ -1/(3Β·sin(x/3)⁢) dx. Answer involves +C.", "lean_code": "import Mathlib\n\ntheorem u_math_921 : ∫ x, -1 / (3 * sin (x / 3) ^ 6) =\n cos (x / 3) / (5 * sin (x / 3) ^ 5) -\n 4 / 15 * (-cos (x / 3) / sin (x / 3) ^ 3 - 2 / tan (x / 3)) + C := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "variable_mismatch"], "meta_tags": [], "gold_explanation": "Lean's '∫ x, …' is a definite integral (not an antiderivative), and the RHS contains free x and free C (autoImplicit/scope bug), so it does not represent '+C' indefinite integration."}
56
+ {"id": "formalmath_u-math_945", "source": "FormalMath", "problem_nl": "Compute the integral: ∫ 10/sin(4x)^6 dx", "lean_code": "import Mathlib\n\nopen Real Set\nopen scoped BigOperators\n\ntheorem u_math_945 : ∫ x, 10 / sin (4 * x) ^ 6 =\n - (cot (4 * x)) ^ 5 / 2 - 5 / 2 * cot (4 * x) - 5 / 3 * (cot (4 * x)) ^ 3 + C := by", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "variable_mismatch"], "meta_tags": [], "gold_explanation": "Same calculus issue: '∫ x, …' is a definite integral, and the RHS contains free x and free C, so it does not formalize an indefinite integral '+C'."}
57
+ {"id": "proofnet_artin_exercise_11_4_6b", "source": "ProofNet", "problem_nl": "Prove that $x^2+1$ is irreducible in $\\mathbb{F}_7$", "lean_code": "theorem exercise_11_4_6b {F : Type*} [Field F] [Fintype F] (hF : card F = 31) :\n Irreducible (X ^ 3 - 9 : Polynomial F) := sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": ["formalization_error"], "error_tags": ["incorrect_spec", "goal_mismatch"], "meta_tags": [], "gold_explanation": "Original assumes card F = 31 and proves Irreducible (X^3-9), but NL is about F_7 and x^2+1."}
58
+ {"id": "proofnet_axler_exercise_3_8", "source": "ProofNet", "problem_nl": "Suppose that $V$ is finite dimensional and that $T \\in \\mathcal{L}(V, W)$. Prove that there exists a subspace $U$ of $V$ such that $U \\cap \\operatorname{null} T=\\{0\\}$ and range $T=\\{T u: u \\in U\\}$.", "lean_code": "theorem exercise_3_8 {F V W : Type*} [AddCommGroup V]\n [AddCommGroup W] [Field F] [Module F V] [Module F W]\n (L : V β†’β‚—[F] W) :\n βˆƒ U : Submodule F V, U βŠ“ (ker L) = βŠ₯ ∧\n (range L = range (domRestrict L U)) := sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "NL assumes V is finite-dimensional, but original Lean omits [FiniteDimensional F V]."}
59
+ {"id": "proofnet_axler_exercise_6_16", "source": "ProofNet", "problem_nl": "Suppose $U$ is a subspace of $V$. Prove that $U^{\\perp}=\\{0\\}$ if and only if $U=V$", "lean_code": "theorem exercise_6_16 {K V : Type*} [RCLike K] [NormedAddCommGroup V] [InnerProductSpace K V]\n {U : Submodule K V} :\n U.orthogonal = βŠ₯ ↔ U = ⊀ := sorry", "expected_verdict": "NO", "error_primary": null, "error_secondary": [], "error_tags": [], "meta_tags": [], "gold_explanation": "No semantic issue: U.orthogonal = bot iff U = top matches 'U^perp = {0} iff U=V'."}
60
+ {"id": "proofnet_axler_exercise_6_3", "source": "ProofNet", "problem_nl": "Prove that $\\left(\\sum_{j=1}^{n} a_{j} b_{j}\\right)^{2} \\leq\\left(\\sum_{j=1}^{n} j a_{j}{ }^{2}\\right)\\left(\\sum_{j=1}^{n} \\frac{b_{j}{ }^{2}}{j}\\right)$ for all real numbers $a_{1}, \\ldots, a_{n}$ and $b_{1}, \\ldots, b_{n}$.", "lean_code": "theorem exercise_6_3 {n : β„•} (a b : Fin n β†’ ℝ) :\n (βˆ‘ i, a i * b i) ^ 2 ≀ (βˆ‘ i : Fin n, i * a i ^ 2) * (βˆ‘ i, b i ^ 2 / i) := sorry", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["indexing_mismatch"], "meta_tags": [], "gold_explanation": "NL sums j=1..n; original uses i:Fin n (0..n-1), so weights use i not (i+1) and introduces division by i=0."}
61
+ {"id": "proofnet_dummit_foote_exercise_4_5_13", "source": "ProofNet", "problem_nl": "Prove that a group of order 56 has a normal Sylow $p$-subgroup for some prime $p$ dividing its order.", "lean_code": "theorem exercise_4_5_13 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 56) :\n βˆƒ (p : β„•) (P : Sylow p G), P.Normal := sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Same as 4_5_14: missing p.Prime and p | card G; otherwise trivial p=1-style witnesses are allowed."}
62
+ {"id": "proofnet_dummit_foote_exercise_4_5_14", "source": "ProofNet", "problem_nl": "Prove that a group of order 312 has a normal Sylow $p$-subgroup for some prime $p$ dividing its order.", "lean_code": "theorem exercise_4_5_14 {G : Type*} [Group G] [Fintype G]\n (hG : card G = 312) :\n βˆƒ (p : β„•) (P : Sylow p G), P.Normal := sorry", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec"], "meta_tags": [], "gold_explanation": "Original misses the constraints 'p is prime' and 'p | |G|'; otherwise p=1 gives a trivial normal Sylow 1-subgroup-style witness."}
63
+ {"id": "proofnet_herstein_exercise_2_2_5", "source": "ProofNet", "problem_nl": "Let $G$ be a group in which $(a b)^{3}=a^{3} b^{3}$ and $(a b)^{5}=a^{5} b^{5}$ for all $a, b \\in G$. Show that $G$ is abelian.", "lean_code": "def exercise_2_2_5 {G : Type*} [Group G]\n (h : βˆ€ (a b : G), (a * b) ^ 3 = a ^ 3 * b ^ 3 ∧ (a * b) ^ 5 = a ^ 5 * b ^ 5) :\n CommGroup G := sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["paper_vs_lean_semantics"], "meta_tags": [], "gold_explanation": "Conclusion 'CommGroup G' can mean existence of some commutative group structure on the type G, not commutativity of the given [Group G] multiplication; NL needs forall a b, a*b=b*a."}
64
+ {"id": "proofnet_herstein_exercise_2_8_15", "source": "ProofNet", "problem_nl": "Prove that if $p > q$ are two primes such that $q \\mid p - 1$, then any two nonabelian groups of order $pq$ are isomorphic.", "lean_code": "def exercise_2_8_15 {G H: Type*} [Fintype G] [Group G] [Fintype H]\n [Group H] {p q : β„•} (hp : Nat.Prime p) (hq : Nat.Prime q)\n (h : p > q) (h1 : q ∣ p - 1) (hG : card G = p*q) (hH : card G = p*q) :\n G ≃* H := sorry", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": ["specification_error"], "error_tags": ["variable_mismatch", "missing_hypothesis"], "meta_tags": [], "gold_explanation": "Original typo uses hH : card G = p*q instead of card H; also missing 'G nonabelian' and 'H nonabelian' hypotheses required by NL."}
65
+ {"id": "proofnet_ireland_rosen_exercise_2_4", "source": "ProofNet", "problem_nl": "If $n$ is a positive integer such that $n \\equiv 7 \\pmod{8}$, show that $n$ is not a sum of three squares.", "lean_code": "theorem exercise_2_4 {n : β„•} (hn : n % 8 = 7) :\n Β¬βˆƒ (a b c : β„€), n = a^2 + b^2 + c^2 := sorry", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["type_mismatch"], "meta_tags": ["tooling_error"], "gold_explanation": "Original equates n:N with a^2+b^2+c^2:Z; needs explicit cast (n:Z). Likely does not typecheck as written."}
66
+ {"id": "proofnet_ireland_rosen_exercise_4_11", "source": "ProofNet", "problem_nl": "Prove that $1^{k}+2^{k}+\\cdots+(p-1)^{k} \\equiv 0(p)$ if $p-1 \\nmid k$ and $-1(p)$ if $p-1 \\mid k$.", "lean_code": "theorem exercise_4_11 {p : β„•} (hp : p.Prime) (k s: β„•)\n (s := βˆ‘ n : Fin p, (n : β„•) ^ k) :\n ((Β¬ p - 1 ∣ k) β†’ s ≑ 0 [MOD p]) ∧ (p - 1 ∣ k β†’ s ≑ 0 [MOD p]) := sorry", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": ["definition_mismatch"], "error_tags": ["indexing_mismatch", "wrong_constant"], "meta_tags": [], "gold_explanation": "Original sums over Fin p (includes 0, excludes 1-indexing) and states the divisible case is =0, but NL says it should be = -1 (mod p)."}
67
+ {"id": "proofnet_munkres_exercise_38_6", "source": "ProofNet", "problem_nl": "Let $X$ be completely regular. Show that $X$ is connected if and only if the Stone-Čech compactification of $X$ is connected.", "lean_code": "theorem exercise_38_6 {X : Type*}\n (X : Type*) [TopologicalSpace X] [RegularSpace X]\n (h : βˆ€ x A, IsClosed A ∧ Β¬ x ∈ A β†’\n βˆƒ (f : X β†’ I), Continuous f ∧ f x = (1 : I) ∧ f '' A = {0}) :\n IsConnected (univ : Set X) ↔ IsConnected (univ : Set (StoneCech X)) := sorry", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["encoding_issue"], "meta_tags": ["code_style_issue"], "gold_explanation": "Original 'completely regular' hypothesis uses f '' A = {0}, which fails for A=empty (image is empty), so the encoding is wrong/vacuous; also has redundant/shadowed X binder."}
68
+ {"id": "proofnet_rudin_exercise_2_28", "source": "ProofNet", "problem_nl": "Prove that every closed set in a separable metric space is the union of a (possibly empty) perfect set and a set which is at most countable.", "lean_code": "theorem exercise_2_28 (X : Type*) [MetricSpace X] [SeparableSpace X]\n (A : Set X) (hA : IsClosed A) :\n βˆƒ P₁ Pβ‚‚ : Set X, A = P₁ βˆͺ Pβ‚‚ ∧ IsPerfect P₁ ∧ Set.Countable Pβ‚‚ := sorry", "expected_verdict": "NO", "error_primary": null, "error_secondary": [], "error_tags": [], "meta_tags": [], "gold_explanation": "No semantic issue: statement matches NL (perfect set + countable set decomposition of closed sets in separable metric spaces)."}
69
+ {"id": "proofnet_rudin_exercise_3_21", "source": "ProofNet", "problem_nl": "If $\\left\\{E_{n}\\right\\}$ is a sequence of closed nonempty and bounded sets in a complete metric space $X$, if $E_{n} \\supset E_{n+1}$, and if $\\lim _{n \\rightarrow \\infty} \\operatorname{diam} E_{n}=0,$ then $\\bigcap_{1}^{\\infty} E_{n}$ consists of exactly one point.", "lean_code": "theorem exercise_3_21\n {X : Type*} [MetricSpace X] [CompleteSpace X]\n (E : β„• β†’ Set X)\n (hEcl : βˆ€ n, IsClosed (E n))\n (hEne : βˆ€ n, (E n).Nonempty)\n (hEbdd : βˆ€ n, Bornology.IsBounded (E n))\n (hE : βˆ€ n, E n βŠ‡ E (n + 1))\n (hE' : Tendsto (Ξ» n => Metric.diam (E n)) atTop (𝓝 0)) :\n βˆƒ a, Set.iInter E = {a} := sorry", "expected_verdict": "NO", "error_primary": null, "error_secondary": [], "error_tags": [], "meta_tags": [], "gold_explanation": "No semantic issue: standard Cantor intersection theorem variant is correctly expressed."}
70
+ {"id": "proverbench_aime_2024ii_p13", "source": "ProverBench", "problem_nl": "Let Ο‰β‰ 1 be a 13th root of unity. Find the remainder when ∏_{k=0}^{12}(2-2Ο‰^k+Ο‰^{2k}) is divided by 1000. Show that it is 321.", "lean_code": "import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology Rat\n\ntheorem aime_2024ii_p13 (Ο‰ : β„‚) (hβ‚€ : Ο‰ = Complex.exp (2 * ↑Real.pi * Complex.I / 13)) :\n (∏ k in Finset.range 13, (2 - 2 * Ο‰ ^ k + Ο‰ ^ (2 * k))) % 1000 = 321 := by", "expected_verdict": "YES", "error_primary": "domain_mismatch", "error_secondary": [], "error_tags": ["type_mismatch"], "meta_tags": ["tooling_error"], "gold_explanation": "Applies % 1000 to a complex-valued product; the intended workflow is: prove the product is an integer N, then take N % 1000. As written it's ill-typed or meaningless."}
71
+ {"id": "proverbench_calculus__p1", "source": "ProverBench", "problem_nl": "The integral of \\[(x^3 - 3cosx) dx\\] is \\[\\frac{x^4}{4} - 3sinx + C\\].", "lean_code": "import Mathlib\n\n/-\nThe integral of \\[(x^3 - 3cosx) dx\\] is \\[\\frac{x^4}{4} - 3sinx + C\\].\n-/\n\n-- Define the function f(x)\nnoncomputable def f (x : ℝ) : ℝ := x^3 - 3 * Real.cos x\n\n-- Define the integral of f(x)\nnoncomputable def integralf (x : ℝ) : ℝ := (x^4 / 4) - 3 * Real.sin x\n\n-- Theorem statement\n\ntheorem integral_f_eq_integralF_plus_C (x C : ℝ):\n ∫ x , f x = integralf x + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "quantifier_mismatch"], "meta_tags": [], "gold_explanation": "Lean uses ∫ x, f x (a definite integral over ℝ with measure), not an indefinite integral/antiderivative; also C is treated as arbitrary, but the constant of integration should be existential/handled via derivatives."}
72
+ {"id": "proverbench_calculus__p10", "source": "ProverBench", "problem_nl": "The integral \\(\\displaystyle \\int \\frac{1}{\\sqrt{81-x^2}}\\,dx\\)\nis equivalent to \\(\\arcsin\\left(\\frac{x}{9}\\right)+C\\).", "lean_code": "import Mathlib\n\n/-\nThe integral \\(\\displaystyle \\int \\frac{1}{\\sqrt{81-x^2}}\\,dx\\)\nis equivalent to \\(\\arcsin\\left(\\frac{x}{9}\\right)+C\\).\n-/\n\nopen Real\n\n\ntheorem integral_of_one_over_sqrt_eighty_one_minus_x_squared (x C : ℝ):\n ∫ x, 1 / sqrt (81 - x^2) = arcsin (x / 9) + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "quantifier_mismatch"], "meta_tags": [], "gold_explanation": "Mis-models an indefinite integral as a definite integral; C is treated as an arbitrary parameter rather than part of an antiderivative characterization."}
73
+ {"id": "proverbench_calculus__p12", "source": "ProverBench", "problem_nl": "The integral of \\(\\displaystyle \\frac{1}{x^2-9}\\,dx\\) is equal to \\(\\frac{1}{6}\\ln\\left|\\frac{x-3}{x+3}\\right|+C\\).", "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\displaystyle \\frac{1}{x^2-9}\\,dx\\) is equal to \\(\\frac{1}{6}\\ln\\left|\\frac{x-3}{x+3}\\right|+C\\).\n-/\n\nopen Real\n\n\ntheorem integral_of_rational_function_with_log :\n βˆ€ (x : ℝ), x β‰  3 ∧ x β‰  -3 β†’\n (∫ (dx : ℝ), 1 / (x^2 - 9)) = (1 / 6) * log (abs ((x - 3) / (x + 3))) + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "variable_mismatch"], "meta_tags": ["autoimplicit_bug"], "gold_explanation": "C is unbound; also the integral is over dx but the integrand doesn't depend on dx (it depends on x), so it's not an antiderivative statement and is semantically wrong."}
74
+ {"id": "proverbench_calculus__p14", "source": "ProverBench", "problem_nl": "The value of the integral ∭_D e^{xΒ²+yΒ²} dV where D is bounded by planes y=0, z=0, y=x, and paraboloid z=4-xΒ²-yΒ² is (e^4-5)Ο€/8.", "lean_code": "import Mathlib\n\nopen MeasureTheory\n\nvariable {D : Type} [MeasurableSpace D] [MeasureSpace D]\nvariable (D : Set (Fin 3 β†’ ℝ))\n\ntheorem integral_value_over_region (D : Set (Fin 3 β†’ ℝ))\n (hD : D = {p : Fin 3 β†’ ℝ | p 2 β‰₯ 0 ∧ p 3 β‰₯ 0 ∧ p 2 ≀ p 1 ∧ p 3 ≀ 4 - p 1^2 - p 2^2}) :\n let integrand := fun p : Fin 3 β†’ ℝ => Real.exp (p 1^2 + p 2^2)\n ∫ p in D, integrand p = (Real.exp 4 - 5) * Ο€ / 8 :=", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["indexing_mismatch"], "meta_tags": [], "gold_explanation": "Uses p 3 with p : Fin 3 β†’ ℝ; in Lean (3 : Fin 3) = 0, so 'p 3' is actually p 0, breaking the intended coordinate constraints for the 3D region."}
75
+ {"id": "proverbench_calculus__p15", "source": "ProverBench", "problem_nl": "Prove that \\(\\displaystyle \\lim_{x\\to 0}\\frac{1-\\cos x}{x^2}=\\frac12\\).", "lean_code": "import Mathlib\n\n/-\nProve that \\(\\displaystyle \\lim_{x\\to 0}\\frac{1-\\cos x}{x^2}=\\frac12\\).\n-/\n\nopen Filter Topology\n\n\n/-- Version 1: Using explicit domain restriction -/\ntheorem limit_of_cosine_difference_quotient :\n Β¬ (Tendsto (fun x => if x β‰  0 then (1 - Real.cos x) / x^2 else 1/2) (𝓝 0) (𝓝 (1/2)) ) :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": [], "error_tags": ["connective_mismatch"], "meta_tags": [], "gold_explanation": "The Lean statement negates the limit (Β¬ Tendsto ...), while the NL statement asserts the limit equals 1/2."}
76
+ {"id": "proverbench_calculus__p17", "source": "ProverBench", "problem_nl": "The integral \\(\\int \\frac{1}{\\cos^2 x} \\, dx\\) equals to \\(\\tan x + C\\).", "lean_code": "import Mathlib\n\n/-\nThe integral \\(\\int \\frac{1}{\\cos^2 x} \\, dx\\) equals to \\(\\tan x + C\\).\n-/\n\n-- Define the constant C for the integration constant\nvariable (C : ℝ)\n\n-- Theorem: The indefinite integral of 1/cos^2(x) with respect to x is tan(x) + C.\n\ntheorem integral_of_one_over_cos_sq (x : ℝ) :\n∫ (x : ℝ), 1 / (Real.cos x ^ 2) = Real.tan x + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "quantifier_mismatch"], "meta_tags": [], "gold_explanation": "Indefinite integral is mis-modeled as ∫ x, ... (definite integral), and '+ C' is encoded as an arbitrary parameter rather than antiderivative up to a constant."}
77
+ {"id": "proverbench_calculus__p3", "source": "ProverBench", "problem_nl": "The local maximum of the function f(x)=x^4/4 - x^3/3 - 2x^2 + 4x + 5 on the interval [-3,3] is 41/4 and is attained at x=3, and the local minimum is -13/3 and it is attained for x=-2.", "lean_code": "import Mathlib\n\nnoncomputable def f (x : ℝ) : ℝ := x^4 / 4 - x^3 / 3 - 2 * x^2 + 4 * x + 5\n\ntheorem extrema_on_interval :\n Β¬ ((βˆƒ x : ℝ, x ∈ Set.Icc (-3) 3 ∧ (βˆ€ y ∈ Set.Icc (-3) 3, f y ≀ f x) ∧ f x = 41/4 ∧ x = 3) ∧\n (βˆƒ z : ℝ, z ∈ Set.Icc (-3) 3 ∧ (βˆ€ y ∈ Set.Icc (-3) 3, f z ≀ f y) ∧ f z = - 13 / 3 ∧ z = -2)) :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": [], "error_tags": ["connective_mismatch"], "meta_tags": [], "gold_explanation": "The Lean statement is negated (Β¬(...)) but NL asserts the extrema claims are true; it proves the opposite."}
78
+ {"id": "proverbench_calculus__p5", "source": "ProverBench", "problem_nl": "The integral of \\(\\int \\frac{1}{x^2+1} \\, dx\\) is \\(\\arctan x + C\\).", "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\int \\frac{1}{x^2+1} \\, dx\\) is \\(\\arctan x + C\\).\n-/\n\nopen Real\n\nnoncomputable def f (x:ℝ ):ℝ := 1 / (x^2 + 1)\n\n\ntheorem integral_of_inv_sq_plus_one (x C: ℝ) :\n ∫ x , f x = arctan x + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "quantifier_mismatch"], "meta_tags": [], "gold_explanation": "Indefinite integral '= arctan x + C' is not expressed by ∫ x, f x = ...; C is treated as arbitrary rather than handled via derivative/βˆƒ constant."}
79
+ {"id": "proverbench_calculus__p8", "source": "ProverBench", "problem_nl": "The surface integral ∬_G (xΒ²+yΒ²+2z) dS, where G is the part of the paraboloid z=7-xΒ²-yΒ² that lies above the xy-plane is equal to (957√29-47)/20 Ο€.", "lean_code": "import Mathlib\n\nvariable {G : Set (ℝ Γ— ℝ Γ— ℝ)} (hG : G = {p : ℝ Γ— ℝ Γ— ℝ | p.2.2 = 7 - p.1^2 - p.2.1^2 ∧ p.2.2 β‰₯ 0})\n\ntheorem paraboloid_integral_value :\n∫ (x : ℝ) in Set.Icc (-Real.sqrt 7) (Real.sqrt 7), ∫ (y : ℝ) in Set.Icc (-Real.sqrt (7 - x^2)) (Real.sqrt (7 - x^2)),\n(x^2 + y^2 + 2*(7 - x^2 - y^2)) = (957 * Real.sqrt 29 - 47) / 20 * Ο€ :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": [], "error_tags": ["misuse_of_concept"], "meta_tags": [], "gold_explanation": "NL asks for surface integral ∬ f dS but Lean computes double integral ∬ f dA. Missing surface element √(1 + (βˆ‚z/βˆ‚x)Β² + (βˆ‚z/βˆ‚y)Β²) = √(1 + 4xΒ² + 4yΒ²)."}
80
+ {"id": "proverbench_calculus__p9", "source": "ProverBench", "problem_nl": "The integral of \\(\\sin^3 x\\cos^{6}x\\,dx\\) is equal to \\(-\\frac{\\cos^7 x}{7} + \\frac{\\cos^9 x}{9} + C\\).", "lean_code": "import Mathlib\n\n/-\nThe integral of \\(\\sin^3 x\\cos^{6}x\\,dx\\) is equal to \\(-\\frac{\\cos^7 x}{7} + \\frac{\\cos^9 x}{9} + C\\).\n-/\n\n\ntheorem integral_sin_cube_cos_six_power (x : ℝ) :\n ∫ (x : ℝ), Real.sin x ^ 3 * Real.cos x ^ 6 = -(Real.cos x ^ 7 / 7) + Real.cos x ^ 9 / 9 + C :=", "expected_verdict": "YES", "error_primary": "definition_mismatch", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["misuse_of_concept", "variable_mismatch"], "meta_tags": ["autoimplicit_bug"], "gold_explanation": "Uses ∫ x, ... as a definite integral, and C is free/unbound in the statement (scope/autoImplicit issue)."}
81
+ {"id": "proverbench_elementary_algebra__p1", "source": "ProverBench", "problem_nl": "For a polynomial \\(P\\) of degree \\(n\\) where \\(P(i)\\) equals the remainder of \\(i\\) modulo 2 for each \\(i=0,1,\\dots,n\\),\n\\(P(n+1)\\) is 1 if \\(n\\) is even and 0 if \\(n\\) is odd.", "lean_code": "import Mathlib\n\n/-\nFor a polynomial \\(P\\) of degree \\(n\\) where \\(P(i)\\) equals the remainder of \\(i\\) modulo 2 for each \\(i=0,1,\\dots,n\\),\n\\(P(n+1)\\) is 1 if \\(n\\) is even and 0 if \\(n\\) is odd.\n-/\n\nvariable {P : Polynomial β„€} {n : β„•} (hP : βˆ€ i ∈ Finset.range (n + 1), P.eval (i : β„€) = i % 2)\n\n\ntheorem polynomial_parity_evaluation :\n (n % 2 = 0 β†’ P.eval ((n + 1) : β„€) = 1) ∧ (n % 2 β‰  0 β†’ P.eval ((n + 1) : β„€) = 0) :=", "expected_verdict": "YES", "error_primary": "problem_statement_error", "error_secondary": ["specification_error"], "error_tags": ["unprovable_problem", "incomplete_spec"], "meta_tags": [], "gold_explanation": "Even with degree = n, the claimed parity value at n+1 is not generally true over β„€ (fails for n=0, n=1, n=2); also Lean statement omits the degree constraint entirely."}
82
+ {"id": "proverbench_elementary_algebra__p15", "source": "ProverBench", "problem_nl": "Prove that if the difference of two consecutive cubes is nΒ², n ∈ β„•, then 2n-1 is a square.", "lean_code": "import Mathlib\n\nvariable (n : β„•)\n\ntheorem consecutive_cubes_difference_implies_square :\n ( (n + 1) ^ 3 - n ^ 3 = n ^ 2 ) β†’ βˆƒ k : β„•, k ^ 2 = 2 * n - 1 :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["premise_translation_error", "variable_mismatch"], "meta_tags": [], "gold_explanation": "Uses same variable n for both the cube index and the square. NL says 'difference of two consecutive cubes is nΒ²' meaning (m+1)Β³ - mΒ³ = nΒ² for some m. Correct formalization needs separate variables. Current premise is never satisfiable for n ∈ β„•, making theorem vacuously true."}
83
+ {"id": "proverbench_elementary_algebra__p19", "source": "ProverBench", "problem_nl": "Proves the inequality: aΒ²(s-a) + bΒ²(s-b) + cΒ²(s-c) ≀ (3/2)abc where a, b, c are real numbers.", "lean_code": "import Mathlib\n\ntheorem inequality_statement {a b c s : ℝ} :\n a^2 * (s - a) + b^2 * (s - b) + c^2 * (s - c) ≀ (3/2) * a * b * c :=", "expected_verdict": "YES", "error_primary": "problem_statement_error", "error_secondary": ["specification_error"], "error_tags": ["incomplete_statement", "missing_hypothesis"], "meta_tags": [], "gold_explanation": "Both NL and Lean are missing the constraint that s = (a+b+c)/2 (semi-perimeter). The NL problem statement is incomplete - this inequality only holds when s is the semi-perimeter. Without this constraint, the statement is FALSE. Counterexample: a=b=c=1, s=100 gives LHS=297 > RHS=1.5."}
84
+ {"id": "proverbench_linear_algebra__p13_1", "source": "ProverBench", "problem_nl": "Let T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.", "lean_code": "import Mathlib\n\n/-\nLet T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.\n-/\n\nopen Int AddMonoidHom\n\nvariable (T : β„€ Γ— β„€ β†’+ β„€)\n\naxiom T10 : T (1, 0) = 3\n\naxiom T01 : T (0, 1) = -5\n\n\nlemma T_expression : βˆ€ (x y : β„€), T (x, y) = 3 * x - 5 * y :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": [], "error_tags": ["premise_translation_error"], "meta_tags": ["unsound_axiom"], "gold_explanation": "Constraints T(1,0)=3 and T(0,1)=-5 were introduced as global axioms (effectively for all T), rather than hypotheses about a specific T; this makes the context inconsistent (e.g. T=0)."}
85
+ {"id": "proverbench_linear_algebra__p13_2", "source": "ProverBench", "problem_nl": "Let T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.", "lean_code": "import Mathlib\n\n/-\nLet T: Z Γ— Z β†’ Z be a linear function satisfying T(1, 0) = 3 and T(0, 1) = -5. Then for all (x, y) ∈ Z Γ— Z, T(x, y) = 3x - 5y.\n-/\n\nopen Int AddMonoidHom\n\nvariable (T : β„€ Γ— β„€ β†’+ β„€)\n\naxiom T10 : T (1, 0) = 3\n\naxiom T01 : T (0, 1) = -5\n\naxiom T_expression : βˆ€ (x y : β„€), T (x, y) = 3 * x - 5 * y\n\n\ntheorem T_value (x y : β„€) : T (x, y) = 3 * x - 5 * y :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": [], "error_tags": ["premise_translation_error"], "meta_tags": ["unsound_axiom"], "gold_explanation": "Same issue as p13_1: axioms assert properties for all T and even directly assert the conclusion, making the theorem trivial/unsound rather than a conditional statement."}
86
+ {"id": "proverbench_number_theory__p16", "source": "ProverBench", "problem_nl": "The smallest possible value for n in a library with n books, where if books are arranged in boxes with 7 books in each box, then 5 books remain, if arranged with 9 books in each box, then 3 books remain, and if arranged with 11 books in each box, then 7 books remain, is 579.", "lean_code": "import Mathlib\n\ntheorem smallest_library_books_value {n : β„•}\n (h1 : n % 7 = 5) (h2 : n % 9 = 3) (h3 : n % 11 = 7) :\n n = 579 :=", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["missing_hypothesis"], "meta_tags": [], "gold_explanation": "Missing minimality constraint. The theorem claims ALL n satisfying the CRT conditions equal 579, but n = 1272 (= 579 + lcm(7,9,11)) also satisfies h1, h2, h3 and 1272 β‰  579. Should add hypothesis that n is the smallest such n."}
87
+ {"id": "proverbench_number_theory__p2", "source": "ProverBench", "problem_nl": "For the equation xΒ² + yΒ² - 1 = 4xy its general solution in the integers is given by x + u√3 = (2 + √3)^n, where u is the substitute for y - 2x.", "lean_code": "import Mathlib\n\ntheorem general_solution_quadratic_equation (x y : β„€) (u : β„€) (n : β„•) :\n x^2 + y^2 - 1 = 4 * x * y β†’ x + u * Real.sqrt 3 = (2 + Real.sqrt 3)^n := sorry", "expected_verdict": "YES", "error_primary": "problem_statement_error", "error_secondary": ["specification_error", "domain_mismatch"], "error_tags": ["unprovable_problem", "missing_hypothesis", "type_mismatch"], "meta_tags": [], "gold_explanation": "NL/formula is wrong as written (the Pell reduction gives u^2-3x^2=1 so the standard form is u + x√3 = (2+√3)^n); also missing u = y - 2x; Lean mixes β„€ variables with ℝ sqrt without proper spec/casts."}
88
+ {"id": "proverbench_number_theory__p26", "source": "ProverBench", "problem_nl": "For any real number \\(\\alpha\\), there exist infinitely many pairs of positive integers \\((p, q)\\) such that \\(\\left|\\alpha - \\frac{p}{q}\\right| < \\frac{1}{q^2}\\)", "lean_code": "import Mathlib\n\n/-\nFor any real number \\(\\alpha\\), there exist infinitely many pairs of positive integers \\((p, q)\\) such that \\(\\left|\\alpha - \\frac{p}{q}\\right| < \\frac{1}{q^2}\\)\n-/\n\n\ntheorem infinitely_many_positive_integer_pairs_for_real_approximation (Ξ± : ℝ) :\n βˆƒ (p q : β„•) (h : q > 0), βˆ€ (n : β„•), n > 0 β†’ βˆƒ (p_n q_n : β„•) (h_n : q_n > 0),\n |Ξ± - (p_n : ℝ) / q_n| < 1 / q_n^2 :=", "expected_verdict": "YES", "error_primary": "problem_statement_error", "error_secondary": ["quantifier_indexing_mismatch"], "error_tags": ["unprovable_problem", "quantifier_mismatch"], "meta_tags": [], "gold_explanation": "As stated with p,q positive, the NL claim fails for negative Ξ± (e.g. Ξ± = -2); the Lean quantifier structure also doesn't encode 'infinitely many distinct pairs' or unbounded q. Variables p,q are unused (bound then ignored)."}
89
+ {"id": "proverbench_number_theory__p27", "source": "ProverBench", "problem_nl": "Prove that \\(4kxy-1\\) does not divide the number \\(x^m+y^n\\) for any positive integers \\(x,y,k,m,n\\).", "lean_code": "import Mathlib\n\n/-\nProve that \\(4kxy-1\\) does not divide the number \\(x^m+y^n\\) for any positive integers \\(x,y,k,m,n\\).\n-/\n\n\ntheorem no_division {x y k m n : PNat}\n (h : βˆƒ z : PNat, (x : β„•)^(m : β„•) + (y : β„•)^(n : β„•) = z) :\n Β¬((4 * k * x * y - 1) ∣ z) :=", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": [], "error_tags": ["variable_mismatch"], "meta_tags": ["autoimplicit_bug"], "gold_explanation": "z in the divisibility conclusion is not bound to the z from the βˆƒ-hypothesis (autoImplicit-style scope bug), making the statement meaningless/false."}
90
+ {"id": "proverbench_number_theory__p28", "source": "ProverBench", "problem_nl": "Let \\(p\\) be a prime number and \\( N=\\prod _{k=1}^{p-1}(k^2+1)\\). The remainder of \\(N\\) upon division by \\(p\\) is 4 if \\(p\\) is congruent to 3 modulo 4, and 0 if \\(p\\) is congruent to 1 modulo 4.", "lean_code": "import Mathlib\n\n/-\nLet \\(p\\) be a prime number and \\( N=\\prod _{k=1}^{p-1}(k^2+1)\\). The remainder of \\(N\\) upon division by \\(p\\) is 4 if \\(p\\) is congruent to 3 modulo 4, and 0 if \\(p\\) is congruent to 1 modulo 4.\n-/\n\nopen Finset\n\n\ntheorem prime_remainder_theorem (p : β„•) (hp : Prime p) :\n let N := (range (p - 1)).prod (Ξ» k => k^2 + 1);\n if p % 4 = 3 then N % p = 4 else N % p = 0 :=", "expected_verdict": "YES", "error_primary": "quantifier_indexing_mismatch", "error_secondary": ["specification_error"], "error_tags": ["indexing_mismatch", "missing_hypothesis"], "meta_tags": [], "gold_explanation": "range (p-1) indexes k=0..p-2, not 1..p-1 as NL specifies; additionally 'remainder = 4' should be encoded as N % p = 4 % p (or require p>4), otherwise p=3 breaks literal remainder equality."}
91
+ {"id": "proverbench_number_theory__p6", "source": "ProverBench", "problem_nl": "The solutions for the equation xΒ² - dyΒ² = 1 in the set of rational numbers, for a given integer d, are x = (dtΒ² + 1)/(dtΒ² - 1) and y = 2t/(dtΒ² - 1) where t ∈ β„š.", "lean_code": "import Mathlib\n\nvariable (d : β„€)\n\ntheorem rational_solutions_of_pell_equation (t : β„š) :\n βˆƒ (x y : β„š), x = (d * t^2 + 1) / (d * t^2 - 1) ∧ y = 2 * t / (d * t^2 - 1) ∧ x^2 - d * y^2 = 1 :=", "expected_verdict": "YES", "error_primary": "specification_error", "error_secondary": [], "error_tags": ["incomplete_spec", "division_by_zero_risk"], "meta_tags": [], "gold_explanation": "Only proves 'for each t, the formulas give a solution' (one direction); NL reads like a full characterization of all rational solutions (↔). Also denominator d*t^2-1 can be 0, which needs an explicit guard in a faithful spec."}
92
+ {"id": "proverbench_number_theory__p7", "source": "ProverBench", "problem_nl": "Exactly one of the equations xΒ² - pyΒ² = Β±2 has an integral solution where p is a prime of the form 4k + 3.", "lean_code": "import Mathlib\n\nvariable {p : β„€} (hp : Prime p) (hpForm : p % 4 = 3)\n\ntheorem exactly_one_has_integral_solution:\n (βˆƒ (x y : β„€), x^2 - p * y^2 = 2) ∨ (βˆƒ (x y : β„€), x^2 - p * y^2 = -2) ∧\n Β¬((βˆƒ (x y : β„€), x^2 - p * y^2 = 2) ∧ (βˆƒ (x y : β„€), x^2 - p * y^2 = -2)) :=", "expected_verdict": "YES", "error_primary": "formalization_error", "error_secondary": [], "error_tags": ["connective_mismatch"], "meta_tags": [], "gold_explanation": "Due to precedence, Lean parses A ∨ (B ∧ Β¬(A ∧ B)) instead of (A ∨ B) ∧ Β¬(A ∧ B); that weakens 'exactly one'."}