{
  "id": "6467",
  "ident": "NS.06467",
  "slug": "oeis-38552",
  "title": "Conjectures associated with A038552",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "The Stark-Heegner theorem [Sta67] implies that the squarefree $k > 0$ such that\n$\\mathbb{Q}(\\sqrt{-k})$ has class number $1$ are exactly $\\{1, 2, 3, 7, 11, 19, 43, 67, 163\\}$.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA38552.starkHeegner_classNumberOne",
  "statement_lean": "theorem starkHeegner_classNumberOne :\n    {k : ℕ | Squarefree k ∧ HasClassNumber k 1} = {1, 2, 3, 7, 11, 19, 43, 67, 163}",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Conjectures associated with A038552\n\nA038552 lists the largest squarefree number $k$ such that the imaginary quadratic field\n$\\mathbb{Q}(\\sqrt{-k})$ has class number $n$.\n\nThe conjectures state that:\n1. All terms are congruent to $19 \\pmod{24}$.\n2. This is also the largest absolute value of negative fundamental discriminant $d$ for\n   class number $n$.\n3. For even $n$, if $k$ is the largest odd number with $h(-k) = n$ and $k'$ is the largest\n   even number with $h(-k') = n$, then $k > k'$. Here $h(D)$ is the class number of the\n   quadratic field with discriminant $D$, so $k$ and $k'$ are absolute values of negative\n   fundamental discriminants, not radicands. The source states conjecture 2 in this form.\n\nThe squarefree condition in the definition is needed for the maximum to exist, since\n$\\mathbb{Q}(\\sqrt{-k}) = \\mathbb{Q}(\\sqrt{-4k})$.\n\nConjecture 2 is not a restatement of the definition. Both maxima range over the same imaginary\nquadratic fields, but they maximize different integers attached to those fields. A038552 uses\nthe squarefree radicand $k$, whereas the discriminant of $\\mathbb{Q}(\\sqrt{-k})$ is $-k$ for\n$k \\equiv 3 \\pmod 4$ and $-4k$ otherwise. The map $k \\mapsto |d|$ is not monotone: it sends $2$\nto $8$ and $3$ to $3$. So conjecture 2 says that the largest term $k$ satisfies\n$k \\equiv 3 \\pmod 4$, and that $4k' \\le k$ for every $k' \\equiv 1, 2 \\pmod 4$ with class\nnumber $n$.\n\n*References:*\n- [Sta67] Stark, Harold M. \"A complete determination of the complex quadratic fields of\n  class-number one.\" Michigan Mathematical Journal 14.1 (1967): 1-27.\n- [oeis.org/A038552](https://oeis.org/A038552)\n-/\n\n@[expose] public section\n\nopen NumberField Polynomial\n\nnamespace OeisA38552\n\n/-- The class number of the imaginary quadratic field $\\mathbb{Q}(\\sqrt{-k})$ equals $n$. -/\ndef HasClassNumber (k n : ℕ) : Prop :=\n  ∃ (h : Irreducible (X ^ 2 + C (k : ℚ))),\n  haveI := Fact.mk h\n  NumberField.classNumber (AdjoinRoot (X ^ 2 + C (k : ℚ))) = n\n\n/-- $k$ is maximal among squarefree numbers such that $\\mathbb{Q}(\\sqrt{-k})$ has class number $n$.\nThis defines the $n$-th term of A038552. -/\ndef IsA038552 (n k : ℕ) : Prop :=\n  MaximalFor (fun m => Squarefree m ∧ HasClassNumber m n) id k\n\n/-- The class number of the quadratic field with discriminant $d$. -/\nnoncomputable def classNumberOfDiscriminant (d : ℤ) : ℕ :=\n  haveI := Classical.dec (Irreducible (X ^ 2 - C (d : ℚ)))\n  if h : Irreducible (X ^ 2 - C (d : ℚ)) then\n    haveI := Fact.mk h\n    NumberField.classNumber (AdjoinRoot (X ^ 2 - C (d : ℚ)))\n  else 0\n\n/-- $|d|$ is the largest absolute value among negative fundamental discriminants\nwith class number $n$. -/\ndef IsLargestNegFundDiscrForClassNumber {n : ℕ} (absD : ℕ) : Prop :=\n  IsGreatest {m : ℕ | IsFundamentalDiscr (-m : ℤ) ∧ classNumberOfDiscriminant (-m : ℤ) = n}\n    absD\n\n/-- The Stark-Heegner theorem [Sta67] implies that the squarefree $k > 0$ such that\n$\\mathbb{Q}(\\sqrt{-k})$ has class number $1$ are exactly $\\{1, 2, 3, 7, 11, 19, 43, 67, 163\\}$. -/\n@[category research solved, AMS 11]\ntheorem starkHeegner_classNumberOne :\n    {k : ℕ | Squarefree k ∧ HasClassNumber k 1} = {1, 2, 3, 7, 11, 19, 43, 67, 163} := by\n  sorry\n\n/-- $\\mathbb{Q}(\\sqrt{-163})$ has class number $1$. -/\n@[category API, AMS 11]\ntheorem hasClassNumber_163_1 : HasClassNumber 163 1 := by\n  have h := starkHeegner_classNumberOne\n  simp only [Set.ext_iff, Set.mem_ofPred_eq, Set.mem_insert_iff, Set.mem_singleton_iff] at h\n  exact ((h 163).mpr (by decide)).2\n\n/-- $163$ is the largest squarefree $k$ with class number $1$. -/\n@[category test, AMS 11]\ntheorem isA038552_1_163 : IsA038552 1 163 := by\n  refine ⟨⟨(by norm_num : Nat.Prime 163).squarefree, hasClassNumber_163_1⟩, ?_⟩\n  intro m ⟨hm_sq, hm_class⟩ (hle : 163 ≤ m)\n  have hm_in : m ∈ ({1, 2, 3, 7, 11, 19, 43, 67, 163} : Set ℕ) :=\n    starkHeegner_classNumberOne ▸ Set.mem_ofPred.mpr ⟨hm_sq, hm_class⟩\n  simp only [Set.mem_insert_iff, Set.mem_singleton_iff, id] at hm_in ⊢\n  lia\n\n/-\nThe values for other class numbers in A038552 come from the papers\n* Duncan A. Buell, Small class numbers and extreme values of L-functions of quadratic fields,\nMath. Comp., 31 (1977), 786-796.\n* M. Watkins, Class numbers of imaginary quadratic fields, Mathematics of Computation 73 (2004),\npp. 907-938.\n-/\n\n/-- All terms of A038552 are congruent to $19 \\pmod{24}$. -/\n@[category research open, AMS 11]\ntheorem mod_24_of_isA038552 {n k : ℕ} (h : IsA038552 n k) : k % 24 = 19 := by\n  sorry\n\n/-- A038552 also gives the largest absolute value of negative fundamental discriminant\nfor each class number. -/\n@[category research open, AMS 11]\ntheorem isA038552_eq_largestNegFundDisc {n k : ℕ} (h : IsA038552 n k) :\n    IsLargestNegFundDiscrForClassNumber (n := n) k := by\n  sorry\n\n/-- For even class number $n$, let $k$ be the largest odd number such that the quadratic field\nwith discriminant $-k$ has class number $n$, and let $k'$ be the largest even such number, when\nthey exist. Then $k > k'$. -/\n@[category research open, AMS 11]\ntheorem largestEven_lt_largestOdd_negFundDisc {n k k' : ℕ} (hn : Even n)\n    (hk : IsGreatest {m : ℕ | Odd m ∧ IsFundamentalDiscr (-m : ℤ) ∧\n      classNumberOfDiscriminant (-m : ℤ) = n} k)\n    (hk' : IsGreatest {m : ℕ | Even m ∧ IsFundamentalDiscr (-m : ℤ) ∧\n      classNumberOfDiscriminant (-m : ℤ) = n} k') : k' < k := by\n  sorry\n\nend OeisA38552\n",
  "statement_hash": "c2bb6b87a566aae05767f4d344542f4f8fcb10c09680f6bb4e1586b013711a99",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}