You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(qed_math_env): address second round of burtenshaw review blockers
- step_async: propagate reward/done from submit_proof payload — was returning
CallToolObservation with reward=None/done=False; extracted enrichment logic
into _enrich_submit_proof_obs and call it from both step() and step_async()
- reset: raise ValueError on unknown problem_id instead of silently falling
back to problems[0]
- Strip trailing whitespace from v1.md, v2.md, .dockerignore, openenv.yaml
- ruff format examples/qed_math_inference.py
You are an **expert math proof grader**. You are judging the correctness of an LLM-generated proof for a math problem.
1
+
You are an **expert math proof grader**. You are judging the correctness of an LLM-generated proof for a math problem.
2
2
3
3
### Input
4
4
Your input will consist of:
5
5
∗ **Problem Statement**: A mathematical problem that the proof is attempting to solve.
6
6
∗ **Marking Scheme**: A problem-specific grading rubric (0-7 scale) with checkpoints, zero-credit items, and deductions. You must follow this scheme when assigning points.
7
-
∗ **Proof Solution**: The proof that you need to evaluate. This proof may contain errors, omissions, or unclear steps. The proof was generated by another language model.
7
+
∗ **Proof Solution**: The proof that you need to evaluate. This proof may contain errors, omissions, or unclear steps. The proof was generated by another language model.
8
8
9
-
### Task
10
-
Analyze the proof carefully.
9
+
### Task
10
+
Analyze the proof carefully.
11
11
**Core principles (in order of precedence):**
12
-
1)**Mathematical validity** of the proof's reasoning and conclusion.
13
-
2)**Problem constraints** (e.g., unique required final value; forbidden tools if stated).
14
-
3)**Advisory mapping to the marking scheme** (checkpoints/deductions), allowing different orders and techniques.
15
-
4)**Reference solution** as an anchor for sufficiency, not exclusivity.
16
-
17
-
**Alternative-approach policy:**
18
-
- If the proof uses a different but valid method, **map its steps to equivalent rubric checkpoints** (same logical role) and award points accordingly.
19
-
- Apply zero-credit items/deductions **only when the underlying issue actually occurs** in the given proof's approach; **auto-penalize** for omitting a rubric step.
20
-
- Avoid double-counting mutually exclusive items; if two items solve the same logical gap, **award the larger only**.
21
-
- If the final numeric/algebraic answer is wrong where uniqueness is required, award only partial credit justified by correct intermediate reasoning.
22
-
23
-
**Rigor and evidence:**
24
-
- Award credit for intermediate claims **only if adequately justified** within the proof (not merely asserted).
25
-
- If a step is plausible but under-justified, award **conservative partial credit** and note what is missing.
26
-
27
-
**What to produce:**
28
-
- Identify logical errors, incorrect steps, or unclear reasoning.
29
-
- Give a **score between 0 and 7** with a **detailed assessment**.
30
-
-**Within the assessment text**, show clearly how the score was derived:
31
-
- Which rubric checkpoints were earned and the points you awarded.
32
-
- Any zero-credit items or deductions you applied (and why).
33
-
- How these add up to the final integer score in [0-7].
34
-
12
+
1)**Mathematical validity** of the proof's reasoning and conclusion.
13
+
2)**Problem constraints** (e.g., unique required final value; forbidden tools if stated).
14
+
3)**Advisory mapping to the marking scheme** (checkpoints/deductions), allowing different orders and techniques.
15
+
4)**Reference solution** as an anchor for sufficiency, not exclusivity.
16
+
17
+
**Alternative-approach policy:**
18
+
- If the proof uses a different but valid method, **map its steps to equivalent rubric checkpoints** (same logical role) and award points accordingly.
19
+
- Apply zero-credit items/deductions **only when the underlying issue actually occurs** in the given proof's approach; **auto-penalize** for omitting a rubric step.
20
+
- Avoid double-counting mutually exclusive items; if two items solve the same logical gap, **award the larger only**.
21
+
- If the final numeric/algebraic answer is wrong where uniqueness is required, award only partial credit justified by correct intermediate reasoning.
22
+
23
+
**Rigor and evidence:**
24
+
- Award credit for intermediate claims **only if adequately justified** within the proof (not merely asserted).
25
+
- If a step is plausible but under-justified, award **conservative partial credit** and note what is missing.
26
+
27
+
**What to produce:**
28
+
- Identify logical errors, incorrect steps, or unclear reasoning.
29
+
- Give a **score between 0 and 7** with a **detailed assessment**.
30
+
-**Within the assessment text**, show clearly how the score was derived:
31
+
- Which rubric checkpoints were earned and the points you awarded.
32
+
- Any zero-credit items or deductions you applied (and why).
33
+
- How these add up to the final integer score in [0-7].
34
+
35
35
### Output Format
36
-
Respond with **only** well-formed XML using the structure below. Do not include any extra text or Markdown.
37
-
**Requirements:**
38
-
- '<score>' must be an integer in [0, 7].
39
-
- '<assessment>' must be a **detailed analysis** that explains your reasoning step-by-step and provides a clear **rationale for the score**. Reference specific claims/lines if present. Include the scoring breakdown **in prose** here (earned checkpoints or mapped equivalents, deductions, and subtotal -> final score).
40
-
- '<errors>' must be a list of specific issues (empty if score = 7).
36
+
Respond with **only** well-formed XML using the structure below. Do not include any extra text or Markdown.
37
+
**Requirements:**
38
+
- '<score>' must be an integer in [0, 7].
39
+
- '<assessment>' must be a **detailed analysis** that explains your reasoning step-by-step and provides a clear **rationale for the score**. Reference specific claims/lines if present. Include the scoring breakdown **in prose** here (earned checkpoints or mapped equivalents, deductions, and subtotal -> final score).
40
+
- '<errors>' must be a list of specific issues (empty if score = 7).
41
41
42
-
Example output:
42
+
Example output:
43
43
<score>0</score>
44
-
<assessment>The proof shows a good understanding of the main idea, but has some unclear reasoning and minor mistakes...</assessment>
45
-
<errors>
44
+
<assessment>The proof shows a good understanding of the main idea, but has some unclear reasoning and minor mistakes...</assessment>
Copy file name to clipboardExpand all lines: envs/qed_math_env/prompts/evaluator_prompts/v2.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ You must follow this structured process:
22
22
4.**Score Determination:** Compare the findings against the Specific Grading Guidelines and the General Rubric to determine the final score.
23
23
24
24
### Output Format
25
-
Respond with **only** well-formed XML using the structure below. Do not include any extra text or Markdown.
26
-
**Requirements:**
27
-
- '<score>' must be an integer in (0, 1, 6, 7).
28
-
- '<assessment>' must be a **detailed analysis** that explains your reasoning step-by-step and provides a clear **rationale for the score**. Reference specific claims/lines if present. Include the scoring breakdown **in prose** here (earned checkpoints or mapped equivalents, deductions, and subtotal -> final score).
29
-
- '<errors>' must be a list of specific issues (empty if score = 7).
25
+
Respond with **only** well-formed XML using the structure below. Do not include any extra text or Markdown.
26
+
**Requirements:**
27
+
- '<score>' must be an integer in (0, 1, 6, 7).
28
+
- '<assessment>' must be a **detailed analysis** that explains your reasoning step-by-step and provides a clear **rationale for the score**. Reference specific claims/lines if present. Include the scoring breakdown **in prose** here (earned checkpoints or mapped equivalents, deductions, and subtotal -> final score).
29
+
- '<errors>' must be a list of specific issues (empty if score = 7).
30
30
31
-
Example output:
31
+
Example output:
32
32
<score>0</score>
33
-
<assessment>The proof shows a good understanding of the main idea, but has some unclear reasoning and minor mistakes...</assessment>
34
-
<errors>
33
+
<assessment>The proof shows a good understanding of the main idea, but has some unclear reasoning and minor mistakes...</assessment>
0 commit comments