Skip to content

Commit

Permalink
fix(ring_theory/adjoin_root): move adjoin_root out of adjoin_root nam…
Browse files Browse the repository at this point in the history
…espace
  • Loading branch information
ChrisHughes24 committed Apr 23, 2019
1 parent 45456cf commit 826b973
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ring_theory/adjoin_root.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ universes u v w

variables {α : Type u} {β : Type v} {γ : Type w}

namespace adjoin_root
open polynomial ideal

def adjoin_root [comm_ring α] [decidable_eq α] (f : polynomial α) : Type u :=
ideal.quotient (span {f} : ideal (polynomial α))

namespace adjoin_root

section comm_ring
variables [comm_ring α] [decidable_eq α] (f : polynomial α)

def adjoin_root (f : polynomial α) : Type u :=
ideal.quotient (span {f} : ideal (polynomial α))

instance : comm_ring (adjoin_root f) := ideal.quotient.comm_ring _

noncomputable instance : decidable_eq (adjoin_root f) := classical.dec_eq _
Expand Down

0 comments on commit 826b973

Please sign in to comment.