Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Init/Data/Option/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ instance (r : α → β → Prop) [s : DecidableRel r] : DecidableRel (Option.lt
| some _, none => isFalse not_false
| none, none => isFalse not_false

instance (r : α → β → Prop) [s : DecidableRel r] : DecidableRel (Option.le r)
| none, some _ => isTrue trivial
| some x, some y => s x y
| some _, none => isFalse not_false
| none, none => isTrue trivial

namespace SomeLtNone

/--
Expand Down
1 change: 1 addition & 0 deletions src/Lean/Data.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ public import Lean.Data.NameTrie
public import Lean.Data.RBTree
public import Lean.Data.RBMap
public import Lean.Data.RArray
public import Lean.Data.Fmt
13 changes: 13 additions & 0 deletions src/Lean/Data/Fmt.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/-
Copyright (c) 2025 Lean FRO. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.

Author: Marc Huisinga
-/
module

prelude
public import Lean.Data.Fmt.Basic
public import Lean.Data.Fmt.Formatter
public import Lean.Data.Fmt.LawfulCost
public import Lean.Data.Fmt.Json
Loading
Loading