maximality_zorns_lemma

Apply Zorn's Lemma to deduce maximal elements in Lean 4 proofs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Finds a maximal element in nonempty partially ordered sets using Zorn's Lemma, enabling non-constructive existence proofs in algebra, set theory, and related fields.

Core Features & Use Cases

  • Define a partial order on a collection of objects.
  • Show that every chain has an upper bound within the set.
  • Conclude existence of a maximal element via Zorn's Lemma.
  • Lean 4 templates and proof sketches for common maximal-object existence results (e.g., maximal ideal, maximal linearly independent set).

Quick Start

Provide a nonempty poset with every chain bounded above, then apply Zorn's Lemma to obtain a maximal element.

Frequently Asked Questions about maximality_zorns_lemma

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

FAQPage Schema
How do I prove the existence of a maximal element in a partially ordered set using Lean 4?

To prove the existence of a maximal element in Lean 4, you provide a nonempty partially ordered set and show every chain has an upper bound, then apply Zorn's Lemma to deduce the maximal element non-constructively.

What mathematical objects can I prove exist using Zorn's Lemma in theorem-proving?

Using Zorn's Lemma, you can prove the existence of maximal ideals, maximal linearly independent sets, and maximal cliques. It applies to non-constructive existence proofs in algebra, order theory, and combinatorics.

What prerequisites are needed to apply Zorn's Lemma for a non-constructive existence proof?

To apply Zorn's Lemma, you need a nonempty partially ordered set where every chain has an upper bound within the set. You also need access to a formalization context like Lean 4 templates.

When should I use Zorn's Lemma instead of constructive methods in formalization?

Use Zorn's Lemma when you need to guarantee a maximal object non-constructively in algebra or set theory. It is necessary when explicit construction is difficult and you can prove every chain has an upper bound.

Does this approach work for proving maximal ideals exist in Lean 4?

Yes, this approach works for proving maximal ideals exist in Lean 4. The Skill provides templates and proof sketches for common maximal-object existence results, including maximal ideals in ring theory.