duality_arguments

NLP-based grammar and style correction for your writing, available as a VS Code extension and/or standalone Python library.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/bneb/perqed --skill duality-arguments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duality_arguments
Source: https://github.com/bneb/perqed/tree/main/.agents/skills/duality_arguments
Command: npx skills add https://github.com/bneb/perqed --skill duality-arguments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Duality arguments help prove properties of primal mathematical objects by translating them into dual problems and exploiting weak or strong duality to transfer bounds or optimality results.

Core Features & Use Cases

  • Lean 4 templates and Mathlib references to support formal duality proofs.
  • Illustrative examples from LP, order theory, and game theory that demonstrate dual certificates.
  • Guidance for applying duality to prove min-max theorems and optimality conditions.

Quick Start

Input a primal optimization problem and generate its dual together with a short certificate of optimality.

Frequently Asked Questions about duality_arguments

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

FAQPage Schema
How do I prove primal optimization problems using duality in Lean 4?

To prove primal problems via duality in Lean 4, transform them into dual problems and exploit weak or strong duality to transfer bounds. The Skill provides Lean 4 templates and Mathlib references for formal duality proofs.

What is weak and strong duality in mathematical optimization theory?

Weak and strong duality in optimization theory bound primal and dual problems. Weak duality provides dual bounds, while strong duality ensures matching optimal values, enabling dual certificates to prove min-max theorems and optimality conditions.

How do I generate a dual certificate for a linear programming problem?

Generate a dual certificate for a linear programming problem by applying duality transformations to derive bounds. The Skill provides illustrative LP examples demonstrating how to extract dual certificates and prove optimality.

Can I apply duality arguments to combinatorial optimization and game theory proofs?

Yes, you can apply duality arguments to combinatorial optimization and game theory proofs. The Skill demonstrates translating these problems into duals to derive dual certificates and prove min-max theorems.

Do I need Mathlib installed to use Lean 4 duality proof templates?

Using Lean 4 duality proof templates requires Mathlib references to support formal proofs. The Skill delivers templates relying on Mathlib's mathematical groundwork to construct dual certificates and verify optimality conditions.