Skip to content

Commit

Permalink
fix: use Zero/One instead of HasZero/HasOne
Browse files Browse the repository at this point in the history
  • Loading branch information
gebner committed Nov 1, 2022
1 parent 6fffafa commit a04dac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mathport/Binary/Number.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ structure NumInfo where
deriving Inhabited

partial def isNumber? (e : Expr) : Option NumInfo := do
if e.isAppOfArity `HasZero.zero 2 then pure {
if e.isAppOfArity `Zero.zero 2 then pure {
number := 0,
level := e.getAppFn.constLevels!.head!,
type := e.getArg! 0
hasZero? := e.getArg! 1
}
else if e.isAppOfArity `HasOne.one 2 then pure {
else if e.isAppOfArity `One.one 2 then pure {
number := 1,
level := e.getAppFn.constLevels!.head!,
type := e.getArg! 0,
Expand Down

0 comments on commit a04dac6

Please sign in to comment.