Prompt Evaluation

Math Answer Equivalence Check (Trivial Simplifications Only)

OpenAI simple-evals' equality check for math answers: judge whether two expressions are equivalent using only trivial simplifications, with worked Yes/No examples (units get the benefit of the doubt), and reply only Yes or No.

  • 🤖 Any chat LLM
  • 🗂️ Evaluation

Last verified: write-up checked

Prompt by OpenAI (openai/simple-evals) · Original source (opens in a new tab)

Math Answer Equivalence Check (Trivial Simplifications Only) — prompt preview

The prompt

prompt
Look at the following two expressions (answers to a math problem) and judge whether they are equivalent. Only perform trivial simplifications

Examples:

    Expression 1: $2x+3$
    Expression 2: $3+2x$

Yes

    Expression 1: 3/2
    Expression 2: 1.5

Yes

    Expression 1: $x^2+2x+1$
    Expression 2: $y^2+2y+1$

No

    Expression 1: $x^2+2x+1$
    Expression 2: $(x+1)^2$

Yes

    Expression 1: 3245/5
    Expression 2: 649

No
(these are actually equal, don't mark them equivalent if you need to do nontrivial simplifications)

    Expression 1: 2/(-3)
    Expression 2: -2/3

Yes
(trivial simplifications are allowed)

    Expression 1: 72 degrees
    Expression 2: 72

Yes
(give benefit of the doubt to units)

    Expression 1: 64
    Expression 2: 64 square feet

Yes
(give benefit of the doubt to units)

---

YOUR TASK


Respond with only "Yes" or "No" (without quotes). Do not include a rationale.

    Expression 1: %(expression1)s
    Expression 2: %(expression2)s

What it is

OpenAI simple-evals' equality check for math answers: judge whether two expressions are equivalent using only trivial simplifications, with worked Yes/No examples (units get the benefit of the doubt), and reply only Yes or No. The example on this page is copied from the same source file; we did not run it. The prompt text comes from the simple-evals repository (MIT License, Copyright (c) 2024 OpenAI). Licence: https://github.com/openai/simple-evals/blob/main/LICENSE. Original author: OpenAI (openai/simple-evals). Changes by FoxaMind: Python raw-string quotes removed and the text stripped (the source calls .strip()); the %(expression1)s and %(expression2)s placeholders keep the source syntax.

Who it's for

  • Teams grading math benchmarks
  • Developers checking model answers against reference solutions

برومبت فحص التكافؤ في simple-evals من OpenAI لإجابات الرياضيات: يحكم هل التعبيران متكافئان باستخدام تبسيطات بسيطة فقط، مع أمثلة نعم/لا (والوحدات تُعامل بتساهل)، ويرد فقط بـ Yes أو No.

Examples

Example printed in the prompt

Prompt
prompt
    Expression 1: 3245/5
    Expression 2: 649

No
(these are actually equal, don't mark them equivalent if you need to do nontrivial simplifications)

Expected output: One of the worked examples in the source prompt. Not run by us.

Tips

  • The two expressions are inserted with Python % formatting: %(expression1)s and %(expression2)s.
  • One example (3245/5 against 649) is marked No on purpose: the prompt says not to accept answers that need nontrivial simplification.