Skip to content

[claim] 028Q, 03KB: two-point and finite discrete schemes are affine #21

Open

Description

Task, tag or exercise

028Q, 03KB

Target tier

StacksFrontier

Statement

028Q (Exercise 111.33.2): Suppose that $X$ is a scheme whose underlying topological space has 2 points. Show that $X$ is an affine scheme.

03KB (Exercise 111.33.3): Suppose that $X$ is a scheme whose underlying topological space is a finite discrete set. Show that $X$ is an affine scheme.

Proposed Lean statement

add_to_stacks 03KB
  AlgebraicGeometry.instIsAffineOfFiniteOfDiscreteTopologyCarrierCarrierCommRingCat

@[stacks 028Q]
theorem AlgebraicGeometry.Scheme.isAffine_of_card_eq_two (X : Scheme.{u}) (h : Nat.card X = 2) :
    IsAffine X

Existing work

  • 03KB is exactly Mathlib's instance [Finite X] [DiscreteTopology X] : IsAffine X (Mathlib/AlgebraicGeometry/Limits.lean), already registered in this library as Tag 02O0 in StacksFrontier/MathlibRegistrations/Ch26.lean. So 03KB is a registration only, with no new proof.
  • For 028Q: Mathlib's AlgebraicGeometry.exists_isAffineOpen_mem_and_subset, AlgebraicGeometry.Scheme.topIso, AlgebraicGeometry.IsAffine.of_isIso, discreteTopology_iff_isOpen_singleton, Nat.card_eq_two_iff, and the instance above.
  • No declaration in StacksCore or StacksFrontier carries either tag, and I found no open claim or pull request for them.

Proof outline

028Q: write $X = {x, y}$ and choose an affine open neighbourhood of each point. If either neighbourhood contains both points, it is all of $X$, so $X$ is affine. Otherwise both singletons are open, so $X$ is finite and discrete, and 02O0 / 03KB applies.

No prerequisites are missing. I have a local prototype of both declarations in a new file StacksFrontier/Exercises/TwoPointScheme.lean that compiles against the pinned Mathlib (v4.35.0), with #print axioms reporting only propext, Classical.choice and Quot.sound.

Disclosure: this blueprint and the prototype were prepared with AI assistance (Claude Code).

References

Before submitting

  • I checked the open claims and the library for existing work on this.
  • I will wait for blueprint-approved before opening a pull request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions