Lean Kernel Arena / other/nat-lit-add

Test "other/nat-lit-add"

Expected: 👍 accept · Size: 26.0 KB · Lines: 478 · lean4export: 3.1.0 · Lean: 4.36.0 · 📄 Declaration · 🔗 Source

The kernel's Nat extension reduces Nat.add applied to two literals to a literal, instead of unfolding the numerals to Nat.succ chains. The arguments here are large enough that unfolding is not a practical alternative, so a checker that only implements natLitEq-style literal↔succ conversion will not get this for free.

Exported as natAddLit : Nat.add 123456789 987654321 = 1111111110 := rfl. The application is Nat.add on .lits (not HAdd/OfNat).

Checker Result ⏱️ 🧠
nano-lean 👍 0.702 ms 30.1 MB
gruszka 👍 2.04 ms 113.9 MB
mathgraph 👍 1.28 ms 29.4 MB
sokonanoda 👍 1.08 ms 29.7 MB
pestka 👍 2.62 ms 19.0 MB
kefir 👍 1.66 ms 6.2 MB
kefir-wasm 👍 172 ms 91.4 MB
con-ron 👍 29.7 ms 41.8 MB
con-ron-stream 👍 30.3 ms 45.3 MB
con-agua 👍 21.0 ms 16.3 MB
nanobruijn 👍 2.00 ms 11.7 MB
nanoda 👍 1.22 ms 3.1 MB
con-leche 👍 4.92 ms 25.1 MB
pestka-wasm 👍 520 ms 319.4 MB
official-nightly 👍 35.0 ms 107.4 MB
eink0rn 👍 2.35 ms 13.4 MB
official 👍 33.9 ms 92.3 MB
ind-models 👍 108 ms 99.8 MB
kiota 👍 1.76 ms 11.2 MB
tenet 👍 148 ms 45.8 MB
tenet-hs 👍 2.49 ms 11.2 MB
logos-kernel 👍 0.641 ms 4.4 MB
evmlean 👍 4.56 s 277.0 MB
mini 🚫 35.4 ms 74.5 MB
overfull ⌛ — —
lean4lean 👍 31.8 ms 89.7 MB
lean4cobol 👍 18.3 ms 13.5 MB
tenet-jvm 👍 131 ms 77.5 MB
nanoclo 👍 1.10 ms 51.5 MB
vow-lean-kernel 👍 248 ms 14.7 MB
canonical-min ✋ 389 ms 1.1 GB
lazylean 👍 1.57 ms 21.1 MB
rpylean 👍 1.07 ms 11.3 MB
metalean-slow 🚫 45.3 ms 68.2 MB
metalean-fast 👍 33.0 ms 65.5 MB
nanoclo-fortran 👍 2.21 ms 4.3 MB