Zulip Chat Archive

Stream: lean4

Topic: Simplifying float expression?


Siddhartha Gadgil (Apr 16 2024 at 02:51):

By running a frontend, I have obtained a huge expression for a Float(after reducing) involving .ofScientific and a lot of operations. Is there a way to get the float, say as a string representation. If I apply Float.toString I just get the same expression with the function prepended.

Also the same for Nat. Here I have my code that works, but I remember something in Lean core which I cannot find.

Eric Wieser (Apr 21 2024 at 23:46):

docs#Lean.Meta.evalExpr ?


Last updated: May 02 2025 at 03:31 UTC