Chuyển đến nội dung
Skillpedia
Nghiên cứu18k · #10552

lean-formalize

Skill này làm gì

Skill này biến một phát biểu toán học thành chứng minh mà máy tính kiểm tra được trong Lean, một ngôn ngữ chứng minh hình thức. Dành cho nhà nghiên cứu cần xác minh hình thức một kết quả then chốt.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu một chứng minh Lean hoặc muốn hoàn thiện một dự án Lean đang có.
  • ✓Khi một tuyên bố then chốt phụ thuộc vào một lập luận dài hoặc tinh vi cần kiểm tra hình thức.
  • ✓Khi bạn cần xác nhận một chứng minh Lean khớp với phát biểu gốc.

Liên kết skill

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/lean-formalize/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần một chứng minh Lean cho định lý này, cùng với kiểm tra rằng nó khớp với phát biểu gốc.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kết nối đầu vào của bạn với các bổ đề trung gian, lắp ráp định lý cuối cùng, và kiểm tra nó phụ thuộc vào những tiên đề nào. Sau đó nó cung cấp một bản bàn giao mà người khác có thể tái tạo.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Lean Formalize

Before each reviewer slot, follow Selectable Reviewers: resolve invocation → .aris/reviewer.json → Claude Code default (Codex MCP) with reviewer_route.py through the canonical helper resolver, preserving this slot's tier, fresh contexts, source/image inputs and deterministic gates. Codex examples/pins below apply only to backend=codex; other routes use their own first-call/reply contract. Save the route and actual returned identity; unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual families/completion/scope. Forward invocation reviewer/model/effort overrides to reviewer-bearing children. Generation workers are unchanged.

Turn the user's mathematical statement into a checked Lean theorem with its meaning preserved. A compiled conditional lemma is progress; completion concerns the original statement and the trust basis actually used.

When to use Lean

Use this skill when the user requests Lean, when continuing an existing Lean proof, or when formal verification addresses a concrete uncertainty in a central claim—for example, a long dependency chain, a delicate reduction, or coverage of a finite classification. State the obligation it will help resolve and proceed within the authorized task. Difficulty alone is not a reason to formalize. Ordinary derivations and short proofs can stay in formula-derivation or proof-writer; do not make Lean a prerequisite for every mathematical result. Respect the user's chosen proof method and the scale of the requested work.

Core workflow

Original statement and Lean definitions
  → A: cross-family adversarial statement alignment
  → Proof obligations, representations, and lemma interfaces
  → Lean implementation ↔ B: adversarial review of key arguments and connections
  → Actual inputs connected; original theorem assembled
  → Executed type, definition, and transitive-axiom audit
  → C: cross-family adversarial review of the final exported result
  → Reproducible delivery and research-state update

For substantial new proof projects, A/B/C are part of the workflow. For a continuation, reuse completed checks on unchanged claims and revisit affected ones. Small routine formalizations need checks proportional to the actual claim; an explicit user request for cross-family review still applies to them.

Use the authorized reviewer families available in the current host. If the user specifies both Grok and Gemini, obtain and record both; a same-family agent or another provider does not silently satisfy either request. Unavailability leaves that checkpoint pending while independent proof work continues. A checked theorem and a fully completed requested review workflow are separate deliverables.

Scope and entry

Follow the requested scope: implement, continue, audit, or package. For an audit, inspect and report rather than silently repairing or weakening the theorem. For implementation, develop the mathematical argument as well as its Lean proof: search relevant literature or library results, explore alternative routes, and discharge the missing lemmas. Continue through the remaining interfaces and top-level assembly; do not stop at a target declaration or the first successful compilation.

Read the authoritative statement, existing Lean entry point, toolchain and lockfile, and latest progress record. Reuse the project and its document names. Do not reinstall tools, change dependencies, or start a new proof framework when the existing environment is suitable. Resolve APIs against the pinned library.

Use the existing proof route when it works. If the mathematical argument itself is missing, isolate that obligation and use proof-writer or ordinary proof work. A delegated proof-writer task develops that argument and returns its proof or remaining gap to this run; it must not invoke lean-formalize again. Syntax automation cannot discharge an unproved premise. Do not promise that an arbitrary open problem can be formalized or solved.

Start or resume the right work

Current input First useful action
Only a mathematical statement Fix definitions and quantifiers, then develop a proof route and its first difficult obligation
A prose proof Identify nontrivial dependencies and choose Lean representations; expose any missing argument before coding it
A partial Lean project Inspect the target and its actual callers, read the
Câu hỏi thường gặp

Tôi có cần biết Lean trước không?

Skill nhắm đến người muốn có đầu ra Lean. Nó xây dự án từng bước và báo cáo những gì biên dịch được.

Một bổ đề đã biên dịch có phải là chứng minh hoàn chỉnh không?

Không. Skill nói một bổ đề có điều kiện đã biên dịch là tiến triển, còn hoàn thành nghĩa là phát biểu gốc đã được chứng minh.

Khi nào không nên dùng nó?

Với một suy diễn thông thường, skill viết chứng minh là lựa chọn tốt hơn, theo định tuyến của skill.

Chi tiết

Mô tả gốc của tác giả

Develop and verify a mathematical proof in Lean, continue an incomplete Lean project, or audit whether it proves the original statement. Connect actual inputs to intermediate lemmas, assemble the target theorem, check its transitive axioms, and provide a reproducible handoff. Use when Lean is requested or a specific proof obligation benefits from formal verification; use proof-writer for ordinary mathematical drafting.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Độ phổ biến

Sao GitHub
18k
Vị trí xếp hạng
#10552
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự