`dchr` really is the partial derivative of `chr` in `y`.
ProvedTrinomialFisher.hasDerivAt_chr_sndaether-catalogspeculative
dchr really is the partial derivative of chr in y.
theorem TrinomialFisher.hasDerivAt_chr_snd(k i j : Fin 2) (x y : ℝ)
(hy : y ≠ 0) (hz : 1 - x - y ≠ 0) :
HasDerivAt (fun t => chr k i j x t) (dchr 1 k i j x y) y := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/FisherSimplexCurvature.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Speculative/AutoResearch/FisherSimplexCurvature.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_FisherSimplexCurvature
/-!
# The Levi-Civita connection and Gaussian curvature of a concrete finite-support model
This file carries out, **completely explicitly and with no `sorry`**, the full
Riemannian computation for the smallest genuinely two-dimensional finite-support
statistical model: the *open trinomial simplex*
`Δ° = {(x, y) : x > 0, y > 0, 1 - x - y > 0}`,
`p_(x,y) = (x, y, 1 - x - y)` on the three-point sample space `Fin 3`,
equipped with its Fisher–Rao metric.
The pipeline is deliberately staged so that **each geometric object is derived,
not postulated**:
1. `score` — the score functions are *proved* to be the logarithmic derivatives
of the model (`hasDerivAt_log_prob_fst/snd`).
2. `fisherMetric` — defined as `E[s_i s_j]` and *proved* equal to the closed form
`gL` (`fisherMetric_eq_gL`).
3. `dgL` — *proved* to be the genuine partial derivatives of `gL`
(`hasDerivAt_gL_fst/snd`).
4. `amariC` — the Amari–Chentsov cubic tensor `E[s_i s_j s_k]`; we prove the
*mixture-coordinate* identity `∂_k g_ij = - C_ijk` (`dgL_eq_neg_amariC`).
5. `chrLow` — the Christoffel symbols of the first kind, together with a general
Koszul-type **uniqueness theorem** (`levi_civita_unique`) showing that they are
the *only* torsion-free metric-compatible candidate.
6. `gInv`, `chr` — the inverse metric and the Christoffel symbols of the second
kind, in closed form, *proved* to be the raised `chrLow` (`chr_eq_raise`).
7. `dchr` — *proved* to be the partial derivatives of `chr`
(`hasDerivAt_chr_fst/snd`).
8. `riemann`, `sectional`, `alphaCurv` — the curvature machinery, and the two
headline results:
* `gaussianCurvature_eq` : the Gauss curvature of the Fisher–Rao metric on the
trinomial simplex is the **constant `+1/4`** — the model is a piece of a round
sphere of radius `2`, *not* a hyperbolic plane;
* `alphaCurv_eq` : for Amari's whole one-parameter family of `α`-connections the
curvature scalar is `(1 - α²)/4`, which is `≥ 0` for `|α| ≤ 1` and vanishes
exactly at the dually flat endpoints `α = ±1`.
The methodological point of the mission — *"test curvature only after
identifiability; constant negative curvature is a separate claim, not a corollary
of exponential sensitivity"* — is settled in the companion file
`Combinatorics.FisherSimplexCurvatureConsequences`.
-/
open Finset
noncomputable section
open TrinomialFisher
/-! ## 1. The model, its scores, and the Fisher metric -/
/-! ## 2. Partial derivatives of the metric, and the Amari–Chentsov tensor -/
/-! ## 3. The Levi-Civita connection: Christoffel symbols of the first kind -/
/-! ## 4. The inverse metric and the Christoffel symbols of the second kind -/
/-! ## 5. Partial derivatives of the Christoffel symbols -/Formal statement
theorem TrinomialFisher.hasDerivAt_chr_snd(k i j : Fin 2) (x y : ℝ)
(hy : y ≠ 0) (hz : 1 - x - y ≠ 0) :
HasDerivAt (fun t => chr k i j x t) (dchr 1 k i j x y) y := by sorrySource