一键导入
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})