Plain-English statement
Actual unit-subtype arccos cost is continuous/measurable, bounded, chord-dominating, separating, symmetric and triangular. No installed metric or intrinsic path-length identity. Fresh independent source/compiler and exact candidate audits accepted. Final root/reader gates and postmerge purification separate; no whole-model claim.
Read the mathematics first, then descend into Lean
You do not need to know Lean before opening this panel. The page keeps the paper-level theorem, rigorous proof obligations, exact Lean declaration, and proof dependencies as separate layers so a first-time reader can move down one layer at a time.
Proof architecture
Start with the tree when learning: prerequisites sit below the theorem and downstream results sit above it. Switch to the network when you want to understand where this declaration lives in the local formal library. Every mapped node is clickable.
Graph rule: only dependencies found by the ASTIS source scan are drawn. Missing tactic indirection is treated as an under-approximation; the site never invents an edge just to make a prettier graph.
How to read the exact Lean declaration
Read a Lean theorem left-to-right exactly as you would unpack a mathematical sentence: name → ambient types → automatically inferred structures → explicit hypotheses → conclusion → proof. Then read the proof top-to-bottom as transformations of the current goal.
- NameWhat reusable mathematical fact is being created?
- ParametersWhich symbols are arbitrary, and which structures are inferred by typeclass search?
- PropositionAfter the colon, translate the Lean expression back into a paper statement.
- Proof actionsAfter
by, ask what each tactic does to the mathematical goal—not only what syntax it uses.
Syntax used on this page
This glossary is filtered to syntax that actually occurs in the declaration above. Open a symbol only when you meet it, rather than memorizing Lean grammar in advance.
Source voice and ASTIS voice stay separate
When Samplinglib shows a short quotation from Chewi, it is labeled as a source excerpt and linked to the canonical book page. Intuition, expanded proof steps, hidden regularity assumptions, and Lean explanations are ASTIS-authored commentary. A quotation never substitutes for a formal proof, and an ASTIS explanation is never attributed to the textbook author.
Lean statement
theorem unit_sphere_angular_cost_properties
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E] :
let S := {w : E // ‖w‖ = 1}
let c : S × S → ℝ := fun z => Real.arccos ⟪z.1.1,z.2.1⟫_ℝ
Continuous c ∧ Measurable c ∧
(∀ u v : S, 0 ≤ c (u,v) ∧ c (u,v) ≤ Real.pi ∧
c (u,v) = InnerProductGeometry.angle u.1 v.1 ∧
‖u.1-v.1‖ ≤ c (u,v) ∧
(c (u,v) = 0 ↔ u = v) ∧ c (u,v) = c (v,u)) ∧
∀ u v w : S, c (u,w) ≤ c (u,v)+c (v,w) := by
dsimp only
letI : SecondCountableTopology E := inferInstance
have heq (u v : {w : E // ‖w‖ = 1}) :
Real.arccos ⟪u.1,v.1⟫_ℝ = InnerProductGeometry.angle u.1 v.1 := by
simp [InnerProductGeometry.angle,u.property,v.property]
have hc : Continuous (fun z : {w : E // ‖w‖ = 1} × {w : E // ‖w‖ = 1} =>
Real.arccos ⟪z.1.1,z.2.1⟫_ℝ) := by fun_prop
refine ⟨hc,hc.measurable,?_,?_⟩
· intro u v
have hchord : ‖u.1-v.1‖ ≤ Real.arccos ⟪u.1,v.1⟫_ℝ := by
rw [heq]
exact chord_le_angle u.1 v.1 u.property v.property
refine ⟨Real.arccos_nonneg _,Real.arccos_le_pi _,heq u v,hchord,?_,?_⟩
· constructor
· intro hz
apply Subtype.ext
apply sub_eq_zero.mp
apply norm_eq_zero.mp
exact le_antisymm (by simpa only [hz] using hchord) (norm_nonneg _)
· rintro rfl
rw [heq]
apply InnerProductGeometry.angle_self
intro hz
have hh := u.property
rw [hz,norm_zero] at hh
norm_num at hh
· rw [heq,heq,InnerProductGeometry.angle_comm]
· intro u v w
rw [heq,heq,heq]
exact InnerProductGeometry.angle_le_angle_add_angle u.1 v.1 w.1
end AutoSamplingTheory.TechnicalLemmas.Geometry.UnitSphereAngularCost
Open AutoSamplingTheory/TechnicalLemmas/Geometry/UnitSphereAngularCost.lean:27published source at ed709a7f320d
Proof architecture
Generic geometric optimisation and law-dependent feature prerequisites; actual model compositions remain separate
Lean proof walkthrough
- Read the quantified variables and typeclass brackets as part of the mathematical statement; inferred arguments are not missing assumptions.
- `intro` introduces quantified hypotheses into the local proof context.
- `have` creates a named intermediate mathematical fact.
- `rw` rewrites by an established identity.
- `simp` normalizes through registered definitional and theorem rewrites.
- `apply` reduces the goal to the hypotheses of a reusable theorem.
- `refine` instantiates a reusable theorem while leaving explicit subgoals.
- `exact` closes the current goal with an already typed term.
Why the statement has this shape
The declaration is kept at the reusable level recorded by its Registry tags and direct consumers. Explicit measures, spaces, wrappers, and regularity hypotheses expose interfaces that paper notation often infers. A theorem card explains those interfaces but never widens the compiled statement.
Hidden assumptions and non-claims
- Measurability is represented explicitly or must be supplied by a dependency.