Skip to content

experiment: hammer/premise selection benchmarks#106

Open
kim-em wants to merge 3 commits intonightly-testing-greenfrom
hammer_measurements
Open

experiment: hammer/premise selection benchmarks#106
kim-em wants to merge 3 commits intonightly-testing-greenfrom
hammer_measurements

Conversation

@kim-em
Copy link

@kim-em kim-em commented Nov 4, 2025

No description provided.

@kim-em kim-em force-pushed the hammer_measurements branch 3 times, most recently from 5ae212a to b1793a3 Compare November 11, 2025 11:14
@kim-em kim-em force-pushed the hammer_measurements branch from 2012f87 to e0a6b41 Compare November 13, 2025 11:29
@kim-em kim-em force-pushed the hammer_measurements branch from 393dc77 to 3f56141 Compare December 4, 2025 03:14
@kim-em kim-em force-pushed the hammer_measurements branch from a02a589 to 06ff22e Compare December 4, 2025 03:20
kim-em and others added 2 commits December 4, 2025 04:16
Add elapsed time measurement to the "can be replaced with" messages
generated by tryAtEachStep linters. Messages now include timing in
milliseconds, e.g.:
  `simp` can be replaced with `grind` (45ms)

This enables timing analysis of hammer tactics without external
instrumentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add infrastructure for testing arbitrary tactics without modifying Mathlib:

- `parseTacticString`: Parse a string into tactic syntax at runtime
- `tryAtEachStepFromStrings`: Generic entry point taking label and tactic strings
- `tryAtEachStepFromEnvImpl`: Reads TRY_AT_EACH_STEP_TACTIC from env var
  (TRY_AT_EACH_STEP_LABEL is optional, defaults to tactic string)

Example usage:
```
TRY_AT_EACH_STEP_TACTIC="omega" \
  lake build Mathlib -Klinter.tacticAnalysis.tryAtEachStepFromEnv=true
```

This generic entry point is used by the hammer-bench benchmarking tool
(https://github.com/leanprover-community/hammer-bench) to test arbitrary tactics
without requiring Mathlib code changes for each new tactic variant.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant