proof_by_contradiction
CommunityProve statements via contradiction in Lean 4.
Authorbneb
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Proof by contradiction provides a structured method to prove statements by assuming the negation and deriving False, letting you conclude the original assertion holds. In Lean 4, this approach supports both constructive and non-constructive arguments and helps formalize classical reasoning when explicit witnesses are unavailable.
Core Features & Use Cases
- Tactic guidance: use by_contra to introduce a negated goal, push_neg to simplify it, and absurd to close the contradiction.
- Education & verification: ideal for teaching reductio ad absurdum, and for proving irrationality or non-existence results within Lean 4.
- Applicability in formal proofs: supports classical reasoning in mathematical libraries where existence or equality cannot be constructed directly.
Quick Start
Start a Lean proof by assuming the negation of the goal with by_contra and derive a contradiction to conclude the goal.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: proof_by_contradiction Download link: https://github.com/bneb/perqed/archive/main.zip#proof-by-contradiction Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.