| 1 | /- |
| 2 | Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7, |
| 3 | file FormalConjectures/Wikipedia/InscribedSquare.lean, declaration |
| 4 | InscribedSquare.inscribed_square_problem. |
| 5 | Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 |
| 6 | (https://www.apache.org/licenses/LICENSE-2.0). |
| 7 | Port: `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 |
| 9 | comments 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 |
| 11 | structure and the proposition are unchanged. |
| 12 | -/ |
| 13 | module |
| 14 | |
| 15 | public import statements.Defs.Geometry2d |
| 16 | public import Mathlib.Analysis.Complex.Circle |
| 17 | public import Mathlib.Topology.Defs.Induced |
| 18 | |
| 19 | @[expose] public section |
| 20 | |
| 21 | open Topology |
| 22 | open scoped EuclideanGeometry |
| 23 | |
| 24 | namespace InscribedSquare |
| 25 | |
| 26 | |
| 27 | structure 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 | |
| 34 | theorem inscribed_square_problem : |
| 35 | ∀ (γ : Circle → ℝ²) (hγ : IsEmbedding γ), |
| 36 | ∃ t₁ t₂ t₃ t₄, IsRectangle (γ t₁) (γ t₂) (γ t₃) (γ t₄) 1 := by |
| 37 | sorry |
| 38 | |
| 39 | end 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 |
| 43 | target. -/ |
| 44 | theorem InscribedSquare : type_of% @InscribedSquare.inscribed_square_problem := by |
| 45 | sorry |