Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_ThomsonCampaign_Configurations.lean
qedmarket’s copy of theproofnetwork/open-problems@860a535, 1 Dec 2026original source ↗
/-From Prove2Me, definition `ThomsonCampaign_Configurations` (https://prove2.me/definitions/ec77a7a2-0d57-4ed1-92ae-b5b969d6ba5c). Apache-2.0 per Prove2Me's terms.-/import Mathlibimport Prove2Me.Definitions.Def_ThomsonCampaign_Basic open Real namespace ThomsonCampaign /-- The D4d capped square antiprism with parameter `h`: indices `0..3` the top square (height `h`,angles `πk/2`), `4..7` the bottom square (height `-h`, angles `π/4 + πk/2`), `8` north pole, `9` south pole. -/noncomputable def cappedSquareAntiprism (h : ℝ) : Fin 10 → R3 := fun i => if (i : ℕ) < 4 then cyl (√(1 - h ^ 2)) (π * (i : ℕ) / 2) h else if (i : ℕ) < 8 then cyl (√(1 - h ^ 2)) (π / 4 + π * ((i : ℕ) - 4) / 2) (-h) else if (i : ℕ) = 8 then cyl 0 0 1 else cyl 0 0 (-1) /-- The D3h tricapped trigonal prism with parameter `z`: indices `0..2` top triangle (height `z`),`3..5` bottom triangle (height `-z`), `6..8` equatorial caps at angles `π/3 + 2πk/3`. -/noncomputable def triCapPrism (z : ℝ) : Fin 9 → R3 := fun i => if (i : ℕ) < 3 then cyl (√(1 - z ^ 2)) (2 * π * (i : ℕ) / 3) z else if (i : ℕ) < 6 then cyl (√(1 - z ^ 2)) (2 * π * ((i : ℕ) - 3) / 3) (-z) else cyl 1 (π / 3 + 2 * π * ((i : ℕ) - 6) / 3) 0 /-- Unnormalised vertices: an icosahedron (12 points, `(0,±1,±φ)` and cyclic permutations) followedby the dual dodecahedron (20 points, `(±1,±1,±1)`, `(0,±1/φ,±φ)`-type, with `(±1/φ,0,±φ)` etc. orientedso that each dodecahedron vertex is the centre of an icosahedron face). -/noncomputable def icoDodecaRaw : Fin 32 → R3 := let p := goldenRatio ![!₂[0, 1, p], !₂[1, p, 0], !₂[p, 0, 1], !₂[0, 1, -p], !₂[1, -p, 0], !₂[-p, 0, 1], !₂[0, -1, p], !₂[-1, p, 0], !₂[p, 0, -1], !₂[0, -1, -p], !₂[-1, -p, 0], !₂[-p, 0, -1], !₂[1, 1, 1], !₂[1, 1, -1], !₂[1, -1, 1], !₂[1, -1, -1], !₂[-1, 1, 1], !₂[-1, 1, -1], !₂[-1, -1, 1], !₂[-1, -1, -1], !₂[1 / p, 0, p], !₂[1 / p, 0, -p], !₂[-1 / p, 0, p], !₂[-1 / p, 0, -p], !₂[p, 1 / p, 0], !₂[p, -1 / p, 0], !₂[-p, 1 / p, 0], !₂[-p, -1 / p, 0], !₂[0, p, 1 / p], !₂[0, p, -1 / p], !₂[0, -p, 1 / p], !₂[0, -p, -1 / p]] /-- The icosahedron-plus-dodecahedron configuration on the unit sphere (32 points). -/noncomputable def icoDodeca (i : Fin 32) : R3 := ‖icoDodecaRaw i‖⁻¹ • icoDodecaRaw i end ThomsonCampaign