← Back to Pull requests

[evals] Add Lean proof evals #11234

Open
unknown opened this pull request with 165 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 12, 2026 03:05 UTC
Author

Sorry for taking so long on this one! Here's the Lean evals PR, rebuilt on the new eval catalog from #10957. It adds four benchmarks, all graded by the kernel-replay grader from #10879 on Lean v4.34.1:

  • miniF2F, the 244-problem test split

  • PutnamBench, all 672 problems. For the 346 that ask for an answer, the official one is filled in, like the leaderboard's with-solution setting.

  • IMO-LeanProofBench v2 from DeepMind, 60 problems

  • ProofNet-Verified, the same 365 tasks as the training-side source
  • Nine statements don't compile on newer Mathlib, mostly because of the List.Chain' and MvPolynomial.coeff renames. Each gets a small rewrite that says the same thing, so every problem stays in. All 1,341 statements pass the grader's reference check.

    Each benchmark has greedy (one attempt, the default) and avg8 (mean of eight samples). The catalog has no pass@k summary yet, happy to add one :)

    I haven't run a model on them yet. The grader runs the candidate's proof as its own unprivileged user, which the local eval backend doesn't allow, so these need the Lean sandbox, and I'll run them once Kata is up. One open question: a grade needs about 6-8 GB, and evals run 64 at a time on a 12 GB worker. Is there a per-benchmark concurrency setting, or should Lean evals get a bigger worker?

    Part of #10842

    Diff: 165 lines (+123 / -42) across 2 files Reviewer: Robertboy18 Review duration: 15443m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.35) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 165 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.306
    Real PR Conversation Timeline
    1 comments
    "Review active on #11234"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35% (MEDIUM) · Higher = larger blast radius
    35%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.0% · Safe to merge
    20.0%