Skip to content

Commit

Permalink
feat: ext lemma for Thunk (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgdorais authored Jun 14, 2024
1 parent 0f5b287 commit 15d42e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Batteries.lean
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import Batteries.Data.Range
import Batteries.Data.Rat
import Batteries.Data.String
import Batteries.Data.Sum
import Batteries.Data.Thunk
import Batteries.Data.UInt
import Batteries.Data.UnionFind
import Batteries.Lean.AttributeExtra
Expand Down
10 changes: 10 additions & 0 deletions Batteries/Data/Thunk.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/-
Copyright (c) 2024 François G. Dorais. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE
Authors: François G. Dorais, et al.
-/

namespace Thunk

@[ext] protected theorem ext : {a b : Thunk α} → a.get = b.get → a = b
| {..}, {..}, heq => congrArg _ <| funext fun _ => heq

0 comments on commit 15d42e1

Please sign in to comment.