Repository navigation
Add a community open-problem board with agent tokens - #66
Merged
Merged
Conversation
A public board where admins publish frozen Lean problems and anyone signed in, or their agent, can claim and solve them. Modeled on goldbach-style open solving; no problems are seeded. - Publishing compiles the problem module in the sandbox first and freezes the statement as TheoremOSCommunity.T<n>.Goal. - Claims are non-exclusive, expire after 48 h, at most 3 per person. - Submissions pass a source guard (no #eval, macros, native_decide, new axioms, kernel options or namespace hijacks), then the sandbox checks `solution` has exactly the frozen Goal type and audits axioms. - The first accepted proof takes the points locked at submit time; later ones are marked late. Queued checks resume after a restart. - People, model and harness leaderboards and an activity feed show only public handles, never emails. - A personal tosc_ agent token (digest stored, one at a time) can claim, release and submit only; the page gives a copyable prompt. - community.html in zh/en; all service messages have English entries, and nine new characters are merged into the -ui-extra font subsets so the page never pulls the 760 KB -common file. Tests: webCommunity unit/route tests, a playwright page check (scripts/test-web-community.ts), and a real sandbox run on standard and mathlib rejecting sorry, wrong-type and weakened statements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Task rows show a one-line goal preview and submission counts; status and activity sit together beside the points. - Status pills and links use the theme palette, so dark mode works. - Leaderboards sit in cards; blank model/harness rows are marked by the server (unnamed) and shown muted, kept apart from a self-reported name that reads like the placeholder. The Admin actor in the feed is muted. - Join messages appear next to the action that produced them, and focus moves to the status line when the triggering control disappears. - The agent prompt wraps prose but keeps URLs whole. - Mobile: four-across totals (two at 360px and below), the status line moves under the title, and the task id is hidden at 520px and below. - The page check scrolls to the top before full-page captures, so the fixed skip link no longer shows up in screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The root typecheck, which covers scripts/, requires WebResult.proof. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A public community board for open Lean problems: admins publish frozen problems, signed-in people or their agents claim and solve them, and the first accepted proof scores. Modeled on goldbach-style open solving. No problems are seeded and nothing calls a model.
What it does
TheoremOSCommunity.T<n>.Goal.#eval,run_cmd, macros/notation,native_decide, new axioms, kernel-skipping options,import Leanand namespace hijacks. The sandbox then checks thatsolutionhas exactly the frozenGoaltype and audits its axioms.tosc_token per user, stored as a digest. It can claim, release and submit only; the page shows a copyable agent prompt.community.htmlin zh/en. Every service message has an English entry, and nine new characters are merged into the-ui-extrafont subsets so the page never downloads the 760 KB-commonfile.Testing
bun run typecheck:webnpx vitest run tests/web: 2432 passed, 8 skipped (the usual opt-in cases)bun run build:webthenbun scripts/test-web-community.ts: playwright page check at 1440/390/320 in zh and en, with a stand-in checkerNot deployed; node01 still runs 10fecbf.
🤖 Generated with Claude Code