prove-plus-comm

Complete inductive proofs of addition commutativity in Coq using arithmetic lemmas.

134|21|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/letta-ai/skills --skill prove-plus-comm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prove-plus-comm
Source: https://github.com/letta-ai/skills/tree/main/ai/benchmarks/letta/terminal-bench-2/trajectory-feedback/prove-plus-comm
Command: npx skills add https://github.com/letta-ai/skills --skill prove-plus-comm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides completing induction proofs in Coq, focusing on addition commutativity and related arithmetic lemmas, including proper use of plus_n_O and plus_n_Sm.

Core Features & Use Cases

  • Stepwise induction reasoning and lemma application
  • Guided usage of common arithmetic lemmas
  • Compilation-based verification to ensure proof valid

Quick Start

Fill in the missing base and inductive cases to complete the addition commutativity proof, using plus_n_O and plus_n_Sm.

Frequently Asked Questions about prove-plus-comm

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

FAQPage Schema
How do I complete inductive proofs for addition in Coq?

Inductive proofs for addition break into base and inductive cases. Use lemmas like plus_n_O (addition by zero) and plus_n_Sm (addition by successor) with tactics such as simpl and rewrite to discharge goals step by step, then verify the complete proof compiles in Coq.

What are plus_n_O and plus_n_Sm lemmas used for in Coq arithmetic proofs?

plus_n_O and plus_n_Sm are standard arithmetic lemmas in Coq's Arith library. plus_n_O proves n + 0 = n; plus_n_Sm proves n + S m = S (n + m). They simplify addition goals during inductive proof steps.

How do I prove addition commutativity in Coq using induction?

Prove addition commutativity by induction on one argument. Apply plus_n_O in the base case and the inductive hypothesis with plus_n_Sm in the inductive case. Use rewrite and simpl tactics to reduce goals, then verify compilation succeeds.

Can I use this approach with natural numbers in Coq projects?

Yes. This workflow applies to natural-number arithmetic proofs in any Coq project using the Arith library. It guides tactic selection and lemma application for base and inductive steps on recursive numeric properties.

What tactics are essential for completing Coq induction proofs?

Essential tactics include simpl (simplification), rewrite (lemma substitution), and IH (inductive hypothesis application). These tactics work together to reduce proof goals after lemma selection and support compilation verification.

How do I verify a completed Coq proof is correct?

Verification occurs through Coq compilation. After applying lemmas and tactics to complete base and inductive cases, compile the project. Successful compilation confirms the proof is valid and syntactically sound.