File size: 762 Bytes
785c727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import Mathlib

namespace OAI

namespace CylinderCovering.Nilpotent

noncomputable section

def v (p : ℝ) : ℝ := (1 + p ^ 2) / 4

def w (p : ℝ) : ℝ := p / 2

def a (p : ℝ) : ℝ := p ^ 2 * v p / 4

def height (k p : ℝ) : ℝ := 1 / 2 + k ^ 2 * a p + k ^ 3

def InTetrahedron (x y z : ℝ) : Prop :=
  0 ≤ z ∧ z ≤ 1 ∧ |x| ≤ 1 - z ∧ |y| ≤ z

def InLowerSweep (k x y z : ℝ) : Prop :=
  ∃ p t : ℝ, |x| ≤ 1 ∧ |p| ≤ 1 ∧ 0 ≤ t ∧ t ≤ height k p ∧
    y = p * t + k * x * v p ∧ z = t + k * x * w p

def InUpperSweep (k x y z : ℝ) : Prop :=
  ∃ p t : ℝ, |y| ≤ 1 ∧ |p| ≤ 1 ∧ 0 ≤ t ∧ t ≤ height k p ∧
    x = p * t - k * y * v p ∧ z = 1 - t + k * y * w p

end
end CylinderCovering.Nilpotent

end OAI