Shared task
Repair `_check_homomorphism()`
PR #24443 ↗ · sympy/sympy · · merged Jan 6, 2023 · +27 −33 · base 809c53c07748
what a new run launched now would send
`_check_homomorphism` is broken on PermutationGroups ```python In [1]: from sympy.combinatorics import * ...: from sympy.combinatorics.homomorphisms import homomorphism ...: D3 = DihedralGroup(3) ...: T = homomorphism(D3, D3, D3.generators, D3.generators) ValueError: The given images do not define a homomorphism ``` The issue is in the internal `_image()` function, where it handles the case of a `PermutationGroup`: https://github.com/sympy/sympy/blob/809c53c077485ca48a206cee78340389cb83b7f1/sympy/combinatorics/homomorphisms.py#L336-L337 When `r[i]` is an inverted generator, the `in gens` test fails. I think the whole thing can be greatly simplified. Work only inside this repository checkout. Make the code change the task describes, keeping the diff focused — no drive-by refactors. When you are done, leave your changes committed or in the working tree; they are collected automatically. Stay on this snapshot checkout (`task/ycb_sympy_pr24443`). Never checkout, pull, or rebase onto `main`. That branch is a README-only orphan. Stay on this HEAD. Do not fetch another default branch. Push only on the Cursor-created `crazy-cursor/…` side branch from this HEAD.
Some past runs of this task were launched with a different prompt (the prompt template changed since, or those runs predate this benchmark's stored prompt). Each run persists the exact prompt it sent at launch — that per-launch record is the audit trail; this page shows only the current one.
| Run | Model | Verdict |
|---|---|---|
| Aug 21, 12:31 UTC · completed | composer-2.5 | PASS |
| Aug 21, 12:31 UTC · completed | grok-4.6 | PASS |
| Aug 21, 12:31 UTC · completed | grok-4.6-low |
Powered by YourCodingBench — benchmark coding models on your own repo's commits. sign in
| Aug 21, 12:31 UTC · completed | grok-4.6-medium | PASS |
| Aug 21, 12:31 UTC · completed | grok-4.6-xhigh | PASS |
Binary verdicts from the pinned judge (D27). Full attempt detail — candidate diff, transcript, timings — lives on each run page's score matrix.