AFTD Auto-Formalizing Theoretical Domains

Cosmology.SpatialGeometry.S

defimported Lean

For s corresponding to - Spherical k, S s r = k * sin (r / k) - Flat, S s r = r, - Saddle k, S s r = k * sinh (r / k).

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Filter in
open scoped Topology in
noncomputable def Cosmology.SpatialGeometry.S (s : SpatialGeometry) : ℝ → ℝ
Defined in
Physlib, `Cosmology.SpatialGeometry.S`
Lean proof
By Luis Gabriel C. Bariuan, Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Joseph Tooby-Smith. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
09 Oct 2026
Axioms
none listed
Built on 1

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Filter in
open scoped Topology in
/-- For `s` corresponding to - `Spherical k`, `S s r = k * sin (r / k)` - `Flat`, `S s r = r`, - `Saddle k`, `S s r = k * sinh (r / k)`. -/
noncomputable def Cosmology.SpatialGeometry.S (s : SpatialGeometry) : ℝ → ℝ :=
  fun r =>
    match s with
    | SpatialGeometry.Spherical k _ => k * Real.sin (r / k)
    | SpatialGeometry.Flat => r
    | SpatialGeometry.Saddle k _ => k * Real.sinh (r / k)
See it in the graphDiscuss this resultChallenge it