Library QedkConcrete.nativeinputs
Native transaction representations
From Stdlib Require Import ZArith Lia.
Require Import RocqOfOCaml.RocqOfOCaml MonadVM.Chain.Ethereum
QedkConcrete.wordrange.
Local Open Scope Z_scope.
Require Import RocqOfOCaml.RocqOfOCaml MonadVM.Chain.Ethereum
QedkConcrete.wordrange.
Local Open Scope Z_scope.
tx is a decoded transaction. Its value is an unsigned 256-bit amount
and its calldata/initcode is representable by a native OCaml string.
This input-domain correction was approved on 2026-11-01.
Definition transactionValueAndDataBounds (tx : Chain.Ethereum.Transaction.t) : Prop :=
wordRange (Chain.Ethereum.Transaction.value tx) ∧
OCamlString.length (Chain.Ethereum.Transaction.data tx) ≤ 2^57 - 9.
Lemma transaction_data_counter_bound tx :
transactionValueAndDataBounds tx →
OCamlString.length (Chain.Ethereum.Transaction.data tx) < 2^60.
Proof. intros [_ Hlength]. lia. Qed.
wordRange (Chain.Ethereum.Transaction.value tx) ∧
OCamlString.length (Chain.Ethereum.Transaction.data tx) ≤ 2^57 - 9.
Lemma transaction_data_counter_bound tx :
transactionValueAndDataBounds tx →
OCamlString.length (Chain.Ethereum.Transaction.data tx) < 2^60.
Proof. intros [_ Hlength]. lia. Qed.