@@ -19,13 +19,13 @@ namespace Verity.Core.Intrinsics
1919inductive HardFork where
2020 | cancun
2121 | prague
22- | fusaka
22+ | osaka
2323 deriving Repr, BEq, DecidableEq, Inhabited
2424
2525def HardFork.rank : HardFork → Nat
2626 | .cancun => 0
2727 | .prague => 1
28- | .fusaka => 2
28+ | .osaka => 2
2929
3030/-- `allows target required` is the fail-closed fork guard used by intrinsic
3131 callers: the target fork must be at least the intrinsic's minimum fork. -/
@@ -35,17 +35,18 @@ def HardFork.allows (target required : HardFork) : Bool :=
3535def HardFork.toString : HardFork → String
3636 | .cancun => "cancun"
3737 | .prague => "prague"
38- | .fusaka => "fusaka "
38+ | .osaka => "osaka "
3939
4040instance : ToString HardFork := ⟨HardFork.toString⟩
4141
4242def HardFork.parse? (raw : String) : Option HardFork :=
4343 match raw with
4444 | "cancun" => some .cancun
4545 | "prague" => some .prague
46- | "fusaka" => some .fusaka
47- -- Solidity's execution-layer name for the Fusaka execution upgrade.
48- | "osaka" => some .fusaka
46+ -- Ethereum's combined network upgrade name is Fusaka; the execution-layer
47+ -- fork relevant to compiler targets is Osaka.
48+ | "fusaka" => some .osaka
49+ | "osaka" => some .osaka
4950 | _ => none
5051
5152@[simp] theorem HardFork.allows_refl (fork : HardFork) :
@@ -55,20 +56,20 @@ def HardFork.parse? (raw : String) : Option HardFork :=
5556@[simp] theorem HardFork.cancun_not_allow_prague :
5657 HardFork.allows .cancun .prague = false := rfl
5758
58- @[simp] theorem HardFork.cancun_not_allow_fusaka :
59- HardFork.allows .cancun .fusaka = false := rfl
59+ @[simp] theorem HardFork.cancun_not_allow_osaka :
60+ HardFork.allows .cancun .osaka = false := rfl
6061
61- @[simp] theorem HardFork.prague_not_allow_fusaka :
62- HardFork.allows .prague .fusaka = false := rfl
62+ @[simp] theorem HardFork.prague_not_allow_osaka :
63+ HardFork.allows .prague .osaka = false := rfl
6364
6465@[simp] theorem HardFork.prague_allows_cancun :
6566 HardFork.allows .prague .cancun = true := rfl
6667
67- @[simp] theorem HardFork.fusaka_allows_cancun :
68- HardFork.allows .fusaka .cancun = true := rfl
68+ @[simp] theorem HardFork.osaka_allows_cancun :
69+ HardFork.allows .osaka .cancun = true := rfl
6970
70- @[simp] theorem HardFork.fusaka_allows_prague :
71- HardFork.allows .fusaka .prague = true := rfl
71+ @[simp] theorem HardFork.osaka_allows_prague :
72+ HardFork.allows .osaka .prague = true := rfl
7273
7374theorem HardFork.allows_trans {a b c : HardFork}
7475 (hab : HardFork.allows a b = true )
0 commit comments