Files
agdaproofs/Rings/Ideals/Principal/Definition.agda
2019-12-08 11:18:39 +00:00

23 lines
739 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 LogicalFormulae
open import Setoids.Orders
open import Setoids.Setoids
open import Functions
open import Sets.EquivalenceRelations
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