Skip to content

Commit

Permalink
Clean up LocalFieldValuationRing a bit (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschmitt authored Jun 12, 2024
1 parent a12d236 commit 1c99589
Show file tree
Hide file tree
Showing 6 changed files with 313 additions and 118 deletions.
2 changes: 1 addition & 1 deletion src/LocalField/Elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function zero(K::LocalField; precision=precision(K))
return setprecision(K(a), precision)
end

(K::LocalField)() = zero(K)
(K::LocalField)(; precision=precision(K)) = zero(K, precision = precision)

function one(K::LocalField; precision=precision(K))
a = one(parent(defining_polynomial(K)))
Expand Down
11 changes: 7 additions & 4 deletions src/LocalField/LocalField.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
################################################################################

function show(io::IO, a::LocalField{S, EisensteinLocalField}) where S
print(io, "Eisenstein extension with defining polynomial ", defining_polynomial(a))
print(io, " over ", base_field(a))
io = pretty(io)
print(io, LowercaseOff(), "Eisenstein extension with defining polynomial ", defining_polynomial(a))
print(io, " over ", Lowercase(), base_field(a))
end

function show(io::IO, a::LocalField{S, UnramifiedLocalField}) where S
io = pretty(io)
print(io, "Unramified extension with defining polynomial ", defining_polynomial(a))
print(io, " over ", base_field(a))
print(io, " over ", Lowercase(), base_field(a))
end

function show(io::IO, a::LocalField{S, GenericLocalField}) where S
io = pretty(io)
print(io, "Extension with defining polynomial ", defining_polynomial(a))
print(io, " over ", base_field(a))
print(io, " over ", Lowercase(), base_field(a))
end

################################################################################
Expand Down
Loading

0 comments on commit 1c99589

Please sign in to comment.