Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

experimentally: allow small hight lifts #1506

Merged
merged 10 commits into from
May 20, 2024
Merged

experimentally: allow small hight lifts #1506

merged 10 commits into from
May 20, 2024

Conversation

fieker
Copy link
Collaborator

@fieker fieker commented May 13, 2024

julia> k, a = wildanger_field(3, 13)
(Number field of degree 3 over QQ, _$)

julia> c, mc = Hecke.unramified_completion(k, prime_ideals_over(maximal_order(k), 17)[1]) (Unramified extension of 17-adic numbers of degree 1, Map: k -> c)

julia> preimage(mc, mc(a))
2639044339939425523644123345123996041787685738888204449072451948418018872324117

julia> preimage(mc, mc(a); small_lift = true, integral = true) _$

julia> preimage(mc, mc(a^3//5-2); small_lift = true) 13//5*$^2 - 13//5*$ + 3//5

(and the same for plain completion)

needs tests and polish, but Simon wanted to play

julia> k, a = wildanger_field(3, 13)
(Number field of degree 3 over QQ, _$)

julia> c, mc = Hecke.unramified_completion(k, prime_ideals_over(maximal_order(k), 17)[1])
(Unramified extension of 17-adic numbers of degree 1, Map: k -> c)

julia> preimage(mc, mc(a))
2639044339939425523644123345123996041787685738888204449072451948418018872324117

julia> preimage(mc, mc(a); small_lift = true, integral = true)
_$

julia> preimage(mc, mc(a^3//5-2); small_lift = true)
13//5*_$^2 - 13//5*_$ + 3//5

(and the same for plain completion)

needs tests and polish, but Simon wanted to play
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 97.14286% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 75.36%. Comparing base (f9a2779) to head (86e6b6b).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1506      +/-   ##
==========================================
- Coverage   75.37%   75.36%   -0.02%     
==========================================
  Files         354      354              
  Lines      112723   112811      +88     
==========================================
+ Hits        84966    85021      +55     
- Misses      27757    27790      +33     
Files Coverage Δ
src/LocalField/Types.jl 100.00% <ø> (ø)
src/LocalField/Completions.jl 96.56% <97.14%> (+0.27%) ⬆️

... and 33 files with indirect coverage changes

@simonbrandhorst
Copy link
Collaborator

simonbrandhorst commented May 13, 2024

Thank you! (Edit: The example works now, it seems that revise did not update the type definition)

@thofma
Copy link
Owner

thofma commented May 16, 2024

Can someone supply an example? Then we can add a test and get this in.

@simonbrandhorst
Copy link
Collaborator

This seems to work for unramified extensions, but for ramified ones not.
And there is another bug for setprecision! documented as a broken test @joschmitt

@simonbrandhorst simonbrandhorst enabled auto-merge (squash) May 17, 2024 11:36
@simonbrandhorst simonbrandhorst merged commit 5e6c8c2 into master May 20, 2024
19 checks passed
@simonbrandhorst simonbrandhorst deleted the Simon branch May 20, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants