Documentation

LeanPool.MovingSofa.GerverSofa.KernelOnly.Core.Bundle002

Gerver sofa: related certificate and semantic modules #

Gerver sofa dependency batch #

Orientation-preserving rigid motions of the plane #

An element is represented by (c,s,tₓ,tᵧ) with c²+s²=1. Its linear part is the rotation matrix [[c,-s],[s,c]], hence every value is an element of SE(2) and not an arbitrary affine equivalence.

structure GerverSofa.SE2 :

An orientation-preserving planar rigid motion represented by rotation and translation.

  • c : ℝ

    The cosine coefficient of the rotation.

  • s : ℝ

    The sine coefficient of the rotation.

  • tx : ℝ

    The horizontal translation component.

  • ty : ℝ

    The vertical translation component.

  • unit : self.c * self.c + self.s * self.s = 1
Instances For

    Action of an orientation-preserving rigid motion on the plane.

    Equations
    Instances For

      Identity element.

      Equations
      Instances For

        Inverse orientation-preserving rigid motion.

        Equations
        Instances For
          @[simp]
          theorem GerverSofa.SE2.one_act (p : Point) :
          one.act p = p
          @[simp]
          theorem GerverSofa.SE2.inv_act_act (g : SE2) (p : Point) :
          g.inv.act (g.act p) = p
          @[simp]
          theorem GerverSofa.SE2.act_inv_act (g : SE2) (p : Point) :
          g.act (g.inv.act p) = p

          Componentwise continuity is the topology-free representation of a path in SE(2) used by the formal moving-sofa definition.

          Equations
          Instances For
            theorem GerverSofa.SE2.continuousPath_inv {g : ℝ → SE2} (hg : ContinuousPath g) :
            ContinuousPath fun (t : ℝ) => (g t).inv

            Inversion preserves continuous SE(2) paths.

            Supporting hallway and inverse motion #

            World-frame hallway obtained from the standard hallway by frame.

            Equations
            Instances For

              Membership in a supporting hallway is equivalent to standard-hallway membership after applying the inverse frame.

              The concrete reduced and 22-dimensional Romik systems #

              These are direct Lean transcriptions of equations (F1)--(F4) and of the independent equations (27)--(39), (41), (43) used by the companion verifier.

              The four real parameters of the reduced Gerver equations.

              • a : ℝ

                The first scalar parameter in the reduced equations.

              • b : ℝ

                The second scalar parameter in the reduced equations.

              • phi : ℝ

                The first switching angle.

              • theta : ℝ

                The second switching angle.

              Instances For
                noncomputable def GerverSofa.Reduced.system (p : Params) :
                Fin 4 → ℝ

                Four-dimensional reduced switching system.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  The proposition that all four reduced equations vanish.

                  Equations
                  Instances For

                    Translation, phase, and switching-angle parameters of the five Romik branches.

                    • k11 : ℝ

                      Horizontal translation coefficient for phase 1.

                    • k12 : ℝ

                      Vertical translation coefficient for phase 1.

                    • k21 : ℝ

                      Horizontal translation coefficient for phase 2.

                    • k22 : ℝ

                      Vertical translation coefficient for phase 2.

                    • k31 : ℝ

                      Horizontal translation coefficient for phase 3.

                    • k32 : ℝ

                      Vertical translation coefficient for phase 3.

                    • k41 : ℝ

                      Horizontal translation coefficient for phase 4.

                    • k42 : ℝ

                      Vertical translation coefficient for phase 4.

                    • k51 : ℝ

                      Horizontal translation coefficient for phase 5.

                    • k52 : ℝ

                      Vertical translation coefficient for phase 5.

                    • a1 : ℝ

                      Coefficient 1 in the phase 1 closed formula.

                    • a2 : ℝ

                      Coefficient 2 in the phase 1 closed formula.

                    • b1 : ℝ

                      Coefficient 1 in the phase 2 closed formula.

                    • b2 : ℝ

                      Coefficient 2 in the phase 2 closed formula.

                    • c1 : ℝ

                      Coefficient 1 in the phase 3 closed formula.

                    • c2 : ℝ

                      Coefficient 2 in the phase 3 closed formula.

                    • d1 : ℝ

                      Coefficient 1 in the phase 4 closed formula.

                    • d2 : ℝ

                      Coefficient 2 in the phase 4 closed formula.

                    • e1 : ℝ

                      Coefficient 1 in the phase 5 closed formula.

                    • e2 : ℝ

                      Coefficient 2 in the phase 5 closed formula.

                    • phi : ℝ

                      First switching angle.

                    • theta : ℝ

                      Second switching angle.

                    Instances For
                      noncomputable def GerverSofa.Romik.rot (t : ℝ) (z : Point) :

                      Rotation of a body-frame vector into the world frame.

                      Equations
                      Instances For
                        def GerverSofa.Romik.addK (r : Point) (kx ky : ℝ) :

                        Translate a point by the two specified coordinate offsets.

                        Equations
                        Instances For
                          noncomputable def GerverSofa.Romik.path1 (p : Params) (t : ℝ) :

                          Phase 1 of the five-phase Gerver path.

                          Equations
                          Instances For
                            noncomputable def GerverSofa.Romik.path2 (p : Params) (t : ℝ) :

                            Phase 2 of the five-phase Gerver path.

                            Equations
                            Instances For
                              noncomputable def GerverSofa.Romik.path3 (p : Params) (t : ℝ) :

                              Phase 3 of the five-phase Gerver path.

                              Equations
                              Instances For
                                noncomputable def GerverSofa.Romik.path4 (p : Params) (t : ℝ) :

                                Phase 4 of the five-phase Gerver path.

                                Equations
                                Instances For
                                  noncomputable def GerverSofa.Romik.path5 (p : Params) (t : ℝ) :

                                  Phase 5 of the five-phase Gerver path.

                                  Equations
                                  Instances For
                                    noncomputable def GerverSofa.Romik.alphaBeta1 (p : Params) (t : ℝ) :

                                    Body-frame derivative coefficients (alpha,beta) on phase 1.

                                    Equations
                                    Instances For
                                      noncomputable def GerverSofa.Romik.alphaBeta2 (p : Params) (t : ℝ) :

                                      Body-frame velocity coordinates for phase 2.

                                      Equations
                                      Instances For

                                        Body-frame velocity coordinates for phase 3.

                                        Equations
                                        Instances For
                                          noncomputable def GerverSofa.Romik.alphaBeta4 (p : Params) (t : ℝ) :

                                          Body-frame velocity coordinates for phase 4.

                                          Equations
                                          Instances For
                                            noncomputable def GerverSofa.Romik.alphaBeta5 (p : Params) (t : ℝ) :

                                            Body-frame velocity coordinates for phase 5.

                                            Equations
                                            Instances For
                                              noncomputable def GerverSofa.Romik.pathPrimeFromAB (t : ℝ) (ab : Point) :

                                              Rotate body-frame velocity coordinates into the world frame.

                                              Equations
                                              Instances For
                                                noncomputable def GerverSofa.Romik.pathPrime1 (p : Params) (t : ℝ) :

                                                World-frame velocity formula for phase 1.

                                                Equations
                                                Instances For
                                                  noncomputable def GerverSofa.Romik.pathPrime2 (p : Params) (t : ℝ) :

                                                  World-frame velocity formula for phase 2.

                                                  Equations
                                                  Instances For
                                                    noncomputable def GerverSofa.Romik.pathPrime3 (p : Params) (t : ℝ) :

                                                    World-frame velocity formula for phase 3.

                                                    Equations
                                                    Instances For
                                                      noncomputable def GerverSofa.Romik.system (p : Params) :
                                                      Fin 22 → ℝ

                                                      Romik's 22 independent scalar equations.

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For

                                                        The proposition that all 22 independent equations vanish.

                                                        Equations
                                                        Instances For
                                                          noncomputable def GerverSofa.Romik.path (p : Params) (t : ℝ) :

                                                          The physical five-phase path on [0,π/2]. At a switching angle either adjacent formula may be chosen; the certified matching equations prove they coincide.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            noncomputable def GerverSofa.Romik.angle (u : ℝ) :

                                                            Linear normalization from unit time to physical rotation angle.

                                                            Equations
                                                            Instances For
                                                              noncomputable def GerverSofa.Romik.frame (p : Params) (u : ℝ) :

                                                              Standard-to-world frame q ↦ x(t)+R_t q for normalized time.

                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For

                                                                The normalized physical angle depends continuously on time.

                                                                Continuity of the five-phase path implies componentwise continuity of the supporting SE(2) frame.

                                                                Continuity from the independent matching equations #

                                                                Ordering data needed to read the five branches in their intended order.

                                                                Instances For

                                                                  Equation (35), extracted from the direct 22D system.

                                                                  Equation (37), extracted from the direct 22D system.

                                                                  Equation (39), extracted from the direct 22D system.

                                                                  Equation (41), extracted from the direct 22D system.

                                                                  The four positional matching equations make the literal nested-if five-phase path continuous whenever its switches are ordered.

                                                                  Exact real boxes used by the Krawczyk certificates #

                                                                  Every endpoint is written as an exact integer quotient. There are no binary floating-point constants in these definitions.

                                                                  noncomputable def GerverSofa.qR (n : ℤ) (d : ℕ) :

                                                                  Interpret an integer numerator and natural denominator as a real quotient.

                                                                  Equations
                                                                  Instances For

                                                                    Input box X_a × X_b × X_phi × X_theta.

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For

                                                                      The direct 22-dimensional box Y × Phi × Theta.

                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For

                                                                        Every point in the certified direct-system box has a positive first switching angle.

                                                                        Equations (32)--(34), together with the certified box, force the exact initial path normalisation x(0)=(0,0).

                                                                        The exact direct-system box orders the four physical switching times.

                                                                        The certified box and the positional equations discharge the path continuity field needed by the moving-sofa assembly.

                                                                        theorem GerverSofa.Romik.a1_lower_bound_of_mem_box {p : Params} (hp : p ∈ box) :
                                                                        2420644844145377502832171437 / 2000000000000000000000000000 ≤ p.a1

                                                                        The direct-system box supplies the strict lower bound on a₁ used in the area proposition.

                                                                        Concrete Gerver cap, niche and fixed sofa #

                                                                        The definitions follow the manuscript literally. This file also proves the closedness part of the main topological certificate directly from the half-plane definitions; it does not use the numerical certificate or Baek's cap theory.

                                                                        def GerverSofa.dot (p q : Point) :

                                                                        Euclidean scalar product in the fixed coordinate representation.

                                                                        Equations
                                                                        Instances For
                                                                          noncomputable def GerverSofa.u (t : ℝ) :

                                                                          Rotating outer-wall normals.

                                                                          Equations
                                                                          Instances For
                                                                            noncomputable def GerverSofa.v (t : ℝ) :

                                                                            The vertical unit vector rotated counterclockwise through angle t.

                                                                            Equations
                                                                            Instances For

                                                                              The lower fan in the manuscript normalisation.

                                                                              Equations
                                                                              Instances For

                                                                                Second rotating supporting half-plane.

                                                                                Equations
                                                                                Instances For

                                                                                  The cap K₀ reconstructed from the five-phase path.

                                                                                  Equations
                                                                                  Instances For

                                                                                    Open inner quadrant of the supporting hallway at physical angle t.

                                                                                    Equations
                                                                                    • One or more equations did not get rendered due to their size.
                                                                                    Instances For

                                                                                      Union of all forbidden inner quadrants at interior rotation times.

                                                                                      Equations
                                                                                      Instances For

                                                                                        The niche removed from the cap.

                                                                                        Equations
                                                                                        Instances For

                                                                                          The fixed Gerver candidate G = K₀ \ N(K₀).

                                                                                          Equations
                                                                                          Instances For

                                                                                            Physical supporting hallway at normalized time s.

                                                                                            Equations
                                                                                            Instances For

                                                                                              Closedness facts independent of the numerical certificate #

                                                                                              A fixed supporting half-plane is closed.

                                                                                              The other fixed supporting half-plane is closed.

                                                                                              The fan constraint is closed.

                                                                                              The bounded-quantifier definition of K₀ as an explicit intersection.

                                                                                              K₀ is closed, before any support-maximisation or compactness argument.

                                                                                              Every instantaneous inner quadrant is open.

                                                                                              The union of all interior-time inner quadrants is open.

                                                                                              The cap lies in its fan by definition.

                                                                                              Since K₀ ⊆ capFan, removing the niche is the same as removing the open union of forbidden quadrants.

                                                                                              The concrete fixed sofa candidate is closed for every parameter vector.

                                                                                              Algebraic hallway characterisation and endpoint assembly #

                                                                                              @[simp]
                                                                                              theorem GerverSofa.Romik.mem_supportHalfU (p : Params) (t : ℝ) (q : Point) :
                                                                                              q ∈ supportHalfU p t ↔ dot q (u t) ≤ dot (path p t) (u t) + 1
                                                                                              @[simp]
                                                                                              theorem GerverSofa.Romik.mem_supportHalfV (p : Params) (t : ℝ) (q : Point) :
                                                                                              q ∈ supportHalfV p t ↔ dot q (v t) ≤ dot (path p t) (v t) + 1
                                                                                              @[simp]
                                                                                              theorem GerverSofa.Romik.mem_K0 (p : Params) (q : Point) :
                                                                                              q ∈ K0 p ↔ 0 ≤ q.2 ∧ ∀ t ∈ Set.Icc 0 (Real.pi / 2), q ∈ supportHalfU p t ∩ supportHalfV p t
                                                                                              @[simp]
                                                                                              @[simp]
                                                                                              theorem GerverSofa.Romik.mem_sofa (p : Params) (q : Point) :
                                                                                              q ∈ sofa p ↔ q ∈ K0 p ∧ q ∉ niche p
                                                                                              theorem GerverSofa.Romik.frame_inv_act_formula (p : Params) (s : ℝ) (q : Point) :
                                                                                              (frame p s).inv.act q = (dot (q.1 - (path p (angle s)).1, q.2 - (path p (angle s)).2) (u (angle s)), dot (q.1 - (path p (angle s)).1, q.2 - (path p (angle s)).2) (v (angle s)))

                                                                                              The inverse supporting frame has exactly the two signed wall coordinates used in the manuscript.

                                                                                              theorem GerverSofa.Romik.mem_hallwayAt_iff_wall_coordinates (p : Params) (s : ℝ) (q : Point) :
                                                                                              q ∈ hallwayAt p s ↔ have t := angle s; have x := path p t; (dot (q.1 - x.1, q.2 - x.2) (u t) ≤ 1 ∧ dot (q.1 - x.1, q.2 - x.2) (v t) ≤ 1) ∧ ¬(dot (q.1 - x.1, q.2 - x.2) (u t) < 0 ∧ dot (q.1 - x.1, q.2 - x.2) (v t) < 0)

                                                                                              A point is in the supporting hallway iff its two wall coordinates lie in Q⁺ but not simultaneously in the open inner quadrant Q⁻.

                                                                                              theorem GerverSofa.Romik.not_mem_innerQuadrantAt_of_mem_sofa (p : Params) {q : Point} (hq : q ∈ sofa p) {t : ℝ} (ht : t ∈ Set.Ioo 0 (Real.pi / 2)) :
                                                                                              q ∉ innerQuadrantAt p t

                                                                                              A sofa point cannot lie in an instantaneous forbidden quadrant at an interior physical time.

                                                                                              theorem GerverSofa.Romik.not_mem_initial_innerQuadrant (p : Params) (hzero : path p 0 = (0, 0)) {q : Point} (hq : q ∈ sofa p) :
                                                                                              q ∉ innerQuadrantAt p 0

                                                                                              The lower-fan constraint excludes the initial inner quadrant once the physical path starts at the origin.

                                                                                              theorem GerverSofa.Romik.not_mem_final_innerQuadrant (p : Params) (hend : (path p (Real.pi / 2)).2 = 0) {q : Point} (hq : q ∈ sofa p) :

                                                                                              The lower-fan constraint excludes the final inner quadrant once the final path point has second coordinate zero.

                                                                                              theorem GerverSofa.Romik.sofa_subset_hallwayAt (p : Params) (hzero : path p 0 = (0, 0)) (hend : (path p (Real.pi / 2)).2 = 0) (s : ℝ) :
                                                                                              s ∈ Set.Icc 0 1 → sofa p ⊆ hallwayAt p s

                                                                                              The concrete cap-minus-niche set lies in every supporting hallway. The only endpoint input is the pair of path normalisations used in the paper.

                                                                                              The inverse frame at time zero places the concrete sofa in the horizontal arm.

                                                                                              The inverse frame at time one places the concrete sofa in the vertical arm.

                                                                                              Gerver sofa dependency batch #

                                                                                              Alternating-series kernel for the executable transcendental layer #

                                                                                              This file connects the exact rational partial sums used by ExactReplay to Mathlib's real power-series theorems. The Taylor evaluator is intentionally used only on arguments in [0, 1]; the range-reduction layer proves this precondition before calling these results.

                                                                                              noncomputable def GerverSofa.ExactReplay.sinMagnitude (x : ℝ) (n : ℕ) :

                                                                                              Real magnitude of the nth sine-series term.

                                                                                              Equations
                                                                                              Instances For
                                                                                                noncomputable def GerverSofa.ExactReplay.cosMagnitude (x : ℝ) (n : ℕ) :

                                                                                                Real magnitude of the nth cosine-series term.

                                                                                                Equations
                                                                                                Instances For
                                                                                                  noncomputable def GerverSofa.ExactReplay.atanMagnitude (x : ℝ) (n : ℕ) :

                                                                                                  Real magnitude of the nth arctangent-series term.

                                                                                                  Equations
                                                                                                  Instances For

                                                                                                    On [0,1], the unsigned sine Taylor terms decrease.

                                                                                                    On [0,1], the unsigned cosine Taylor terms decrease.

                                                                                                    On [0,1], the unsigned arctangent Taylor terms decrease.

                                                                                                    theorem GerverSofa.ExactReplay.coe_sinPartial (x : ℚ) (terms : ℕ) :
                                                                                                    ↑(sinPartial x terms) = ∑ k ∈ Finset.range terms, (-1) ^ k * ↑x ^ (2 * k + 1) / ↑(2 * k + 1).factorial

                                                                                                    Casting the executable sine partial sum to ℝ gives the corresponding Mathlib finite Taylor sum.

                                                                                                    theorem GerverSofa.ExactReplay.coe_cosPartial (x : ℚ) (terms : ℕ) :
                                                                                                    ↑(cosPartial x terms) = ∑ k ∈ Finset.range terms, (-1) ^ k * ↑x ^ (2 * k) / ↑(2 * k).factorial

                                                                                                    Casting the executable cosine partial sum to ℝ gives the corresponding Mathlib finite Taylor sum.

                                                                                                    theorem GerverSofa.ExactReplay.coe_atanPartial (x : ℚ) (terms : ℕ) :
                                                                                                    ↑(atanPartial x terms) = ∑ k ∈ Finset.range terms, (-1) ^ k * ↑x ^ (2 * k + 1) / ↑(2 * k + 1)

                                                                                                    Casting the executable arctangent partial sum to ℝ gives the corresponding Mathlib finite Taylor sum.

                                                                                                    theorem GerverSofa.ExactReplay.sine_between_partials {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) :
                                                                                                    ↑(sinPartial x 20) ≤ Real.sin ↑x ∧ Real.sin ↑x ≤ ↑(sinPartial x 19)

                                                                                                    The 20-term sine partial sum is a lower bound and the 19-term partial sum is an upper bound for every rational argument in [0,1].

                                                                                                    theorem GerverSofa.ExactReplay.cosine_between_partials {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) :
                                                                                                    ↑(cosPartial x 20) ≤ Real.cos ↑x ∧ Real.cos ↑x ≤ ↑(cosPartial x 19)

                                                                                                    The 20-term cosine partial sum is a lower bound and the 19-term partial sum is an upper bound for every rational argument in [0,1].

                                                                                                    theorem GerverSofa.ExactReplay.arctan_between_partials {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x < 1) (k : ℕ) :
                                                                                                    ↑(atanPartial x (2 * k + 2)) ≤ Real.arctan ↑x ∧ Real.arctan ↑x ≤ ↑(atanPartial x (2 * k + 1))

                                                                                                    Even/odd arctangent partial sums provide certified lower/upper bounds.

                                                                                                    Coordinate equivalences for the certified systems #

                                                                                                    The executable interval layer works with Fin n → ℝ, while the manuscript layer uses named parameter records. These equivalences are the explicit, kernel-checked bridge between the two representations.

                                                                                                    Named reduced parameters as a four-vector in manuscript order.

                                                                                                    Equations
                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                    Instances For
                                                                                                      noncomputable def GerverSofa.Reduced.vectorSystem (x : Vec 4) :
                                                                                                      Vec 4

                                                                                                      Reduced system expressed in finite-vector coordinates.

                                                                                                      Equations
                                                                                                      Instances For

                                                                                                        The reduced parameter box expressed in finite-vector coordinates.

                                                                                                        Equations
                                                                                                        Instances For

                                                                                                          Transport a finite-vector uniqueness certificate back to named reduced parameters.

                                                                                                          Equations
                                                                                                          Instances For

                                                                                                            Named Romik parameters as a 22-vector in verifier order.

                                                                                                            Equations
                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                            Instances For
                                                                                                              noncomputable def GerverSofa.Romik.vectorSystem (x : Vec 22) :
                                                                                                              Vec 22

                                                                                                              Direct Romik system expressed in finite-vector coordinates.

                                                                                                              Equations
                                                                                                              Instances For

                                                                                                                The direct Romik box expressed in finite-vector coordinates.

                                                                                                                Equations
                                                                                                                Instances For

                                                                                                                  Transport a finite-vector uniqueness certificate back to named Romik parameters.

                                                                                                                  Equations
                                                                                                                  Instances For

                                                                                                                    Endpoint symmetry derived from the direct 22-dimensional system #

                                                                                                                    The manuscript obtains the terminal condition x₂(π/2)=0 from the reflection symmetry of the five phases. This file proves the required consequence without introducing a symmetry assumption and without using numerical approximations.

                                                                                                                    FIX12 keeps the BATCH11 mathematics and public theorem statements unchanged, but factors the formula-level algebra into small coordinate identities. This avoids asking ring to normalize the fully unfolded five-phase expressions in one large proof term.

                                                                                                                    Exact parameter consequences of equations 27--34 #

                                                                                                                    Equation 27.

                                                                                                                    Equation 28.

                                                                                                                    Equation 33.

                                                                                                                    Equation 34.

                                                                                                                    Equations 28 and 34.

                                                                                                                    Small definitional coordinate identities #

                                                                                                                    These are deliberately rfl: they expose only the second coordinate of one phase at a time. Downstream algebra therefore operates on compact scalar expressions rather than on the fully unfolded Point/rot/addK terms.

                                                                                                                    Formula-level reflection identities #

                                                                                                                    The vertical phase-5 formula at reflected time differs from phase 1 only by its vertical translation constant.

                                                                                                                    The vertical phase-4 formula at reflected time differs from phase 2 only by its vertical translation constant.

                                                                                                                    The middle phase has exact vertical reflection symmetry.

                                                                                                                    Translation constants forced by matching #

                                                                                                                    Matching at θ and π/2-θ, together with middle-phase reflection, forces the phase-2 and phase-4 vertical translations to coincide.

                                                                                                                    Matching at φ and π/2-φ then forces the phase-1 and phase-5 vertical translations to coincide.

                                                                                                                    Equations 27--41 force the previously dependent coefficient k₅₂=1/4. It is not an independent hypothesis of the final certificate.

                                                                                                                    Terminal condition #

                                                                                                                    The explicit fifth phase ends at vertical coordinate zero.

                                                                                                                    The certified direct-system box places π/2 strictly after the fourth switch, so the literal nested-if path uses phase 5 at the endpoint.

                                                                                                                    The terminal vertical normalisation is a theorem of the concrete box and 22 equations. No reflection hypothesis and no certificate field remain.

                                                                                                                    Identification with Romik's hallway-intersection reconstruction #

                                                                                                                    This is the set-theoretic part of Proposition prop:gerver. It uses only the literal definitions and the two endpoint normalisations; the eighteen-piece boundary statement remains a separate field of FullArticleCertificate.

                                                                                                                    Romik's fixed-frame reconstruction: initial arm, every supporting hallway, and the final transported vertical arm.

                                                                                                                    Equations
                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                    Instances For
                                                                                                                      noncomputable def GerverSofa.Romik.normalizedTime (t : ℝ) :

                                                                                                                      Convert a physical angle in [0,π/2] to normalized time.

                                                                                                                      Equations
                                                                                                                      Instances For
                                                                                                                        theorem GerverSofa.Romik.sofa_subset_reconstructedSet (p : Params) (hzero : path p 0 = (0, 0)) (hend : (path p (Real.pi / 2)).2 = 0) :

                                                                                                                        Every point of the cap-minus-niche set lies in Romik's hallway intersection reconstruction.

                                                                                                                        theorem GerverSofa.Romik.mem_K0_of_mem_all_hallways (p : Params) {q : Point} (hbase : 0 ≤ q.2) (hall : ∀ s ∈ Set.Icc 0 1, q ∈ hallwayAt p s) :
                                                                                                                        q ∈ K0 p

                                                                                                                        Membership in every physical supporting hallway gives all outer support inequalities in the cap definition.

                                                                                                                        theorem GerverSofa.Romik.not_mem_innerUnion_of_mem_all_hallways (p : Params) {q : Point} (hall : ∀ s ∈ Set.Icc 0 1, q ∈ hallwayAt p s) :
                                                                                                                        q ∉ innerUnion p

                                                                                                                        Membership in every physical hallway excludes every open interior-time inner quadrant.

                                                                                                                        Conversely, Romik's hallway intersection lies in the concrete cap-minus-niche set.

                                                                                                                        theorem GerverSofa.Romik.sofa_eq_reconstructedSet (p : Params) (hzero : path p 0 = (0, 0)) (hend : (path p (Real.pi / 2)).2 = 0) :

                                                                                                                        Set-theoretic identification G = Sₓ, conditional only on the endpoint normalisations already isolated by the main certificate.

                                                                                                                        Named consequences of the frozen kernel-only certificate #

                                                                                                                        These handles intentionally reason about the proof-carrying rational data, not about re-running the expensive Krawczyk/grid search inside kernel reduction. The latter remains available under ExactReplay.executable* for independent diagnostic comparison.

                                                                                                                        Semantic interfaces for the executable interval certificate #

                                                                                                                        These definitions state, without hiding any mathematical assumption, the bridges that turn the frozen rational replay into facts about Real.sin, Real.cos, the two real systems, and their Jacobians. Concrete proof terms for these interfaces are the remaining analytic part of the end-to-end certificate; no axiom is declared here.

                                                                                                                        def GerverSofa.EnclosesVec {n : ℕ} (box : List RatInterval) (x : Vec n) :

                                                                                                                        A rational interval list encloses a finite real vector coordinatewise.

                                                                                                                        Equations
                                                                                                                        Instances For
                                                                                                                          def GerverSofa.RealDerivativeAt (f : ℝ → ℝ) (f' x : ℝ) :

                                                                                                                          A one-dimensional real derivative certificate in the classical difference-quotient form. This is the exact real specialization of the right-hand side of Mathlib's hasDerivAt_iff_tendsto_slope_zero: it states that (f (x+t)-f x)/t tends to f' as t → 0, t ≠ 0.

                                                                                                                          Unlike storing raw HasDerivAt/DifferentiableAt, this proposition contains no hidden AddCommGroup/Module instance path for the codomain ℝ; this removes the instance diamond exposed by Lean 4.33 while retaining the full mathematical meaning of an actual derivative.

                                                                                                                          Equations
                                                                                                                          Instances For

                                                                                                                            Exact analytic correctness required from the executable trigonometric layer. The domain is the physical range used by the Gerver certificate.

                                                                                                                            Instances For

                                                                                                                              Soundness of the exact transcendental interval evaluator #

                                                                                                                              This file proves the analytic trust bridge omitted by the executable replay:

                                                                                                                              No project axiom and no floating-point literal occurs in this file.

                                                                                                                              Partial-sum interval consequences #

                                                                                                                              theorem GerverSofa.ExactReplay.sinBound_contains {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) :

                                                                                                                              The executable sine Taylor hull contains the exact real sine value on [0,1].

                                                                                                                              theorem GerverSofa.ExactReplay.cosBound_contains {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x ≤ 1) :

                                                                                                                              The executable cosine Taylor hull contains the exact real cosine value on [0,1].

                                                                                                                              theorem GerverSofa.ExactReplay.atanBound_contains {x : ℚ} (hx0 : 0 ≤ x) (hx1 : x < 1) (k : ℕ) :
                                                                                                                              (atanBound x (2 * k + 1) (2 * k + 2)).Contains (Real.arctan ↑x)

                                                                                                                              Consecutive odd/even arctangent sums form a semantic interval.

                                                                                                                              Machin identity and the declared interval for π #

                                                                                                                              The interval computed from the two exact arctangent Taylor certificates contains the true value of π.

                                                                                                                              The executable declared interval agrees with the frozen manifest.

                                                                                                                              The exact interval used by every transcendental call encloses Real.pi.

                                                                                                                              Outward decimal rounding #

                                                                                                                              theorem GerverSofa.ExactReplay.floorDecimal_le (x : ℚ) (digits : ℕ := 60) :
                                                                                                                              floorDecimal x digits ≤ x

                                                                                                                              Fixed-decimal floor rounding never exceeds the input rational.

                                                                                                                              theorem GerverSofa.ExactReplay.le_ceilDecimal (x : ℚ) (digits : ℕ := 60) :
                                                                                                                              x ≤ ceilDecimal x digits

                                                                                                                              Fixed-decimal ceiling rounding never lies below the input rational.

                                                                                                                              The exact 60-decimal conversion is outward in real semantics.

                                                                                                                              Small-argument sine and cosine #

                                                                                                                              theorem GerverSofa.ExactReplay.sinSmall_contains {z : RatInterval} {x : ℝ} (hx : z.Contains x) (hz0 : 0 ≤ z.lo) (hz9 : z.hi ≤ 9 / 10) :

                                                                                                                              The small sine evaluator is sound whenever its whole input lies in [0, 9/10].

                                                                                                                              theorem GerverSofa.ExactReplay.cosSmall_contains {z : RatInterval} {x : ℝ} (hx : z.Contains x) (hz0 : 0 ≤ z.lo) (hz9 : z.hi ≤ 9 / 10) :

                                                                                                                              The small cosine evaluator is sound whenever its whole input lies in [0, 9/10].

                                                                                                                              Range reduction and fail-closed totality #

                                                                                                                              theorem GerverSofa.ExactReplay.physicalClamp_contains {z : RatInterval} {x : ℝ} (hz : z.Contains x) (hx0 : 0 ≤ x) (hxpi : x ≤ Real.pi / 2) :

                                                                                                                              Physical clamping preserves every enclosed angle in [0,π/2].

                                                                                                                              Complementary-angle range reduction encloses π/2-x.

                                                                                                                              theorem GerverSofa.ExactReplay.sinI_contains {z : RatInterval} {x : ℝ} (hz : z.Contains x) (hx0 : 0 ≤ x) (hxpi : x ≤ Real.pi / 2) :

                                                                                                                              Full soundness of the executable sine interval on the physical angular range.

                                                                                                                              theorem GerverSofa.ExactReplay.cosI_contains {z : RatInterval} {x : ℝ} (hz : z.Contains x) (hx0 : 0 ≤ x) (hxpi : x ≤ Real.pi / 2) :

                                                                                                                              Full soundness of the executable cosine interval on the physical angular range.

                                                                                                                              Structural soundness of first-order interval automatic differentiation #

                                                                                                                              The executable ExactReplay.D object stores a value interval and one interval for every first partial derivative. This file supplies the reusable semantic induction for all constructors actually used by the 4D and 22D certificates. The concrete systems are handled in a separate module by instantiating these constructor theorems.

                                                                                                                              Smooth scalar models #

                                                                                                                              A scalar function together with its coordinate gradient and a proof that those coordinates are the actual partial derivatives. The derivative witness is stored as RealDerivativeAt, a first-principles real difference-quotient limit. Constructor proofs temporarily move through Mathlib's HasDerivAt API and immediately return to this instance-stable semantic proposition.

                                                                                                                              Instances For

                                                                                                                                Constant scalar model.

                                                                                                                                Equations
                                                                                                                                Instances For

                                                                                                                                  Coordinate projection.

                                                                                                                                  Equations
                                                                                                                                  Instances For

                                                                                                                                    Pointwise addition.

                                                                                                                                    Equations
                                                                                                                                    Instances For

                                                                                                                                      Pointwise negation.

                                                                                                                                      Equations
                                                                                                                                      Instances For

                                                                                                                                        Pointwise subtraction.

                                                                                                                                        Equations
                                                                                                                                        Instances For

                                                                                                                                          Pointwise multiplication.

                                                                                                                                          Equations
                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                          Instances For

                                                                                                                                            Rational scaling.

                                                                                                                                            Equations
                                                                                                                                            Instances For
                                                                                                                                              noncomputable def GerverSofa.ScalarModel.sin {n : ℕ} (f : ScalarModel n) :

                                                                                                                                              Sine composition.

                                                                                                                                              Equations
                                                                                                                                              Instances For
                                                                                                                                                noncomputable def GerverSofa.ScalarModel.cos {n : ℕ} (f : ScalarModel n) :

                                                                                                                                                Cosine composition.

                                                                                                                                                Equations
                                                                                                                                                Instances For

                                                                                                                                                  The executable systems are written with notation, while constructor-level soundness lemmas produce the named operations above. These tiny simp bridges make that definitional equality explicit without unfolding the proof-carrying structures themselves.

                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.add_notation {n : ℕ} (f g : ScalarModel n) :
                                                                                                                                                  f + g = f.add g
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.sub_notation {n : ℕ} (f g : ScalarModel n) :
                                                                                                                                                  f - g = f.sub g
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.mul_notation {n : ℕ} (f g : ScalarModel n) :
                                                                                                                                                  f * g = f.mul g
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.scale_notation {n : ℕ} (a : ℚ) (f : ScalarModel n) :
                                                                                                                                                  a * f = scale a f
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.add_value {n : ℕ} (f g : ScalarModel n) (x : Vec n) :
                                                                                                                                                  (f.add g).value x = f.value x + g.value x
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.neg_value {n : ℕ} (f : ScalarModel n) (x : Vec n) :
                                                                                                                                                  f.neg.value x = -f.value x
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.sub_value {n : ℕ} (f g : ScalarModel n) (x : Vec n) :
                                                                                                                                                  (f.sub g).value x = f.value x - g.value x
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.mul_value {n : ℕ} (f g : ScalarModel n) (x : Vec n) :
                                                                                                                                                  (f.mul g).value x = f.value x * g.value x
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.scale_value {n : ℕ} (a : ℚ) (f : ScalarModel n) (x : Vec n) :
                                                                                                                                                  (scale a f).value x = ↑a * f.value x
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.sin_value {n : ℕ} (f : ScalarModel n) (x : Vec n) :
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ScalarModel.cos_value {n : ℕ} (f : ScalarModel n) (x : Vec n) :

                                                                                                                                                  Matching notation bridges for the executable dual intervals.

                                                                                                                                                  @[simp]
                                                                                                                                                  @[simp]
                                                                                                                                                  @[simp]
                                                                                                                                                  @[simp]
                                                                                                                                                  theorem GerverSofa.ExactReplay.D.scale_notation (a : ℚ) (x : D) :
                                                                                                                                                  a * x = scaleD a x

                                                                                                                                                  Semantic relation for the executable dual interval #

                                                                                                                                                  structure GerverSofa.DSoundOn {n : ℕ} (X : Set (Vec n)) (d : ExactReplay.D) (f : ScalarModel n) :

                                                                                                                                                  An executable dual interval encloses a smooth scalar model on a set.

                                                                                                                                                  Instances For

                                                                                                                                                    List access lemmas used by the AD constructors #

                                                                                                                                                    Constructor soundness #

                                                                                                                                                    theorem GerverSofa.DSoundOn.const {n : ℕ} {X : Set (Vec n)} {z : RatInterval} {c : ℝ} (hc : z.Contains c) :

                                                                                                                                                    Exact interval constant.

                                                                                                                                                    Rational point constant.

                                                                                                                                                    theorem GerverSofa.DSoundOn.varD {n : ℕ} {X : Set (Vec n)} (input : RatInterval) (k : Fin n) (hinput : ∀ x ∈ X, input.Contains (x k)) :

                                                                                                                                                    Coordinate variable read from an enclosing input interval.

                                                                                                                                                    theorem GerverSofa.DSoundOn.add {n : ℕ} {X : Set (Vec n)} {dx dy : ExactReplay.D} {f g : ScalarModel n} (hx : DSoundOn X dx f) (hy : DSoundOn X dy g) :
                                                                                                                                                    DSoundOn X (dx.addD dy) (f.add g)

                                                                                                                                                    Addition constructor.

                                                                                                                                                    theorem GerverSofa.DSoundOn.neg {n : ℕ} {X : Set (Vec n)} {d : ExactReplay.D} {f : ScalarModel n} (h : DSoundOn X d f) :

                                                                                                                                                    Negation constructor.

                                                                                                                                                    theorem GerverSofa.DSoundOn.sub {n : ℕ} {X : Set (Vec n)} {dx dy : ExactReplay.D} {f g : ScalarModel n} (hx : DSoundOn X dx f) (hy : DSoundOn X dy g) :
                                                                                                                                                    DSoundOn X (dx.subD dy) (f.sub g)

                                                                                                                                                    Subtraction constructor.

                                                                                                                                                    theorem GerverSofa.DSoundOn.mul {n : ℕ} {X : Set (Vec n)} {dx dy : ExactReplay.D} {f g : ScalarModel n} (hx : DSoundOn X dx f) (hy : DSoundOn X dy g) :
                                                                                                                                                    DSoundOn X (dx.mulD dy) (f.mul g)

                                                                                                                                                    Multiplication constructor and product rule.

                                                                                                                                                    theorem GerverSofa.DSoundOn.scale {n : ℕ} {X : Set (Vec n)} (a : ℚ) {d : ExactReplay.D} {f : ScalarModel n} (h : DSoundOn X d f) :

                                                                                                                                                    Rational scaling constructor.

                                                                                                                                                    theorem GerverSofa.DSoundOn.sin {n : ℕ} {X : Set (Vec n)} {d : ExactReplay.D} {f : ScalarModel n} (h : DSoundOn X d f) (hphysical : ∀ x ∈ X, 0 ≤ f.value x ∧ f.value x ≤ Real.pi / 2) :

                                                                                                                                                    Sine constructor and chain rule.

                                                                                                                                                    theorem GerverSofa.DSoundOn.cos {n : ℕ} {X : Set (Vec n)} {d : ExactReplay.D} {f : ScalarModel n} (h : DSoundOn X d f) (hphysical : ∀ x ∈ X, 0 ≤ f.value x ∧ f.value x ≤ Real.pi / 2) :

                                                                                                                                                    Cosine constructor and chain rule.

                                                                                                                                                    Concrete interval-AD soundness for the reduced 4D system #

                                                                                                                                                    This module instantiates the constructor-level AD theorem with equations (F1)--(F4), proves that the frozen rational list is exactly the manuscript box, and identifies the four smooth scalar models with Reduced.vectorSystem.

                                                                                                                                                    The four frozen rational intervals are exactly the named reduced box.

                                                                                                                                                    noncomputable def GerverSofa.Reduced.models :

                                                                                                                                                    Scalar models matching the four reduced equations.

                                                                                                                                                    Equations
                                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                                    Instances For

                                                                                                                                                      The model values are definitionally the manuscript reduced system after coordinate conversion.

                                                                                                                                                      Concrete interval-AD soundness for the direct 22D Romik system #

                                                                                                                                                      The direct system contains five trigonometric path pieces, three derivative pieces and six matching pairs. To avoid 22 unrelated derivative proofs, this file evaluates every expression in a proof-carrying dual object. Its first projection is the exact executable ExactReplay.D; its second projection is a smooth real scalar model; and its third field is the constructor-level soundness theorem from ADCoreSoundness.

                                                                                                                                                      Exact identification of the 22D input box #

                                                                                                                                                      The 22 coordinates are kept as separate tiny lemmas. This is deliberately chunked: expanding all 44 rational endpoint inequalities in one simp call exhausts the default heartbeat budget even though every coordinate identity is individually trivial.

                                                                                                                                                      The 22 frozen rational intervals are exactly the named direct-system box.

                                                                                                                                                      theorem GerverSofa.Romik.full_switches_physical {x : Vec 22} (hx : x ∈ vectorBox) :
                                                                                                                                                      (0 ≤ x 20 ∧ x 20 ≤ Real.pi / 2) ∧ (0 ≤ x 21 ∧ x 21 ≤ Real.pi / 2) ∧ (0 ≤ Real.pi / 2 - x 21 ∧ Real.pi / 2 - x 21 ≤ Real.pi / 2) ∧ 0 ≤ Real.pi / 2 - x 20 ∧ Real.pi / 2 - x 20 ≤ Real.pi / 2

                                                                                                                                                      All four switching times used by the direct evaluator lie in [0,π/2].

                                                                                                                                                      Proof-carrying dual expressions #

                                                                                                                                                      structure GerverSofa.Romik.SoundDual (n : ℕ) (X : Set (Vec n)) :

                                                                                                                                                      One executable interval dual paired with its real semantic model.

                                                                                                                                                      • The interval value and derivative data being certified.

                                                                                                                                                      • model : ScalarModel n

                                                                                                                                                        The real scalar function and gradient represented by the interval data.

                                                                                                                                                      • sound : DSoundOn X self.d self.model
                                                                                                                                                      Instances For
                                                                                                                                                        def GerverSofa.Romik.SoundDual.const {n : ℕ} {X : Set (Vec n)} (z : RatInterval) (c : ℝ) (h : z.Contains c) :

                                                                                                                                                        A constant scalar model with a certified interval enclosure.

                                                                                                                                                        Equations
                                                                                                                                                        Instances For

                                                                                                                                                          A rational constant represented by a singleton interval and zero gradient.

                                                                                                                                                          Equations
                                                                                                                                                          Instances For
                                                                                                                                                            def GerverSofa.Romik.SoundDual.var {n : ℕ} {X : Set (Vec n)} (input : RatInterval) (k : Fin n) (h : ∀ x ∈ X, input.Contains (x k)) :

                                                                                                                                                            A coordinate projection with its certified input interval.

                                                                                                                                                            Equations
                                                                                                                                                            Instances For
                                                                                                                                                              def GerverSofa.Romik.SoundDual.add {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) :

                                                                                                                                                              Addition with certified interval value and gradient enclosures.

                                                                                                                                                              Equations
                                                                                                                                                              Instances For
                                                                                                                                                                def GerverSofa.Romik.SoundDual.neg {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) :

                                                                                                                                                                Negation with certified interval value and gradient enclosures.

                                                                                                                                                                Equations
                                                                                                                                                                Instances For
                                                                                                                                                                  def GerverSofa.Romik.SoundDual.sub {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) :

                                                                                                                                                                  Subtraction with certified interval value and gradient enclosures.

                                                                                                                                                                  Equations
                                                                                                                                                                  Instances For
                                                                                                                                                                    def GerverSofa.Romik.SoundDual.mul {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) :

                                                                                                                                                                    Multiplication with certified interval value and gradient enclosures.

                                                                                                                                                                    Equations
                                                                                                                                                                    Instances For
                                                                                                                                                                      def GerverSofa.Romik.SoundDual.scale {n : ℕ} {X : Set (Vec n)} (q : ℚ) (a : SoundDual n X) :

                                                                                                                                                                      Rational scaling with certified interval value and gradient enclosures.

                                                                                                                                                                      Equations
                                                                                                                                                                      Instances For
                                                                                                                                                                        noncomputable def GerverSofa.Romik.SoundDual.sin {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) (h : ∀ x ∈ X, 0 ≤ a.model.value x ∧ a.model.value x ≤ Real.pi / 2) :

                                                                                                                                                                        Sine with certified interval value and gradient enclosures.

                                                                                                                                                                        Equations
                                                                                                                                                                        Instances For
                                                                                                                                                                          noncomputable def GerverSofa.Romik.SoundDual.cos {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) (h : ∀ x ∈ X, 0 ≤ a.model.value x ∧ a.model.value x ≤ Real.pi / 2) :

                                                                                                                                                                          Cosine with certified interval value and gradient enclosures.

                                                                                                                                                                          Equations
                                                                                                                                                                          Instances For

                                                                                                                                                                            Small projection lemmas keep the simplifier away from the proof fields of SoundDual. All are definitional equalities.

                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.const_model_value {n : ℕ} {X : Set (Vec n)} (z : RatInterval) (c : ℝ) (h : z.Contains c) (x : Vec n) :
                                                                                                                                                                            (const z c h).model.value x = c
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.pointConst_model_value {n : ℕ} {X : Set (Vec n)} (q : ℚ) (x : Vec n) :
                                                                                                                                                                            (pointConst q).model.value x = ↑q
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.var_model_value {n : ℕ} {X : Set (Vec n)} (input : RatInterval) (k : Fin n) (h : ∀ x ∈ X, input.Contains (x k)) (x : Vec n) :
                                                                                                                                                                            (var input k h).model.value x = x k
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.add_model_value {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) (x : Vec n) :
                                                                                                                                                                            (a + b).model.value x = a.model.value x + b.model.value x
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.neg_model_value {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) (x : Vec n) :
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.sub_model_value {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) (x : Vec n) :
                                                                                                                                                                            (a - b).model.value x = a.model.value x - b.model.value x
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.mul_model_value {n : ℕ} {X : Set (Vec n)} (a b : SoundDual n X) (x : Vec n) :
                                                                                                                                                                            (a * b).model.value x = a.model.value x * b.model.value x
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.scale_model_value {n : ℕ} {X : Set (Vec n)} (q : ℚ) (a : SoundDual n X) (x : Vec n) :
                                                                                                                                                                            (q * a).model.value x = ↑q * a.model.value x
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.sin_model_value {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) (h : ∀ x ∈ X, 0 ≤ a.model.value x ∧ a.model.value x ≤ Real.pi / 2) (x : Vec n) :
                                                                                                                                                                            @[simp]
                                                                                                                                                                            theorem GerverSofa.Romik.SoundDual.cos_model_value {n : ℕ} {X : Set (Vec n)} (a : SoundDual n X) (h : ∀ x ∈ X, 0 ≤ a.model.value x ∧ a.model.value x ≤ Real.pi / 2) (x : Vec n) :
                                                                                                                                                                            structure GerverSofa.Romik.AngleDual (n : ℕ) (X : Set (Vec n)) :

                                                                                                                                                                            A certified physical angle, used to justify every sine/cosine constructor.

                                                                                                                                                                            Instances For
                                                                                                                                                                              noncomputable def GerverSofa.Romik.AngleDual.sin {n : ℕ} {X : Set (Vec n)} (t : AngleDual n X) :

                                                                                                                                                                              Sine with certified interval value and gradient enclosures.

                                                                                                                                                                              Equations
                                                                                                                                                                              Instances For
                                                                                                                                                                                noncomputable def GerverSofa.Romik.AngleDual.cos {n : ℕ} {X : Set (Vec n)} (t : AngleDual n X) :

                                                                                                                                                                                Cosine with certified interval value and gradient enclosures.

                                                                                                                                                                                Equations
                                                                                                                                                                                Instances For
                                                                                                                                                                                  @[simp]
                                                                                                                                                                                  theorem GerverSofa.Romik.AngleDual.sin_model_value {n : ℕ} {X : Set (Vec n)} (t : AngleDual n X) (x : Vec n) :
                                                                                                                                                                                  @[simp]
                                                                                                                                                                                  theorem GerverSofa.Romik.AngleDual.cos_model_value {n : ℕ} {X : Set (Vec n)} (t : AngleDual n X) (x : Vec n) :
                                                                                                                                                                                  structure GerverSofa.Romik.FullVars (X : Set (Vec 22)) :

                                                                                                                                                                                  Named proof-carrying versions of all direct-system variables.

                                                                                                                                                                                  • k11 : SoundDual 22 X

                                                                                                                                                                                    Horizontal translation coefficient for phase 1 as a certified dual interval.

                                                                                                                                                                                  • k12 : SoundDual 22 X

                                                                                                                                                                                    Vertical translation coefficient for phase 1 as a certified dual interval.

                                                                                                                                                                                  • k21 : SoundDual 22 X

                                                                                                                                                                                    Horizontal translation coefficient for phase 2 as a certified dual interval.

                                                                                                                                                                                  • k22 : SoundDual 22 X

                                                                                                                                                                                    Vertical translation coefficient for phase 2 as a certified dual interval.

                                                                                                                                                                                  • k31 : SoundDual 22 X

                                                                                                                                                                                    Horizontal translation coefficient for phase 3 as a certified dual interval.

                                                                                                                                                                                  • k32 : SoundDual 22 X

                                                                                                                                                                                    Vertical translation coefficient for phase 3 as a certified dual interval.

                                                                                                                                                                                  • k41 : SoundDual 22 X

                                                                                                                                                                                    Horizontal translation coefficient for phase 4 as a certified dual interval.

                                                                                                                                                                                  • k42 : SoundDual 22 X

                                                                                                                                                                                    Vertical translation coefficient for phase 4 as a certified dual interval.

                                                                                                                                                                                  • k51 : SoundDual 22 X

                                                                                                                                                                                    Horizontal translation coefficient for phase 5 as a certified dual interval.

                                                                                                                                                                                  • k52 : SoundDual 22 X

                                                                                                                                                                                    Vertical translation coefficient for phase 5 as a certified dual interval.

                                                                                                                                                                                  • a1 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 1 in the phase 1 closed formula as a certified dual interval.

                                                                                                                                                                                  • a2 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 2 in the phase 1 closed formula as a certified dual interval.

                                                                                                                                                                                  • b1 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 1 in the phase 2 closed formula as a certified dual interval.

                                                                                                                                                                                  • b2 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 2 in the phase 2 closed formula as a certified dual interval.

                                                                                                                                                                                  • c1 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 1 in the phase 3 closed formula as a certified dual interval.

                                                                                                                                                                                  • c2 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 2 in the phase 3 closed formula as a certified dual interval.

                                                                                                                                                                                  • d1 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 1 in the phase 4 closed formula as a certified dual interval.

                                                                                                                                                                                  • d2 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 2 in the phase 4 closed formula as a certified dual interval.

                                                                                                                                                                                  • e1 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 1 in the phase 5 closed formula as a certified dual interval.

                                                                                                                                                                                  • e2 : SoundDual 22 X

                                                                                                                                                                                    Coefficient 2 in the phase 5 closed formula as a certified dual interval.

                                                                                                                                                                                  Instances For

                                                                                                                                                                                    The 22 coordinate variables equipped with their input-enclosure proofs.

                                                                                                                                                                                    Equations
                                                                                                                                                                                    Instances For
                                                                                                                                                                                      @[simp]
                                                                                                                                                                                      theorem GerverSofa.Romik.inputDual_model_value (i : Fin 22) (x : Vec 22) :

                                                                                                                                                                                      Named first twenty variables in verifier order.

                                                                                                                                                                                      Equations
                                                                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                                                                      Instances For

                                                                                                                                                                                        Reflected third switching angle π/2-θ.

                                                                                                                                                                                        Equations
                                                                                                                                                                                        Instances For

                                                                                                                                                                                          Reflected fourth switching angle π/2-φ.

                                                                                                                                                                                          Equations
                                                                                                                                                                                          Instances For

                                                                                                                                                                                            Rotation of a proof-carrying body-frame vector.

                                                                                                                                                                                            Equations
                                                                                                                                                                                            Instances For

                                                                                                                                                                                              One proof-carrying path piece.

                                                                                                                                                                                              Equations
                                                                                                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                                                                                                              Instances For

                                                                                                                                                                                                Body-frame derivative coefficients for one phase.

                                                                                                                                                                                                Equations
                                                                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                Instances For

                                                                                                                                                                                                  The complete proof-carrying direct system in manuscript order.

                                                                                                                                                                                                  Equations
                                                                                                                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                    Public-shape unfold lemmas for the three derivative path pieces.

                                                                                                                                                                                                    Systems.lean deliberately hides the helper pathPrimeFromAB. When system is unfolded outside that file, the private helper survives as an inaccessible constant, so ring cannot see that the right-hand side is just a rotation. These rfl lemmas expose exactly the public normal form needed by the four derivative-matching equations.

                                                                                                                                                                                                    The semantic identification is split coordinatewise so each normalization gets its own heartbeat budget. A single 22-way fin_cases <;> simp <;> ring command is mathematically fine but deterministically exhausts 200000 heartbeats.

                                                                                                                                                                                                    The real models carried by fullDualOutput are exactly the 22 manuscript functions in finite-vector coordinates.

                                                                                                                                                                                                    Gerver sofa dependency batch #

                                                                                                                                                                                                    F01: the affine-order bridge for issue #5270 #

                                                                                                                                                                                                    The two constructors are deliberately given different names. No upstream definition is changed or imported, and no theorem from the conjecture file is used. Both application conventions and the conversion between them are proved for an arbitrary linear isometry equivalence.

                                                                                                                                                                                                    @[reducible, inline]

                                                                                                                                                                                                    The Euclidean plane used for the continuous rigid-motion formulation.

                                                                                                                                                                                                    Equations
                                                                                                                                                                                                    Instances For
                                                                                                                                                                                                      @[reducible, inline]

                                                                                                                                                                                                      Affine isometries of the Euclidean plane.

                                                                                                                                                                                                      Equations
                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                        @[instance_reducible]

                                                                                                                                                                                                        The ordered coordinate-basis orientation used by the pinned upstream FormalConjecturesForMathlib/Geometry/2d.lean. Importing Mathlib alone does not install that project's plane-orientation instance.

                                                                                                                                                                                                        Equations

                                                                                                                                                                                                        The second instance supplied by the same upstream plane helper.

                                                                                                                                                                                                        The composition currently implemented upstream: q ↦ R q + p.

                                                                                                                                                                                                        Equations
                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                          The documented composition: q ↦ R (q + p).

                                                                                                                                                                                                          Equations
                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                            Keeping the old composition is equivalent to rotating the translation.

                                                                                                                                                                                                            Counterclockwise rotation of the oriented plane through angle t.

                                                                                                                                                                                                            Equations
                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                              noncomputable def GerverSofa.PartF.bodyFrame (t : ℝ) (p : Plane) :

                                                                                                                                                                                                              Translate by the body-frame offset and then rotate through t.

                                                                                                                                                                                                              Equations
                                                                                                                                                                                                              Instances For
                                                                                                                                                                                                                noncomputable def GerverSofa.PartF.worldFrame (t : ℝ) (x : Plane) :

                                                                                                                                                                                                                Rotate through t and then translate by the world position.

                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                  F01: algebraic half of the integral-to-five-phase representation #

                                                                                                                                                                                                                  The coefficient dictionary and the five explicit body-frame branches come from the 4 September integral-motion excerpt. They are compared to the actual Romik.path1 ... Romik.path5 definitions, then assembled using the same if boundaries as Romik.path.

                                                                                                                                                                                                                  This module does NOT evaluate the integrals: closedPath is explicitly named as a closed-form candidate. Proving that the pinned integral path equals it, and identifying dictionary d with the certified 22D tuple, remain separate obligations. No such equality is assumed here.

                                                                                                                                                                                                                  noncomputable def GerverSofa.PartF.Phases.T :

                                                                                                                                                                                                                  The terminal rotation angle π/2.

                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                    The auxiliary height parameter (a + θ - φ - 1) / 2.

                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                      Phase 4 integration constant for the vertical primitive.

                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                        Phase 4 integration constant for the horizontal primitive.

                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                                          Phase 3 integration constant for the vertical primitive.

                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                            Phase 3 integration constant for the horizontal primitive.

                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                            Instances For

                                                                                                                                                                                                                              Phase 2 integration constant for the vertical primitive.

                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                                Phase 2 integration constant for the horizontal primitive.

                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                                  Phase 1 integration constant for the vertical primitive.

                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                                    Phase 1 integration constant for the horizontal primitive.

                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                      The first-phase offset determined by 4 V1 - 2.

                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                                        Express all twenty-two Romik parameters in terms of the four reduced parameters.

                                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                                        • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                                                          noncomputable def GerverSofa.PartF.Phases.g2 (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                          The polynomial profile for phase 2 of the path.

                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                                            The polynomial profile for phase 3 of the path.

                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                                                              noncomputable def GerverSofa.PartF.Phases.g4 (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                              The polynomial profile for phase 4 of the path.

                                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                                                The closed rotation-path formula for phase 1.

                                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                                                  The closed rotation-path formula for phase 2.

                                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                                                    The closed rotation-path formula for phase 3.

                                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                                      The closed rotation-path formula for phase 4.

                                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                                                        The closed rotation-path formula for phase 5.

                                                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                                                                          The five-branch closed formula for the rotation path.

                                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                                                            Exact assembly for the explicit closed path, including every switching endpoint. This is not yet the corresponding theorem for the integral path.

                                                                                                                                                                                                                                                            F01: supporting intersections and their continuous inverse motion #

                                                                                                                                                                                                                                                            Model.IsMovingSofa has the seven fields and the rigid-motion topology of the upstream definition. This local, independently named model avoids importing upstream conjectures with unfinished proof terms. Its concrete instantiation for the integral Gerver path still needs the analytic bridge.

                                                                                                                                                                                                                                                            Intersect the endpoint hallway arms and all intermediate moving hallways.

                                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                                            Instances For

                                                                                                                                                                                                                                                              The hallway intersection parametrized by angles from zero to π/2.

                                                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                                                                The hallway intersection generated by a path in body-frame coordinates.

                                                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                                                                  The hallway intersection generated by a path in world-frame coordinates.

                                                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                                                  Instances For
                                                                                                                                                                                                                                                                    theorem GerverSofa.PartF.bodySofa_eq_worldSofa_of_path_identity (p x : ℝ → Plane) (H V L : Set Plane) (hpath : ∀ t ∈ Set.Icc 0 (Real.pi / 2), x t = (rotation t) (p t)) :
                                                                                                                                                                                                                                                                    bodySofa p H V L = worldSofa x H V L
                                                                                                                                                                                                                                                                    theorem GerverSofa.PartF.angleIntersection_eq_frameIntersection (F : ℝ → Rigid) (H V L : Set Plane) :
                                                                                                                                                                                                                                                                    angleIntersection F H V L = frameIntersection (fun (s : ↑unitInterval) => F (↑s * (Real.pi / 2))) H V L

                                                                                                                                                                                                                                                                    Normalizing the physical angle does not change the intersection.

                                                                                                                                                                                                                                                                    The horizontal unit-width hallway arm extending to the left.

                                                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                                                      The vertical unit-width hallway arm extending downwards.

                                                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                                                                        A nonempty closed connected set moving continuously between the hallway arms.

                                                                                                                                                                                                                                                                        Instances For

                                                                                                                                                                                                                                                                          F02: the coordinate homeomorphism #

                                                                                                                                                                                                                                                                          The product Point = ℝ × ℝ and Plane = EuclideanSpace ℝ (Fin 2) have the same coordinates and topology. Their norms differ. Accordingly, the coordinate identification below is a linear equivalence and a homeomorphism. Euclidean isometries are constructed separately.

                                                                                                                                                                                                                                                                          Convert a pair of real coordinates to a Euclidean vector.

                                                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                                                                            Extract the two real coordinates of a Euclidean vector.

                                                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                                                                                              theorem GerverSofa.PartF.Coordinates.plane_ext {q r : Plane} (h0 : q.ofLp 0 = r.ofLp 0) (h1 : q.ofLp 1 = r.ofLp 1) :
                                                                                                                                                                                                                                                                              q = r

                                                                                                                                                                                                                                                                              The coordinate equivalence, without any assertion that the two norms agree.

                                                                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                                                                                The coordinate homeomorphism between real pairs and the Euclidean plane.

                                                                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                                                                                  F04: literal integral data and its branch primitives #

                                                                                                                                                                                                                                                                                  The parameterized definitions below are the pinned upstream scalar integrals. The phase boundaries are preserved. Integrating across the jumps will use equality on open intervals, not an incorrect global continuity assertion for r.

                                                                                                                                                                                                                                                                                  The reflected second switching angle π/2 - θ.

                                                                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                                                                                    The reflected first switching angle π/2 - φ.

                                                                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                                                                      The switching-angle condition 0 ≤ φ ≤ θ ≤ π/4.

                                                                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                                                                                                        noncomputable def GerverSofa.PartF.Integrals.r1 (_d : Reduced.Params) (_t : ℝ) :

                                                                                                                                                                                                                                                                                        The integrand profile on phase 1.

                                                                                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                                                                                                          noncomputable def GerverSofa.PartF.Integrals.r2 (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                          The integrand profile on phase 2.

                                                                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                                                                          Instances For

                                                                                                                                                                                                                                                                                            The integrand profile on phase 3.

                                                                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                                                                            Instances For
                                                                                                                                                                                                                                                                                              noncomputable def GerverSofa.PartF.Integrals.r4 (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                              The integrand profile on phase 4.

                                                                                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                                                                                              Instances For
                                                                                                                                                                                                                                                                                                noncomputable def GerverSofa.PartF.Integrals.r (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                                The piecewise phase profile used in the integral representation.

                                                                                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                                                                                • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                                                                Instances For
                                                                                                                                                                                                                                                                                                  noncomputable def GerverSofa.PartF.Integrals.xi (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                                  One minus the cosine-weighted profile integral from t to the last switching angle.

                                                                                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                                                                                  Instances For
                                                                                                                                                                                                                                                                                                    noncomputable def GerverSofa.PartF.Integrals.zeta (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                                    The sine-weighted profile integral from t to the last switching angle.

                                                                                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                                                                                      The rotation path expressed using the two profile integrals.

                                                                                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                                                                                      • One or more equations did not get rendered due to their size.
                                                                                                                                                                                                                                                                                                      Instances For
                                                                                                                                                                                                                                                                                                        noncomputable def GerverSofa.PartF.Integrals.dg4 (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                                        The derivative formula for the fourth phase profile.

                                                                                                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                                                                                                                          noncomputable def GerverSofa.PartF.Integrals.primitiveX (V : ℝ) (g gp : ℝ → ℝ) (t : ℝ) :

                                                                                                                                                                                                                                                                                                          The horizontal primitive assembled from a profile, its derivative, and an offset.

                                                                                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                                                                                          Instances For
                                                                                                                                                                                                                                                                                                            noncomputable def GerverSofa.PartF.Integrals.primitiveY (U : ℝ) (g gp : ℝ → ℝ) (t : ℝ) :

                                                                                                                                                                                                                                                                                                            The vertical primitive assembled from a profile, its derivative, and an offset.

                                                                                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                                                                                            Instances For

                                                                                                                                                                                                                                                                                                              Horizontal primitive specialized to phase 1.

                                                                                                                                                                                                                                                                                                              Equations
                                                                                                                                                                                                                                                                                                              Instances For

                                                                                                                                                                                                                                                                                                                Vertical primitive specialized to phase 1.

                                                                                                                                                                                                                                                                                                                Equations
                                                                                                                                                                                                                                                                                                                Instances For

                                                                                                                                                                                                                                                                                                                  Horizontal primitive specialized to phase 2.

                                                                                                                                                                                                                                                                                                                  Equations
                                                                                                                                                                                                                                                                                                                  Instances For

                                                                                                                                                                                                                                                                                                                    Vertical primitive specialized to phase 2.

                                                                                                                                                                                                                                                                                                                    Equations
                                                                                                                                                                                                                                                                                                                    Instances For

                                                                                                                                                                                                                                                                                                                      Horizontal primitive specialized to phase 3.

                                                                                                                                                                                                                                                                                                                      Equations
                                                                                                                                                                                                                                                                                                                      Instances For

                                                                                                                                                                                                                                                                                                                        Vertical primitive specialized to phase 3.

                                                                                                                                                                                                                                                                                                                        Equations
                                                                                                                                                                                                                                                                                                                        Instances For
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.primitiveX_hasDerivAt (V : ℝ) {g gp : ℝ → ℝ} {t gpp : ℝ} (hg : HasDerivAt g (gp t) t) (hgp : HasDerivAt gp gpp t) :
                                                                                                                                                                                                                                                                                                                          HasDerivAt (primitiveX V g gp) ((g t + gpp) * Real.cos t) t

                                                                                                                                                                                                                                                                                                                          F05 repair: normalize only the scalar derivative, never typeclass arguments.

                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.primitiveY_hasDerivAt (U : ℝ) {g gp : ℝ → ℝ} {t gpp : ℝ} (hg : HasDerivAt g (gp t) t) (hgp : HasDerivAt gp gpp t) :
                                                                                                                                                                                                                                                                                                                          HasDerivAt (primitiveY U g gp) (-(g t + gpp) * Real.sin t) t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.fourth_equation (d : Reduced.Params) (hd : Reduced.Equations d) :
                                                                                                                                                                                                                                                                                                                          d.a + Phases.T - d.phi - d.theta - d.b + 1 / 2 * (d.theta - d.phi) * (1 + d.a) + 1 / 4 * (d.theta - d.phi) * (d.theta - d.phi) = 0
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.r_phase1 (d : Reduced.Params) {t : ℝ} (ht : t ≤ d.phi) :
                                                                                                                                                                                                                                                                                                                          r d t = r1 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.r_phase2 (d : Reduced.Params) {t : ℝ} (hlo : d.phi < t) (hhi : t ≤ d.theta) :
                                                                                                                                                                                                                                                                                                                          r d t = r2 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.r_phase3 (d : Reduced.Params) (ho : Ordered d) {t : ℝ} (hlo : d.theta < t) (hhi : t ≤ eta d) :
                                                                                                                                                                                                                                                                                                                          r d t = r3 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.r_phase4 (d : Reduced.Params) (ho : Ordered d) {t : ℝ} (hlo : eta d < t) (hhi : t ≤ tau d) :
                                                                                                                                                                                                                                                                                                                          r d t = r4 d t

                                                                                                                                                                                                                                                                                                                          F04: evaluation of the literal integrals on all four closed intervals #

                                                                                                                                                                                                                                                                                                                          The fundamental theorem is applied to smooth branch primitives. Equality with the discontinuous integrand is required only on the open interval. Adjacent integrals are then added, using the proved matching values at every switch.

                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.integrate_branch (f f' P : ℝ → ℝ) (a b : ℝ) (hab : a ≤ b) (hf' : Continuous f') (hderiv : ∀ (t : ℝ), HasDerivAt P (f' t) t) (heq : ∀ t ∈ Set.Ioo a b, f t = f' t) :
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.cos_tail4 (d : Reduced.Params) (ho : Ordered d) (t : ℝ) (ht : t ∈ Set.Icc (eta d) (tau d)) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.cos u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.cos u = 1 - X4 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.sin_tail4 (d : Reduced.Params) (ho : Ordered d) (t : ℝ) (ht : t ∈ Set.Icc (eta d) (tau d)) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.sin u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.sin u = Y4 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.cos_tail3 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc d.theta (eta d)) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.cos u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.cos u = 1 - X3 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.sin_tail3 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc d.theta (eta d)) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.sin u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.sin u = Y3 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.cos_tail2 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc d.phi d.theta) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.cos u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.cos u = 1 - X2 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.cos_tail1 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc 0 d.phi) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.cos u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.cos u = 1 - X1 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.sin_tail1 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc 0 d.phi) :
                                                                                                                                                                                                                                                                                                                          IntervalIntegrable (fun (u : ℝ) => r d u * Real.sin u) MeasureTheory.volume t (tau d) ∧ ∫ (u : ℝ) in t..tau d, r d u * Real.sin u = Y1 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.xi_zeta_phase1 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc 0 d.phi) :
                                                                                                                                                                                                                                                                                                                          xi d t = X1 d t ∧ zeta d t = Y1 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.xi_zeta_phase2 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc d.phi d.theta) :
                                                                                                                                                                                                                                                                                                                          xi d t = X2 d t ∧ zeta d t = Y2 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.xi_zeta_phase3 (d : Reduced.Params) (ho : Ordered d) (hd : Reduced.Equations d) (t : ℝ) (ht : t ∈ Set.Icc d.theta (eta d)) :
                                                                                                                                                                                                                                                                                                                          xi d t = X3 d t ∧ zeta d t = Y3 d t
                                                                                                                                                                                                                                                                                                                          theorem GerverSofa.PartF.Integrals.xi_zeta_phase4 (d : Reduced.Params) (ho : Ordered d) (t : ℝ) (ht : t ∈ Set.Icc (eta d) (tau d)) :
                                                                                                                                                                                                                                                                                                                          xi d t = X4 d t ∧ zeta d t = Y4 d t
                                                                                                                                                                                                                                                                                                                          noncomputable def GerverSofa.PartF.Integrals.W (d : Reduced.Params) (t : ℝ) :

                                                                                                                                                                                                                                                                                                                          The projection ξ sin t + ζ cos t used in the integral identities.

                                                                                                                                                                                                                                                                                                                          Equations
                                                                                                                                                                                                                                                                                                                          Instances For
                                                                                                                                                                                                                                                                                                                            theorem GerverSofa.PartF.Integrals.primitive_W (g gp U V t : ℝ) :
                                                                                                                                                                                                                                                                                                                            (V + g * Real.sin t + gp * Real.cos t) * Real.sin t + (U + g * Real.cos t - gp * Real.sin t) * Real.cos t = g + U * Real.cos t + V * Real.sin t

                                                                                                                                                                                                                                                                                                                            F05: the four-parameter dictionary satisfies the full 22 equations #

                                                                                                                                                                                                                                                                                                                            These polynomial certificates use the four reduced equations and the two trigonometric circle identities. No box membership or uniqueness is assumed. They do not identify the dictionary with the independently certified 22D root. The module is independent of the F04 integral evaluation.

                                                                                                                                                                                                                                                                                                                            Read back the four free parameters from the 22D representation.

                                                                                                                                                                                                                                                                                                                            Equations
                                                                                                                                                                                                                                                                                                                            Instances For

                                                                                                                                                                                                                                                                                                                              F06: reverse reduction from the full Romik equations #

                                                                                                                                                                                                                                                                                                                              This direction uses velocity matching and the two contact equations. It does not assume membership in either numerical box or any strict angle inequality.

                                                                                                                                                                                                                                                                                                                              F06: the reverse parameters determine the full solution #

                                                                                                                                                                                                                                                                                                                              Velocity matching determines the shape coefficients. Positional matching then determines each successive translation. No numerical enclosure is used.