prove-plus-comm

Complete missing Coq proofs for natural number addition properties using induction.

127|27|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill prove-plus-comm-lazyfroglol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prove-plus-comm
Source: https://github.com/lazyFrogLOL/Harness_Engineering/tree/main/skills/prove-plus-comm
Command: npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill prove-plus-comm-lazyfroglol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It assists users in finishing incomplete Coq proofs that involve natural number arithmetic, especially addition commutativity and related lemmas.

Core Features & Use Cases

  • Provides a step‑by‑step approach to analyze proof structure, apply appropriate lemmas, and rewrite goals correctly.
  • Guides users on common pitfalls such as wrong rewrite direction, missing imports, and incorrect induction variables.
  • Ideal for developers and researchers formalizing arithmetic properties in Coq.

Quick Start

Use the prove-plus-comm skill to complete a Coq proof of 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 in Coq, apply induction on natural numbers and rewrite goals using standard lemmas like plus_n_O and plus_n_Sm. This skill guides you through the step-by-step process to complete such arithmetic proofs correctly.

Why does my Coq proof for arithmetic properties fail during induction?

Coq arithmetic proofs often fail during induction due to common pitfalls like wrong rewrite direction, missing imports, or incorrect induction variables. This skill analyzes your proof structure and helps apply appropriate lemmas to resolve these issues.

Do I need to import the Arith library to prove natural number addition lemmas in Coq?

Yes, you need to import the Arith library to prove natural number addition lemmas in Coq. This skill requires the Arith library to access standard lemmas like plus_n_O and plus_n_Sm needed for finishing commutativity and associativity proofs.

What Coq lemmas are used to prove natural number addition commutativity?

The standard Coq lemmas used to prove natural number addition commutativity are plus_n_O and plus_n_Sm. This skill relies on these specific lemmas to correctly rewrite goals when formalizing arithmetic properties involving induction.

Can I use this approach to prove associativity and related arithmetic lemmas in Coq?

Yes, you can use this approach to prove associativity and related arithmetic lemmas in Coq. The skill is designed to complete incomplete proofs concerning natural number addition properties, guiding you through the necessary induction steps and lemma applications.