Documentation

CslibFrontier.Foundations.Geometry.Euclidean.Angle.Cap

Angles within a spherical cap #

Fix a unit vector x of a real inner product space and κ ≥ 0. The unit vectors y with κ ≤ ⟪y, x⟫ form the spherical cap of angular radius arccos κ around x. Vectors in such a cap are close to each other:

The last bound beats the pairwise bound 2 arccos κ on every angle: for n = 3 the average inner product is at least (3 κ ^ 2 - 1) / 2, which exceeds 2 κ ^ 2 - 1 by (1 - κ ^ 2) / 2.

Main results #

References #

theorem InnerProductGeometry.two_mul_sq_sub_one_le_inner {V : Type u_1} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x y z : V} (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hz : ‖z‖ = 1) {κ : ℝ} (hκ : 0 ≤ κ) (hyx : κ ≤ inner ℝ y x) (hzx : κ ≤ inner ℝ z x) :
2 * κ ^ 2 - 1 ≤ inner ℝ y z

Two vectors in a cap. Two unit vectors whose inner products with a unit vector x are at least κ ≥ 0 have inner product at least 2 κ ^ 2 - 1: each makes an angle at most arccos κ with x, so they make an angle at most 2 arccos κ ≤ π with each other.

theorem InnerProductGeometry.le_sum_offDiag_inner_of_norm_le {V : Type u_1} {ι : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x : V} (hx : ‖x‖ ≤ 1) {s : Finset ι} {y : ι → V} (hy : ∀ i ∈ s, ‖y i‖ ≤ 1) {κ : ℝ} (hκ : 0 ≤ κ) (hyx : ∀ i ∈ s, κ ≤ inner ℝ (y i) x) :
↑s.card ^ 2 * κ ^ 2 - ↑s.card ≤ ∑ p ∈ s.offDiag, inner ℝ (y p.1) (y p.2)

Many short vectors in a cap. If n vectors of norm at most 1 have inner products at least κ ≥ 0 with a vector of norm at most 1, their inner products over the ordered pairs of distinct indices sum to at least n ^ 2 κ ^ 2 - n.

theorem InnerProductGeometry.le_sum_offDiag_inner {V : Type u_1} {ι : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x : V} (hx : ‖x‖ = 1) {s : Finset ι} {y : ι → V} (hy : ∀ i ∈ s, ‖y i‖ = 1) {κ : ℝ} (hκ : 0 ≤ κ) (hyx : ∀ i ∈ s, κ ≤ inner ℝ (y i) x) :
↑s.card ^ 2 * κ ^ 2 - ↑s.card ≤ ∑ p ∈ s.offDiag, inner ℝ (y p.1) (y p.2)

Many vectors in a cap. If n unit vectors have inner products at least κ ≥ 0 with a unit vector, their inner products over the ordered pairs of distinct indices sum to at least n ^ 2 κ ^ 2 - n.

theorem InnerProductGeometry.card_mul_sq_sub_le_of_le_inner {V : Type u_1} {ι : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x : V} (hx : ‖x‖ ≤ 1) {s : Finset ι} {y : ι → V} (hy : ∀ i ∈ s, ‖y i‖ ≤ 1) {κ γ : ℝ} (hκ : 0 ≤ κ) (hγ : γ ≤ 1) (hyx : ∀ i ∈ s, κ ≤ inner ℝ (y i) x) (hyy : ∀ i ∈ s, ∀ j ∈ s, i ≠ j → inner ℝ (y i) (y j) ≤ γ) :
↑s.card * (κ ^ 2 - γ) ≤ 1 - γ

Few almost orthogonal vectors in a cap. If n vectors of norm at most 1 have pairwise inner products at most γ ≤ 1 and inner products at least κ ≥ 0 with a vector of norm at most 1, then n (κ ^ 2 - γ) ≤ 1 - γ: when γ < κ ^ 2, at most (1 - γ) / (κ ^ 2 - γ) of them fit in the cap.

theorem InnerProductGeometry.card_mul_sq_sub_le_of_le_abs_inner {V : Type u_1} {ι : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x : V} (hx : ‖x‖ ≤ 1) {s : Finset ι} {y : ι → V} (hy : ∀ i ∈ s, ‖y i‖ ≤ 1) {κ γ : ℝ} (hκ : 0 ≤ κ) (hγ : γ ≤ 1) (hyx : ∀ i ∈ s, κ ≤ |inner ℝ (y i) x|) (hyy : ∀ i ∈ s, ∀ j ∈ s, i ≠ j → |inner ℝ (y i) (y j)| ≤ γ) :
↑s.card * (κ ^ 2 - γ) ≤ 1 - γ

Few almost orthogonal vectors in a double cap. If n vectors of norm at most 1 have pairwise inner products of absolute value at most γ ≤ 1 and inner products of absolute value at least κ ≥ 0 with a vector of norm at most 1, then n (κ ^ 2 - γ) ≤ 1 - γ.

theorem InnerProductGeometry.sum_offDiag_angle_le {V : Type u_1} {ι : Type u_2} [NormedAddCommGroup V] [InnerProductSpace ℝ V] {x : V} (hx : ‖x‖ = 1) {s : Finset ι} {y : ι → V} (hy : ∀ i ∈ s, ‖y i‖ = 1) {κ : ℝ} (hκ : √2 / 2 ≤ κ) (hyx : ∀ i ∈ s, κ ≤ inner ℝ (y i) x) :
∑ p ∈ s.offDiag, angle (y p.1) (y p.2) ≤ ↑s.card * (↑s.card - 1) * Real.arccos ((↑s.card * κ ^ 2 - 1) / (↑s.card - 1))

Angles in a cap. If n unit vectors have inner products at least κ ≥ √2 / 2 with a unit vector, the angles between them over the n (n - 1) ordered pairs of distinct indices sum to at most n (n - 1) arccos ((n κ ^ 2 - 1) / (n - 1)).