| /- | |
| Copyright (c) 2025 Lean FRO, LLC. All rights reserved. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| Authors: Markus Himmel, Paul Reichert, Robin Arnez | |
| -/ | |
| module | |
| prelude | |
| public import Init.Data.Order.Ord | |
| import Init.Data.BitVec.Lemmas | |
| public section | |
| /-! | |
| # Instances for strings. | |
| -/ | |
| set_option autoImplicit false | |
| set_option linter.missingDocs true | |
| open Std | |
| namespace BitVec | |
| variable {n : Nat} | |
| instance : TransOrd (BitVec n) := | |
| TransOrd.compareOfLessAndEq_of_antisymm_of_trans_of_total_of_not_le | |
| BitVec.le_antisymm BitVec.le_trans BitVec.le_total BitVec.not_le | |
| instance : LawfulEqOrd (BitVec n) where | |
| eq_of_compare h := compareOfLessAndEq_eq_eq BitVec.le_refl BitVec.not_le |>.mp h | |
| end BitVec |