Skip to content

Commit

Permalink
chore: fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
fgdorais committed Oct 25, 2024
1 parent 146f718 commit 401211b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Batteries/Data/Fin/Enum.lean
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ private instance (s : Setoid α) [DecidableRel s.r] [Fin.Enum α] : DecidableRel

instance (s : Setoid α) [DecidableRel s.r] [Fin.Enum α] : Fin.Enum (Quotient s) where
size := Fin.count fun i => getRepr (decodeSetoid s) i = i
decode i := Quotient.liftOn (decodeQuotient (decodeSetoid s) i) (fun i => Quotient.mk s (decode i))
(fun _ _ h => Quotient.sound h)
decode i := Quotient.liftOn (decodeQuotient (decodeSetoid s) i)
(fun i => Quotient.mk s (decode i)) (fun _ _ h => Quotient.sound h)
encode x := Quotient.liftOn x
(fun x => encodeQuotient (decodeSetoid s) (Quotient.mk _ (encode x))) <| by
intro _ _ h
Expand Down

0 comments on commit 401211b

Please sign in to comment.