KoalaBear.fieldSize
DefinitionYukon_b0cfdbaf70ca87129aa06e66better-codes-history
The KoalaBear field modulus, 2^31 - 2^24 + 1.
Definition code
/-
Copyright (c) 2024 ArkLib Contributors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Quang Dao, Valerii Huhnin
-/
module
public import Mathlib.Algebra.Order.Ring.Star
public import Mathlib.RingTheory.RootsOfUnity.PrimitiveRoots
public import Mathlib.FieldTheory.Finite.Basic
public import Mathlib
@[expose] public section
/-!
# KoalaBear Field `2^{31} - 2^{24} + 1`
This is the field used for lean Ethereum spec.
-/
@[expose] public section
namespace KoalaBear
/-- The KoalaBear field modulus, `2^31 - 2^24 + 1`. -/
@[reducible]
def fieldSize : Nat := 2 ^ 31 - 2 ^ 24 + 1
end KoalaBear
end
end
Source