# statements/InscribedSquare.lean @ c0ea08d220800adfb55af275ee0ccf51d137b0da

````
/-
Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
file FormalConjectures/Wikipedia/InscribedSquare.lean, declaration
InscribedSquare.inscribed_square_problem.
Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0).
Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports and the family's
`Defs.Geometry2d` (upstream's notation `ℝ²`); the `@[category …, AMS …]` attribute and the doc
comments dropped; only `IsRectangle` and the target kept (not the rectangle and smooth variants).
`open ContDiff Manifold` dropped with the smooth variants, the only ones that used it. The
structure and the proposition are unchanged.
-/
module

public import statements.Defs.Geometry2d
public import Mathlib.Analysis.Complex.Circle
public import Mathlib.Topology.Defs.Induced

@[expose] public section

open Topology
open scoped EuclideanGeometry

namespace InscribedSquare

/-- `a b c d` form a nondegenerate rectangle (diagonals `a c`, `b d`) of aspect ratio `ratio`. -/
structure IsRectangle (a b c d : ℝ²) (ratio : ℝ) : Prop where
  diagonal_midpoints_eq : a + c = b + d
  diagonal_lengths_eq : dist a c = dist b d
  a_ne_b : a ≠ b
  b_ne_c : b ≠ c
  has_ratio : (dist a b) / (dist b c) = ratio

theorem inscribed_square_problem :
    ∀ (γ : Circle → ℝ²) (hγ : IsEmbedding γ),
      ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) 1 := by
  sorry

end InscribedSquare

/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's
`InscribedSquare.inscribed_square_problem` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a
target. -/
theorem InscribedSquare : type_of% @InscribedSquare.inscribed_square_problem := by
  sorry

````

API: `https://git.neoopensource.com/v1/repos/math/blob?rev=c0ea08d220800adfb55af275ee0ccf51d137b0da&path=statements%2FInscribedSquare.lean`
