Skip to content

Commit

Permalink
size_alter' cosmetic improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
datokrat committed Jan 13, 2025
1 parent 0692e90 commit ec5d4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Std/Data/DHashMap/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ theorem size_alter' [LawfulBEq α] {k : α} {f : Option (β k) → Option (β k)
(m.alter k f).size =
m.size
- (if m.contains k then 1 else 0)
+ (if (f (m.get? k)).isNone then 0 else 1) :=
+ (if (f (m.get? k)).isSome then 1 else 0) :=
sorry

theorem size_alter_le [LawfulBEq α] {k : α} {f : Option (β k) → Option (β k)} :
Expand Down

0 comments on commit ec5d4e8

Please sign in to comment.