CakeML/cakeml

Refactor to use extended numerals.

開放

#1,167 建立於 2025年5月1日

 (1 則留言) (0 個反應) (0 位負責人)Standard ML (98 個分叉)auto 404
dev experiencegood first issuerefactoring

倉庫指標

星標
 (1,169 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Cakeml currently uses num option in various places where an extended numeral is more appropriate.

for example in wordlang stack_size is a num option where NONE means the stack is unbounded. This result in slightly unintuitive defintions written in ways like OPTION_MAP2 $+ a b option_le defined with option_le SOME _ NONE. Proof are also harder where many just end up case splitting on the option.

On brief search in the HOL repo there appears to be xnum developed in examples/HolCheck/ctlScript.sml. That should probably be refactored out into a separate file + more syntax sugar to allow stuff like 0e to be a 0 : xnum

貢獻者指南