02fc4285 / statements / InscribedSquare.lean

1/-
2Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
3file FormalConjectures/Wikipedia/InscribedSquare.lean, declaration
4InscribedSquare.inscribed_square_problem.
5Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
6(https://www.apache.org/licenses/LICENSE-2.0).
7Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports and the family's
8`Defs.Geometry2d` (upstream's notation `ℝ²`); the `@[category …, AMS …]` attribute and the doc
9comments dropped; only `IsRectangle` and the target kept (not the rectangle and smooth variants).
10`open ContDiff Manifold` dropped with the smooth variants, the only ones that used it. The
11structure and the proposition are unchanged.
12-/
13module
14
15public import statements.Defs.Geometry2d
16public import Mathlib.Analysis.Complex.Circle
17public import Mathlib.Topology.Defs.Induced
18
19@[expose] public section
20
21open Topology
22open scoped EuclideanGeometry
23
24namespace InscribedSquare
25
26/-- `a b c d` form a nondegenerate rectangle (diagonals `a c`, `b d`) of aspect ratio `ratio`. -/
27structure IsRectangle (a b c d : ℝ²) (ratio : ℝ) : Prop where
28 diagonal_midpoints_eq : a + c = b + d
29 diagonal_lengths_eq : dist a c = dist b d
30 a_ne_b : a ≠ b
31 b_ne_c : b ≠ c
32 has_ratio : (dist a b) / (dist b c) = ratio
33
34theorem inscribed_square_problem :
35 ∀ (γ : Circle → ℝ²) (hγ : IsEmbedding γ),
36 ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) 1 := by
37 sorry
38
39end InscribedSquare
40
41/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's
42`InscribedSquare.inscribed_square_problem` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a
43target. -/
44theorem InscribedSquare : type_of% @InscribedSquare.inscribed_square_problem := by
45 sorry