File size: 382 Bytes
785c727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Mathlib

namespace OAI

namespace CylinderCovering.SimplexDiameter

variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]

def ChordLength (S : Set E) (u : E) (r : ℝ) : Prop :=
  0 ≤ r ∧ ∃ x ∈ S, x + r • u ∈ S

noncomputable def maxChord (S : Set E) (u : E) : ℝ :=
  sSup {r : ℝ | ChordLength S u r}

end CylinderCovering.SimplexDiameter

end OAI