prove-plus-comm

Guide Coq proofs for natural-number arithmetic using induction and standard lemmas.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/bianhaifeng789-hue/openclaw-config --skill prove-plus-comm-bianhaifeng789-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prove-plus-comm
Source: https://github.com/bianhaifeng789-hue/openclaw-config/tree/main/skills/tb2/prove-plus-comm
Command: npx skills add https://github.com/bianhaifeng789-hue/openclaw-config --skill prove-plus-comm-bianhaifeng789-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides Coq proof authors in completing arithmetic proofs on natural numbers, focusing on addition commutativity and related lemmas using induction.

Core Features & Use Cases

  • Provides a structured proof strategy for base and inductive steps in Coq.
  • Emphasizes common lemmas like plus_n_O and plus_n_Sm to rewrite goals.
  • Useful for debugging incomplete Coq proofs involving natural-number arithmetic.

Quick Start

Open your Coq file and apply the inductive proof steps described here to establish addition commutativity for natural numbers.

Frequently Asked Questions about prove-plus-comm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prove addition commutativity for natural numbers in Coq?

To prove addition commutativity for natural numbers in Coq, apply a structured inductive proof pattern, using lemmas like plus_n_O and plus_n_Sm to rewrite the base and inductive step goals.

Why does my Coq natural-number arithmetic proof fail during the inductive step?

Your Coq natural-number arithmetic proof may fail if the inductive step is not properly rewritten; use the plus_n_Sm lemma to simplify successor expressions and align the goal with your induction hypothesis.

What is the best way to debug incomplete Coq proofs involving natural-number arithmetic?

The best way to debug incomplete Coq proofs involving natural-number arithmetic is to follow a structured inductive proof strategy, checking if standard lemmas like plus_n_O and plus_n_Sm apply to your current goal.

When do I need to use the plus_n_O and plus_n_Sm lemmas in Coq?

You need to use the plus_n_O and plus_n_Sm lemmas in Coq when rewriting natural-number arithmetic goals during inductive proofs, specifically to simplify expressions involving zero and the successor of natural numbers.

Can I use this structured inductive proof pattern for natural-number arithmetic lemmas beyond addition commutativity?

Yes, you can apply the structured inductive proof pattern to other natural-number arithmetic lemmas in Coq, provided the proof relies on standard arithmetic lemmas and follows similar base and inductive step structures.

Do I need any external libraries to complete natural-number arithmetic proofs in Coq?

No external libraries are required; this approach assumes a standard Coq development environment and relies on applying built-in natural-number arithmetic lemmas to establish your inductive proofs.