{
  "id": "6702",
  "ident": "NS.06702",
  "slug": "oeis-64313--a-4",
  "title": "Integer part of area of a regular polygon with $n$ sides each of length 1 · a_4",
  "status": "test",
  "statement_status": "reviewed",
  "statement_md": null,
  "subjects": [
    "math.MG",
    "msc:51"
  ],
  "tags": [],
  "collection": "oeis",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "OeisA64313.a_4",
  "statement_lean": "theorem a_4 : a 4 = 1",
  "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# Integer part of area of a regular polygon with $n$ sides each of length 1\n\nThe area of a regular $n$-gon with side length 1 is given by\n$\\frac{n}{4} \\cot(\\pi / n) = \\frac{n}{4 \\tan(\\pi / n)}$.\n\n*References:*\n- [A064313](https://oeis.org/A064313)\n-/\n\n@[expose] public section\n\nnamespace OeisA64313\n\n/-- The exact area of a regular $n$-gon with side length 1. -/\nnoncomputable def area (n : ℕ) : ℝ :=\n  (n : ℝ) / (4 * Real.tan (Real.pi / (n : ℝ)))\n\n/-- Integer part of area of a regular polygon with $n$ sides each of length 1. -/\nnoncomputable def a (n : ℕ) : ℕ :=\n  (Int.floor (area n)).toNat\n\n@[category test, AMS 51]\ntheorem a_1 : a 1 = 0 := by\n  dsimp [a, area]\n  have h : Real.pi / ((1 : ℕ) : ℝ) = Real.pi := by norm_num\n  rw [h, Real.tan_pi]\n  norm_num\n\n@[category test, AMS 51]\ntheorem a_2 : a 2 = 0 := by\n  dsimp [a, area]\n  rw [Real.tan_pi_div_two]\n  norm_num\n\n@[category test, AMS 51]\ntheorem a_3 : a 3 = 0 := by\n  dsimp [a, area]\n  rw [Real.tan_pi_div_three]\n  have hf : Int.floor ((3 : ℝ) / (4 * Real.sqrt 3)) = 0 := by\n    rw [Int.floor_eq_iff]\n    norm_num\n    have h_sqrt : (1 : ℝ) < Real.sqrt 3 := Real.lt_sqrt_of_sq_lt (by norm_num)\n    constructor\n    · positivity\n    · have : (3 : ℝ) < 4 * Real.sqrt 3 := by linarith\n      exact (div_lt_one (by positivity)).mpr this\n  rw [hf]\n  rfl\n\n@[category test, AMS 51]\ntheorem a_4 : a 4 = 1 := by\n  dsimp [a, area]\n  have h : (4 : ℝ) / (4 * Real.tan (Real.pi / 4)) = 1 := by\n    rw [Real.tan_pi_div_four]\n    ring\n  rw [h]\n  have hf : Int.floor (1 : ℝ) = 1 := by\n    rw [Int.floor_eq_iff]\n    constructor <;> norm_num\n  rw [hf]\n  rfl\n\n@[category test, AMS 51]\ntheorem a_6 : a 6 = 2 := by\n  dsimp [a, area]\n  rw [Real.tan_pi_div_six]\n  have h_eq : (6 : ℝ) / (4 * (1 / Real.sqrt 3)) = 3 * Real.sqrt 3 / 2 := by\n    have : 0 < Real.sqrt 3 := Real.sqrt_pos.mpr (by norm_num)\n    field_simp\n    ring\n  rw [h_eq]\n  have hf : Int.floor (3 * Real.sqrt 3 / 2) = 2 := by\n    rw [Int.floor_eq_iff]\n    norm_num\n    have hle : (4 / 3 : ℝ) ≤ Real.sqrt 3 := by\n      have : (4 / 3 : ℝ) ^ 2 ≤ 3 := by norm_num\n      exact (Real.le_sqrt (by norm_num) (by norm_num)).mpr this\n    have hlt : Real.sqrt 3 < 2 := by\n      have : (3 : ℝ) < 2 ^ 2 := by norm_num\n      exact (Real.sqrt_lt (by norm_num) (by norm_num)).mpr this\n    constructor <;> linarith\n  rw [hf]\n  rfl\n\n/--\n\"Usually (perhaps always?) $\\lfloor n^2 / (4\\pi) - \\pi / 12 \\rfloor$ for a polygon of circumference $n$.\nNote that the area of a circle with circumference $C$ is $C^2 / (4\\pi)$.\"\n-/\n@[category research open, AMS 51]\ntheorem conjecture (n : ℕ) (hn : 3 ≤ n) :\n    a n = (Int.floor ((n : ℝ) ^ 2 / (4 * Real.pi) - Real.pi / 12)).toNat := by\n  sorry\n\nend OeisA64313\n",
  "statement_hash": "7a36d8362858031c3f88ab221df359b9d0ce656379049cdcec05684d72adf2c8",
  "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."
}