ワンクリックで
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})