openAI-math-dataset / lean /OAI /Geometry /CylinderCovering /Simplex /DiameterDefinitions.lean
roseking's picture
Add lean source and binary files (part 67)
785c727 verified
Raw History Blame Contribute Delete
382 Bytes
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