Long horizon. This asks whether planar point sets minimizing the number of distinct distances always have at least two non-similar optimal shapes. Knowledge itself.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51import FormalConjectures.ErdosProblems.«91»
namespace Submission
open Erdos91
theorem solution : type_of% @Erdos91.erdos_91.test.dissimilar_circleSeven_wheelSeven := by
rintro ⟨f, hf⟩
obtain ⟨r, -, hr⟩ := f.edist_eq'
have hd : ∀ x y : EuclideanSpace ℝ (Fin 2), dist (f x) (f y) = (r : ℝ) * dist x y := by
intro x y
have h := hr x y
rw [edist_dist, edist_dist] at h
have h2 : ENNReal.ofReal (dist (f.toFun x) (f.toFun y)) = ENNReal.ofReal ((r : ℝ) * dist x y) := by
rw [h, ENNReal.ofReal_mul (NNReal.coe_nonneg r), ENNReal.ofReal_coe_nnreal]
exact (ENNReal.ofReal_eq_ofReal_iff dist_nonneg
(mul_nonneg (NNReal.coe_nonneg r) dist_nonneg)).mp h2
obtain ⟨C, ρ, hC⟩ : ∃ c : EuclideanSpace ℝ (Fin 2), ∃ ρ : ℝ, ∀ p ∈ circleSeven, dist p c = ρ := by
refine ⟨!₂[1 / (2 * Real.sin (Real.pi / 7)) * Real.cos (Real.pi / 7),
1 / (2 * Real.sin (Real.pi / 7)) * Real.sin (4 * Real.pi / 7)],
1 / (2 * Real.sin (Real.pi / 7)), ?_⟩
intro p hp
simp only [circleSeven, Finset.mem_image, Finset.mem_range] at hp
obtain ⟨k, -, rfl⟩ := hp
have hR : 0 ≤ 1 / (2 * Real.sin (Real.pi / 7)) := by
have : 0 < Real.sin (Real.pi / 7) :=
Real.sin_pos_of_pos_of_lt_pi (by positivity) (by linarith [Real.pi_pos])
positivity
rw [EuclideanSpace.dist_eq, Fin.sum_univ_two]
simp only [Real.dist_eq, sq_abs, Matrix.cons_val_zero, Matrix.cons_val_one]
conv_rhs => rw [← Real.sqrt_sq hR]
congr 1
linear_combination (1 / (2 * Real.sin (Real.pi / 7))) ^ 2 *
Real.sin_sq_add_cos_sq (2 * Real.pi * k / 7)
have hw : ∀ w ∈ wheelSeven, dist w (f C) = r * ρ := by
intro w hw
rw [← Finset.mem_coe, ← hf] at hw
obtain ⟨p, hp, rfl⟩ := hw
rw [hd, hC p (Finset.mem_coe.mp hp)]
have h0 := hw !₂[1, Real.sqrt 3 / 2] (by simp [wheelSeven])
have h1 := hw !₂[2, Real.sqrt 3 / 2] (by simp [wheelSeven])
have h5 := hw !₂[1 / 2, 0] (by simp [wheelSeven])
have h6 := hw !₂[3 / 2, 0] (by simp [wheelSeven])
have e01 : dist (!₂[1, Real.sqrt 3 / 2]) (f C) = dist (!₂[2, Real.sqrt 3 / 2]) (f C) := by
rw [h0, h1]
have e56 : dist (!₂[1 / 2, 0]) (f C) = dist (!₂[3 / 2, 0]) (f C) := by
rw [h5, h6]
simp only [EuclideanSpace.dist_eq, Fin.sum_univ_two, Real.dist_eq, sq_abs,
Matrix.cons_val_zero, Matrix.cons_val_one] at e01 e56
rw [Real.sqrt_inj (by positivity) (by positivity)] at e01 e56
have hx1 : (f C) 0 = 3 / 2 := by nlinarith
have hx2 : (f C) 0 = 1 := by nlinarith
linarith
end Submission
Check it yourself
Project
formal-conjectures
Commit
f606af160664c5a10952e9a957b100a1cd45bbeb
Lean
leanprover/lean4:v4.33.1
Mathlib
0df444a360eaa60ab8c11dca51a86af692955474
With Git and Elan installed, put the download in a fresh working directory and run this there. Use a disposable environment. Lean prints the axioms at the end. The checker allows propext, Classical.choice, and Quot.sound.
(
set -eu
proof="$PWD/9e2d061f-fe53-48ce-a32e-f3f8cf157c14.lean"
git clone https://github.com/google-deepmind/formal-conjectures.git formal-conjectures
git -C formal-conjectures checkout --detach f606af160664c5a10952e9a957b100a1cd45bbeb
cd formal-conjectures
elan toolchain install leanprover/lean4:v4.33.1
lake +leanprover/lean4:v4.33.1 exe cache get
lake +leanprover/lean4:v4.33.1 build '+FormalConjectures.ErdosProblems.«91»'
check_dir="$(mktemp -d)"
trap 'rm -f "$check_dir/Check.lean"; rmdir "$check_dir"' EXIT
printf "%s\n" "import Lean" > "$check_dir/Check.lean"
cat "$proof" >> "$check_dir/Check.lean"
cat >> "$check_dir/Check.lean" <<'SOLVE_CHECK'
example : type_of% @_root_.Erdos91.erdos_91.test.dissimilar_circleSeven_wheelSeven := @_root_.Submission.solution
#print axioms Submission.solution
SOLVE_CHECK
lake +leanprover/lean4:v4.33.1 env lean "$check_dir/Check.lean"
)
Download the receipt verifier and public key. Run python3 verify-proof.py certificate.json 9e2d061f-fe53-48ce-a32e-f3f8cf157c14.lean proof-key.pem with OpenSSL 3.