Files
agdaproofs/Rings/Ideals/Principal/Definition.agda
2020-01-05 15:06:35 +00:00

19 lines
624 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{-# OPTIONS --safe --warning=error --without-K #-}
open import Setoids.Setoids
open import Rings.Definition
open import Agda.Primitive using (Level; lzero; lsuc; _⊔_)
module Rings.Ideals.Principal.Definition {a b : _} {A : Set a} {S : Setoid {a} {b} A} {_+_ _*_ : A A A} (R : Ring S _+_ _*_) where
open import Rings.Ideals.Definition R
open import Rings.Divisible.Definition R
open Setoid S
record PrincipalIdeal {c : _} {pred : A Set c} (ideal : Ideal pred) : Set (a b c) where
field
generator : A
genIsInIdeal : pred generator
genGenerates : {x : A} pred x generator x