Last active
June 16, 2020 02:54
-
-
Save adamtopaz/7e573ec60777001ace5a3479608f992e to your computer and use it in GitHub Desktop.
A DVR is a valuation ring which is a PID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ring_theory.principal_ideal_domain | |
class DVR (A : Type*) extends principal_ideal_domain A := | |
(val_cond : ∀ x y : A, ∃ z : A, x * z = y ∨ y * z = x) -- i.e. a valuation ring | |
(nonfield : ∃ u : A, ∀ v : A, u * v ≠ 1) -- or a better formulation | |
open DVR | |
instance local_ring_of_dvr (A : Type*) [DVR A] : local_ring A := | |
begin | |
split, | |
intro a, | |
cases val_cond a (1-a) with z hz, | |
cases hz, | |
{ | |
left, | |
refine ⟨⟨a,1+z,_,_⟩,rfl⟩, | |
{ | |
rw [mul_add,hz], | |
ring, | |
}, | |
{ | |
rw [mul_comm,mul_add,hz], | |
ring, | |
} | |
}, | |
{ | |
right, | |
refine ⟨⟨1-a,1+z,_,_⟩,rfl⟩, | |
{ | |
rw [mul_add, hz], | |
ring, | |
}, | |
{ | |
rw [mul_comm,mul_add,hz], | |
ring, | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment