Zulip Chat Archive
Stream: general
Topic: computational reflection in 3 lines
Mario Carneiro (Jun 25 2018 at 09:10):
I managed to write a mini norm_num
using computational reflection in only a few basic tactics:
import data.num.lemmas example : 12402536340 * 2356324602 = 29224401505141036680 := begin rw ← num.of_nat_inj, simp [num.bit0_of_bit0, num.bit1_of_bit1], refl end
Mario Carneiro (Jun 25 2018 at 09:10):
(The original theorem is on nat
, so a straight rfl
proof times out)
Kevin Buzzard (Jun 25 2018 at 09:15):
That is very cool :-)
Johan Commelin (Jun 25 2018 at 10:56):
Cool! Now we can start porting Sage to Lean!
Johan Commelin (Jun 25 2018 at 10:57):
Do some serious algebraic number theory.
Last updated: Dec 20 2023 at 11:08 UTC