Skip to content

Comment on Some Junk Theorems in Leanparent

Comments

If sqrt -1 = 0, then (by squaring both sides) -1 = 0, which is clearly unsound.

Right but there isn't a theorem saying `(sqrt x)^2 = x`, there's a theorem saying `x >= 0 -> (sqrt x)^2 = x`

Ah, that makes sense. Thank you. As long as every use of sqrt has such a condition.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.