Skip to content

Commit

Permalink
Fix bug in handling zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Alstad authored and Colin Alstad committed Dec 7, 2023
1 parent 91ae830 commit 536af0a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Valuations/Valuations.m2
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ internalValuation (Function, Thing, Thing) := (v, S, T) -> (
}
)

-- Concerns with subrings and local rings, will need testing.
Valuation Thing := (v,t) -> (
if (v#"domain" === null) or (ring t) === v#"domain" then
-- Concerns with comparing things like ZZ and QQ
-- Concerns with subrings and local rings, will need testing.
v#"function" t
v#"function" t
else if (isMember(ring t, v#"domain".baseRings)) then
v#"function" promote(t, v#"domain")
)

--------------------------------------------------------------------------------
Expand Down

0 comments on commit 536af0a

Please sign in to comment.