Zulip Chat Archive
Stream: new members
Topic: Tactic for explicit type coercion
Bo Qin (Aug 20 2025 at 17:36):
How do I the type coercion from
F (k + 1) + F k := by rw[F]
to
_ > 0.4 * 1.6 ^ (k + 1) + 0.4 * 1.6 ^ k := by rel[IH1a, IH2a]
where do I put the ( :\Q)?
math3.png
Bo Qin (Aug 20 2025 at 17:40):
of course this fails at F because of different return type?
math3a.png
Aaron Liu (Aug 20 2025 at 17:40):
try putting it everywhere
Bo Qin (Aug 20 2025 at 17:41):
I can't seem to do the coersion of a function, but it works for primitive types
Bo Qin (Aug 20 2025 at 17:43):
this fails the rw tactics
math3b.png
Aaron Liu (Aug 20 2025 at 17:44):
you have to rewrite with a casting theorem
Last updated: Dec 20 2025 at 21:32 UTC