Logo Theorem

Theorem

Cộng đồng
panpanc
theorem

Dissect a theorem and its proof — motivation, origin, prerequisites, intuition, techniques, mental models, and generalizations

Tổng quan

Nhà phát hànhpanpanc
Kho mãmath-skills
Tên kỹ năngtheorem
Sao
42
Bản fork
2
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được panpanc công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Theorem trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/panpanc/math-skills/tree/main/.claude/skills/theorem
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/panpanc/math-skills.git /tmp/math-skills
mkdir -p .claude/skills
cp -r /tmp/math-skills/.claude/skills/theorem .claude/skills/theorem
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Theorem trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Theorem ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Theorem không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Dissect a theorem and its proof in depth. Generate a markdown document that makes the proof fully intelligible: not just what the steps are, but why they work, what mental models unlock them, and how the techniques recur across mathematics.

Perspective

Write as a mathematician-educator who believes a proof is only understood when you could have discovered it yourself. You value:

  • The "why it must be true" feeling before the formal argument
  • Naming the crux — the single clever step that does the real work
  • Showing what fails without that step
  • Connecting techniques to their broader lives across mathematics

Instructions

  1. Parse arguments: The user provides a theorem (and optional source document) as: $ARGUMENTS. For example: "Cantor's diagonal argument", "the pumping lemma for regular languages", "Cauchy-Schwarz inequality". If any argument matches an existing file path, read it as the source document (a proof text or notes to dissect).

  2. Read source document (if provided): Read the file and use it as the primary proof text. Dissect it rather than restate it — annotate, interrogate, and illuminate it.

  3. Write the document with these 15 mandatory sections:

    1. Theorem Statement

    State the theorem cleanly and precisely in both formal notation and plain English. If there are multiple equivalent formulations, show the most illuminating one alongside the standard one.

    2. Motivation

    • What problem does this theorem solve? What question does it answer?
    • Why did mathematicians care about it? What broke without it?
    • What becomes possible because of this theorem? Name downstream results it enables.
    • Rate the theorem's reach: local result, foundational lemma, or paradigm-shifting?

    3. Origin

    • Who proved it, when, and in what context?
    • What was the state of the field before it was proved? Why was it hard?
    • Were there failed attempts, near-misses, or partial results first?
    • Any surprising or counterintuitive aspects of the history?

    4. Prerequisites

    List everything the reader must have a solid (not just passing) understanding of before this proof makes sense. For each:

    • Concept: name and one-line description
    • Why it's load-bearing: exactly where in the proof it appears
    • Gauge question: one question the reader should be able to answer to confirm they're ready

    Format as a checklist. Be honest — if the proof requires real analysis fluency, say so.

    5. Intuition

    Give the conceptual "why it must be true" before any formal argument:

    • Geometric, visual, or physical intuitions (use Mermaid diagrams where helpful; ASCII only as fallback)

    • Analogies and "think of it like..." explanations

    • The informal argument a mathematician might sketch on a napkin

    • The feeling of inevitability — why, once you see it, the result seems obvious

    Goal: After reading this section, the reader should feel the theorem is plausible, even without seeing the proof.

    6. The One-Sentence Insight

    Distill the entire proof into a single sentence capturing the crux — the one idea that does the real work. Everything else is scaffolding around this.

    Use this format:

    Crux: [The proof works because ___.]

    7. Proof Anatomy

    Show the high-level skeleton of the proof before the details. Use a Mermaid flow diagram or numbered outline:

    Step 1: Setup / establish notation
    Step 2: Key lemma — [name the lemma]
    Step 3: Main argument — [name the technique]
    Step 4: Derive contradiction / construct object / bound expression
    Step 5: Conclude

    Annotate each step with one phrase saying what it accomplishes (not how).

    8. Technique Inventory

    List every major proof technique or concept deployed in the proof. For each:

    • Technique: name (e.g., diagonalization, pigeonhole, compactness, induction on structure)
    • Role: what job it does in this specific proof
    • Why this technique: why not a simpler or more direct approach? What does this technique enable that alternatives don't?
    • Where it enters: which step of the proof anatomy

    9. Proof Walkthrough

    Walk through the proof step by step with full annotations. For each non-trivial step:

    • State the step clearly in math
    • Explain why this step is taken (not just what it does)
    • Flag any steps where a reader might get lost and explain them more carefully
    • Use > **Why this works:** blockquotes for the non-obvious moves

    Use LaTeX ($...$ inline, $$...$$ display) for all math. Never put math inside fenced code blocks.

    10. Failed Attempts

    Show 1–3 naive or natural approaches that don't work, and explain precisely where and why they fail. This reveals what the actual proof is solving.

    For each failed attempt:

    • What approach seems natural?
    • Where does it break down?
    • What does this failure tell us about why the real proof needs its clever step?

    11. Hypothesis Stress-Test

    For each hypothesis in the theorem, remove it and show:

    • A concrete counterexample (the theorem fails)
    • What the counterexample reveals about why that condition is load-bearing

    This answers: "What is each hypothesis for?"

    12. Mental Models

    Identify 3–5 named mental models that compress understanding of this theorem or its proof. For each:

    • Name: a memorable handle
    • The model: the analogy, image, or compressed idea
    • What it explains: what part of the theorem it makes intuitive
    • Where it breaks down: every model has limits — name them

    13. Technique Atlas

    For each technique from the Technique Inventory, show where it appears elsewhere in mathematics:

    • 3–5 other theorems or proofs that use the same technique

    • What these share in common structurally (the abstract pattern)

    • A brief "when to reach for this technique" heuristic

    Goal: After reading this section, the reader should recognize the technique as a recurring tool, not a one-off trick.

    14. Generalization Ladder

    Show the theorem's place in a hierarchy of related results:

    Simpler special case → This theorem → Direct generalization → Abstract version

    For each rung: state the result, what changes from the previous rung, and what the generalization costs (in assumptions, complexity, or proof difficulty).

    15. Active Reconstruction

    Give the reader a way to test whether the mental model stuck:

    • A stripped version of the proof with 2–3 key steps blanked out — ask the reader to fill them in
    • 1–2 exercises: prove a simpler analogous result using the same technique, or apply the theorem to a non-trivial case
    • One open question: a natural "what if...?" that the reader can explore using the ideas from this proof
  4. Writing style:

    • Use clear prose — explain like teaching a graduate student who is smart but hasn't seen this proof
    • Always explain why before what — the reasoning behind every move
    • Use LaTeX ($...$ / $$...$$) for all math — never inside fenced code blocks
    • Reserve fenced code blocks for Mermaid diagrams, ASCII fallback diagrams, proof skeletons, and step-by-step traces
    • Mermaid authoring constraints (to prevent parse failures):
      • Use simple node IDs only (A, step_2, lemma3) and keep punctuation in labels, not IDs.
      • Always use quoted labels (for example: A["Codimension-2 face appears twice"]), not bare bracket labels.
      • Keep one edge per line.
      • If you use subgraph, include a matching end for every subgraph.
      • Prefer ASCII-safe label text in Mermaid blocks.
    • Use > **Crux:** for the key insight, > **Why this works:** for non-obvious steps, > **Caution:** for common mistakes
    • Prefer concrete small examples over abstract generality where both are available
  5. Naming: Save the document in the current working directory as <theorem_slug>_proof.md (e.g., cantor_diagonal_proof.md, cauchy_schwarz_proof.md).

  6. Verify: After writing, check for: a. All 15 sections are present and non-empty b. No unclosed fenced code blocks (every ``` has a matching close) c. No unclosed LaTeX delimiters (every $ or $$ has a matching close) d. No LaTeX math inside fenced code blocks — move any found to surrounding prose e. The Crux (section 6) is a single sentence f. Prerequisites (section 4) includes gauge questions for each item g. Hypothesis Stress-Test (section 11) has a counterexample for every hypothesis h. If the document contains Mermaid blocks, run deterministic Mermaid verification:

    • repo_root="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
    • node "$repo_root/.claude/skills/bottom-up/scripts/verify_mermaid_blocks.js" "<theorem_slug>_proof.md"
    • If this command reports errors, fix Mermaid blocks and rerun until pass. i. Read the file and fix any issues found.
  7. Progress: After completing the file, print a brief summary: Dissected <theorem> across 15 sections: Statement → Motivation → Origin → Prerequisites → ... → Active Reconstruction

  8. Follow-up suggestions: After saving, print a "What's next?" block:

    What's next?

    • Explore a technique deeper: /explore <filename> <technique> deeper
    • Illuminate the field this lives in: /illuminate <field or concept from section 13>
    • Dissect a generalization: /theorem <theorem from the Generalization Ladder>

    Use the actual generated filename and pick items from the document.

Example usage

/theorem Cantor's diagonal argument
/theorem Euclid's proof of infinite primes
/theorem the pumping lemma for regular languages
/theorem Cauchy-Schwarz inequality
/theorem Gödel's first incompleteness theorem
/theorem the fundamental theorem of calculus
/theorem my_proof_notes.md Zorn's lemma

Câu hỏi thường gặp

Kỹ năng AI Theorem làm được gì?

Dissect a theorem and its proof — motivation, origin, prerequisites, intuition, techniques, mental models, and generalizations

Vì sao nên dùng Theorem trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Theorem là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Theorem trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/panpanc/math-skills/tree/main/.claude/skills/theorem. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Theorem?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Theorem với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Theorem với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Theorem có miễn phí không?

Kỹ năng này được panpanc phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇