AFTD Auto-Formalizing Theoretical Domains

not_is_hyperplane_section_empty

theoremverified

The empty finset of submodules is not a hyperplane section on (Fin 6 → ZMod 2).

Statement

theorem not_is_hyperplane_section_empty : ¬ is_hyperplane_section ∅
Source
folklore
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • is_hyperplane_sectionA finite set (Finset) K of submodules of the 6-dimensional vector space (Fin 6 → ZMod 2) over ZMod 2 is a hyperplane section if and only…
  • two_pow_eq_succ_iffFor a natural d, two to the power d equals d+1 exactly when d is zero or one.

Read back from the Lean

The empty finset of submodules of $(\mathbb{Z}/2\mathbb{Z})^6$ is not a hyperplane section (i.e. does not satisfy is_hyperplane_section).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

By definition, a hyperplane section of submodules must contain exactly 45 elements. Since the empty set has cardinality 0, it cannot satisfy this requirement (0 ≠ 45). The proof unfolds the definition of `is_hyperplane_section` and concludes immediately by simplification.

  1. The empty set is not a hyperplane section (¬is_hyperplane_section ∅). automation

    By definition, any hyperplane section must have cardinality 45. Unfolding `is_hyperplane_section` produces a conjunction whose first condition is `∅.card = 45`. Since the cardinality of the empty set is 0, this simplifies to `0 = 45`, which is false. The tactic `simpa` detects this contradiction and closes the goal. The lemma `two_pow_eq_succ_iff` passed to `simpa` is an artifact of the tactic search and plays no role in the mathematical argument.

    line 2

    uses two_pow_eq_succ_iff

    theorem not_is_hyperplane_section_empty : ¬ is_hyperplane_section ∅ := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [is_hyperplane_section] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)
two_pow_eq_succ_iff
For any natural number d, 2^d = d + 1 if and only if d = 0 or d = 1.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- Sanity lemma: the empty set is not a hyperplane section. -/theorem not_is_hyperplane_section_empty : ¬ is_hyperplane_section ∅ := by first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff | (simp only [is_hyperplane_section] at *; first | exact two_pow_eq_succ_iff | (apply two_pow_eq_succ_iff <;> assumption) | (apply two_pow_eq_succ_iff <;> simp_all) | simpa using two_pow_eq_succ_iff)
See it in the graphDiscuss this resultChallenge it