blob: 5ddef390716e76cf63b6e9bd90c1cb645322da98 [file]
/-
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.String.Compare
import Init.Data.Char.Lemmas
public section
/-!
# Instances for strings.
-/
set_option autoImplicit false
set_option linter.missingDocs true
open Std
namespace Char
instance : TransOrd Char :=
TransOrd.compareOfLessAndEq_of_antisymm_of_trans_of_total_of_not_le
Char.le_antisymm Char.le_trans Char.le_total Char.not_le
instance : LawfulEqOrd Char where
eq_of_compare h := compareOfLessAndEq_eq_eq Char.le_refl Char.not_le |>.mp h
end Char