원클릭으로
hm-check
Type-check HashMath (.hm) source code or files. Use when the user wants to verify that .hm code type-checks correctly.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Type-check HashMath (.hm) source code or files. Use when the user wants to verify that .hm code type-checks correctly.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Help prove a theorem in HashMath. Use when the user wants to construct a proof term, define a theorem, or needs help writing .hm proof code.
Search for declarations in the HashMath environment by name pattern. Use when the user wants to find available definitions, theorems, or types.
Run the HashMath test suite. Use when the user wants to run tests, check if examples pass, or verify the type checker.
| name | hm-check |
| description | Type-check HashMath (.hm) source code or files. Use when the user wants to verify that .hm code type-checks correctly. |
| user-invocable | true |
| allowed-tools | mcp__hm-mcp__hm_process, mcp__hm-mcp__hm_load_file, mcp__hm-mcp__hm_check, mcp__hm-mcp__hm_env, mcp__hm-mcp__hm_reset, Read, Glob |
| argument-hint | ["source code or file path"] |
You are helping the user type-check HashMath (.hm) source code.
First, call hm_reset to start with a clean environment.
If the argument looks like a file path (ends in .hm), use hm_load_file with the path.
Otherwise, treat the argument as inline source code and use hm_process.
If the code uses standard library types (Nat, List, Bool, Eq, etc.), load the stdlib first:
hm_load_file with path: "<project_root>/lean/stdlib/Prelude.hm"
where <project_root> is the HashMath project root directory.
Report the results clearly:
#check results, show the inferred type#eval results, show the normalized valueIf there are errors, suggest fixes based on common issues:
Nat.rec.{1} not Nat.rec.{1,1})