blob: 0479f6c0bf8fa4d5f19e99896914546ad36817ab [file] [edit]
structure Point where
x : Nat
y : Nat
def Point.compute1 (p : Point) : Point :=
let p := { p with x := 1 }
let p := { p with y := 0 }
if (p.x - p.y) > p.x then p else p
def Point.compute2 (p : Point) : Point :=
let q := { p with x := 1 }
let r := { q with y := 0 }
if (r.x - r.y) > r.x then r else r