Closed adomasbaliuka closed 3 weeks ago
Since adding instances for NatCast, IntCast and Coe Rat Interval in #8, the approx tactic has trouble seeing through these conversions. We need lemmas like
NatCast
IntCast
Coe Rat Interval
approx
@[approx] lemma mem_approx_natCast (n : ℕ) : (n : ℝ) ∈ approx (n : Interval) := by have : approx (n : Interval) = approx (Interval.ofNat n) := by simp [Nat.cast, NatCast.natCast] rw [this] approx
Probably the proof could be made nicer. Do you want to add such lemmas? If yes, shall they be right below the instances?
Yes, we should definitely have those @[approx] lemmas.
@[approx]
Since adding instances for
NatCast
,IntCast
andCoe Rat Interval
in #8, theapprox
tactic has trouble seeing through these conversions. We need lemmas likeProbably the proof could be made nicer. Do you want to add such lemmas? If yes, shall they be right below the instances?