/-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Data.Rat.Cast.Lemmas
import Mathlib.Data.Rat.Cast.CharZero
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Scientific notation for characteristic-zero fields
The `OfScientific` instance for any characteristic zero field
is well-behaved with respect to the field operations.
It's probably possible, by adjusting the `OfScientific` instances,
to make this more general, but it's not needed at present.
-/
public section
set_option backward.isDefEq.respectTransparency false in
open Lean.Grind in
instance {K : Type*} [_root_.Field K] [CharZero K] : LawfulOfScientific K where
ofScientific_def {m s e} := by
rw [← NNRat.cast_ofScientific, NNRatCast.toOfScientific_def]
simp only [LawfulOfScientific.ofScientific_def]
split
· norm_cast
simp
· norm_cast
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland