fix(library/data/rat): migrate for rat
This commit is contained in:
parent
d2adf922b7
commit
f25c301c98
2 changed files with 8 additions and 4 deletions
|
@ -392,8 +392,10 @@ section
|
||||||
inv_zero := inv_zero,
|
inv_zero := inv_zero,
|
||||||
has_decidable_eq := has_decidable_eq⦄
|
has_decidable_eq := has_decidable_eq⦄
|
||||||
|
|
||||||
migrate from algebra with rat
|
definition divide (a b : rat) := algebra.divide a b
|
||||||
replacing sub → rat.sub
|
definition dvd (a b : rat) := algebra.dvd a b
|
||||||
end
|
|
||||||
|
|
||||||
|
migrate from algebra with rat
|
||||||
|
replacing sub → rat.sub, divide → divide, dvd → dvd
|
||||||
|
end
|
||||||
end rat
|
end rat
|
||||||
|
|
|
@ -222,6 +222,8 @@ section
|
||||||
|
|
||||||
definition abs (n : rat) : rat := algebra.abs n
|
definition abs (n : rat) : rat := algebra.abs n
|
||||||
definition sign (n : rat) : rat := algebra.sign n
|
definition sign (n : rat) : rat := algebra.sign n
|
||||||
migrate from algebra with rat replacing abs → abs, sign → sign
|
|
||||||
|
migrate from algebra with rat
|
||||||
|
replacing has_le.ge → ge, has_lt.gt → gt, sub → sub, abs → abs, sign → sign, dvd → dvd, divide → divide
|
||||||
end
|
end
|
||||||
end rat
|
end rat
|
||||||
|
|
Loading…
Reference in a new issue