roseking's picture
Add lean source and binary files (part 67)
785c727 verified
Raw History Blame Contribute Delete
455 Bytes
8
def field (ell : Plane →L[ℝ] ℝ) (v c : Plane) (f : ℝ → ℝ) (p : Plane) : Plane :=
body · 1 line
  c + f (ell p) • v
11
def signedSquare (y : ℝ) : ℝ := y * |y|
13
def signedSquareField : Plane → Plane :=
body · 1 line
  field (EuclideanSpace.proj 1) (vec2 1 0) 0 signedSquare