Lean Kernel Arena (Preview) / other/nat-lit-sub

Test "other/nat-lit-sub"

Expected: 馃憤 accept 路 Size: 30.4鈥疜B 路 Lines: 561 路 lean4export: 3.2.0 路 Lean: 4.38.0-nightly-2026-12-03 路 馃搫 Declaration 路 馃敆 Source

Nat.sub on two literals truncates at zero: Nat.sub 1000000 1000001 = 0. Same Nat-literal extension as nat-lit-add; the numerals are large enough that unfolding Nat.sub to a Nat.succ recursor is not a practical path.

Checker Result 鈴憋笍 馃
gruszka 馃憤 2.07鈥痬s 96.1鈥疢B
nano-lean 馃憤 0.744鈥痬s 30.1鈥疢B
pestka 馃憤 2.71鈥痬s 18.8鈥疢B
con-leche 馃憤 5.05鈥痬s 25.2鈥疢B
con-ron 馃憤 29.2鈥痬s 39.6鈥疢B
nucleus 馃毇 116鈥痬s 13.9鈥疢B
official 馃憤 44.2鈥痬s 112.7鈥疢B