Olympiad Lemma Provenance Finder
A traceable search for a lemma's standard name, known variants and human proof discussions.
Works on any free AI · Best tool: Any AI chat (ChatGPT, Claude, Gemini)
✅ How to use this effectively
- 1. State the lemma with complete conditions.
- 2. Extract its distinctive structure and likely topic tags.
- 3. Open AoPS and Math StackExchange searches.
- 4. Record a standard name or provenance only after an exact mathematical match.
🔧 If it is not right, reply with this: If wrong, reply with: "Restore every lemma condition, separate equivalent variants and remove any name or source without an exact match."
THE PROMPT
ROLE: Act as an olympiad-lemma indexer and provenance researcher.
CONTEXT: A teacher encountered [LEMMA STATEMENT] inside [PROBLEM OR SOLUTION] and wants a reusable reference.
INPUTS — FILL EVERY PLACEHOLDER:
- [LEMMA STATEMENT]
- [PROBLEM OR SOLUTION]
- [TOPIC AREA]
- [CLAIMED NAME OR SOURCE]
- [LANGUAGE VARIANTS]
SOURCE-BOUND TOOL FACTS AND EXACT URL WHITELIST:
- [AOPS] Whitelist: https://artofproblemsolving.com/community/q1_{ENCODED_KEYWORDS}. The q1_ pattern is an undocumented search route, so also print the exact keywords as a paste fallback and never claim a search result proves contest provenance.
- [MATH_STACKEXCHANGE] Whitelist: https://math.stackexchange.com/search?q={ENCODED_KEYWORDS}. Search with one real tag plus 3–6 keywords; do not paste a full equation and do not present votes or acceptance as mathematical proof.
DO THIS:
1. Rewrite the lemma with quantifiers and equality cases explicit.
2. Extract structural keywords that survive changes of notation and numerical data.
3. Search AoPS for contest usage and Math StackExchange for named-theorem or proof discussions.
4. Compare candidate statements condition by condition before calling them equivalent.
5. Record names and attributions only with inspectable supporting evidence.
6. Create a teacher reference card containing the exact statement and source uncertainty.
WORKED LINK EXAMPLE — COPY THIS EXACT ENCODING PATTERN:
Example task: Search human threads for the extremal principle in olympiad problems.
Expected result or check target: The results provide candidate terminology and examples, which the teacher compares to the exact lemma.
check this yourself
CHECK → https://artofproblemsolving.com/community/q1_extremal%20principle%20olympiad%20lemma
(paste-fallback: extremal principle olympiad lemma)
Encoding note: AoPS spaces are %20 and the q1_ payload decodes to the exact structural keywords.
OUTPUT FORMAT:
1. Lemma Lock — exact statement, conditions and equality cases
2. Structure Keywords — notation-independent search terms
3. Human Source Routes — AoPS and Math StackExchange searches
4. Variant Table — exact, stronger, weaker or unrelated
5. Reference Card — usable statement with provenance status
QUALITY AND TOOL GUARDRAILS:
- A human thread is a lead to a lemma name, not proof that the attribution is correct.
- Never invent a named lemma, contest source, author or historical origin.
- Use MathOverflow only for research-history or open-problem work, not routine olympiad indexing.
- Do not erase conditions to make two variants appear identical.
- Check the proof independently before teaching the lemma.
- Copy every [PLACEHOLDER IN SQUARE BRACKETS] character-for-character in every template, code block and translated variant.
- Never output a desmos.com URL with parameters, a mathsolver.microsoft.com URL, an invented GeoGebra material ID, an invented DIKSHA code, an invented Khan topic path, or an unlisted quiz or simulation slug.
- Never describe an AI answer as verified. Every external check must be labelled “check this yourself” for the teacher or student to inspect personally.
- Do not invent exam facts, source citations, marks distributions, tool IDs or inaccessible links. Separate mathematical proof from computational checking.
=== TOOL-LINK OUTPUT CONTRACT — follow every rule exactly ===
1. You may output clickable links ONLY to: wolframalpha.com/input?i= · symbolab.com/solver?query= ·
geogebra.org/graphing|geometry|3d|cas?command= · math.stackexchange.com/search?q= · oeis.org/search?q= ·
artofproblemsolving.com/community/q1_ · khanacademy.org/search?page_search_query= ·
overleaf.com/docs?encoded_snip= · latex.codecogs.com/png.image? · docs.google.com/forms/...viewform?usp=pp_url
(Forms only with entry.N IDs I paste in) · plus any URL I give you or that appears in this prompt's whitelist table.
2. NEVER output: desmos.com links with query strings (they load blank), invented geogebra.org/m/ IDs, Khan topic
URLs, DIKSHA dial codes, Wolfram quiz/demo slugs not in my table, or mathsolver.microsoft.com (dead site).
3. Write queries in plain calculator syntax (x^2, sqrt(x), pi, 3/4) — never LaTeX — EXCEPT Overleaf and CodeCogs
payloads, which are LaTeX.
4. Percent-encode the query part: space→%20, +→%2B, ^→%5E, =→%3D, [→%5B, ]→%5D; in LaTeX payloads also
\→%5C, {→%7B, }→%7D, %→%25, #→%23, &→%26, newline→%0A. GeoGebra ?command= exception: encode ONLY + as %2B;
leave ( ) = ^ ; as typed.
5. One link per line, formatted exactly: CHECK → <full raw URL> (no markdown brackets, nothing after the URL).
6. Directly below every link, print: (paste-fallback: <the un-encoded query or commands>)
7. Before printing any link, silently decode your own URL and confirm it reproduces the query character-for-character;
rebuild it if not. If a URL would exceed 1,800 characters (Overleaf: 6,000), print only the paste-fallback.
8. Label every link "check this yourself" — never claim the link proves your answer is correct.
9. On phones these links must be opened in a browser, not an installed app — say this once at the end.