Machine integers or "True" integers?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- wasm
- 領域
- compilers
調査の方向性
この issue では、numeric.md をカスタムルールの現在のエントリポイントとして挙げ、K's domains.k にある MINT モジュールを指しています。まずそれらの定義を読み、その後、証明と具体的実行への影響について既存の表現を MINT と比較してください。完了には、合意されたアプローチとそれに対応する意味論の変更が必要ですが、受け入れ基準は指定されていません。
索引モデルが issue の本文から書いたものです。
説明
In K's builtin domains.k library we find a suite of functions implementing machine integers of arbitrary bit width represented in 2's complement. For example:
/*@
* Addition, subtraction, and multiplication are the same for signed and
* unsigned integers represented in 2's complement
*/
syntax MInt ::= addMInt(MInt, MInt) [function, hook(MINT.add), smt-hook(bvadd)]
| subMInt(MInt, MInt) [function, hook(MINT.sub), smt-hook(bvsub)]
| mulMInt(MInt, MInt) [function, hook(MINT.mul), smt-hook(bvmul)]
Currently, this repo is not using these builtins, but rather, similar to evm-semantics, uses "True" integer representations + modulo operations.
I'm curious what the best approach is here. In writing proofs of EVM programs, a lot of effort goes in into writing lemmas that deals with quite simple arithmetic, which can otherwise be proven directly using the right SMT definitions. On the other hand, SMT theories dealing with large bitvectors (such as the 256-bit words of the EVM) quickly start being more difficult to reason with than modulo integer arithmetic.
There might also be speedups of concrete executions to consider in this choice. I expect the MINT library to be faster than custom made extra rules.
I'm tentatively in favor of replacing the custom rules dealing with machine integers in numeric.md in favor of the MINT module of domains.k, but I'm curious of others people's thoughts here. @ehildenb @hjorthjort @dwightguth
- 主要言語
- WebAssembly
- スター
- 106
- フォーク
- 24
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
runtimeverification/wasm-semantics のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
runtimeverification/wasm-semantics の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
objectionary/jeo-maven-plugin#1827 ·
メンテナーはふだん 4 日以内に返信
-
backend:DirectX
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
llvm/llvm-project#227530 ·
メンテナーはふだん 1 日以内に返信
-
`enzymexla.linalg.lu` lowering fails for a tall matrix: the permutation is built with the pivot typeオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EnzymeAD/Enzyme-JAX#3286 ·
メンテナーはふだん 1 日以内に返信
-
bot-triaged oncall: cpu inductor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pytorch/pytorch#199058 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
WebAssembly/component-model#733 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信