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

Polynomials over commutative rings added #714

Merged
merged 7 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Cubical/Algebra/CommRing/Instances/Polynomials.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{-# OPTIONS --safe #-}

module Cubical.Algebra.CommRing.Instances.Polynomials where

open import Cubical.Foundations.Prelude
open import Cubical.Algebra.CommRing
open import Cubical.Algebra.Polynomials

private
variable
ℓ : Level


ℙ : (R : CommRing ℓ) → CommRing ℓ
mortberg marked this conversation as resolved.
Show resolved Hide resolved
ℙ R = (PolyMod.Poly R) , str
where
open CommRingStr (snd R)
str : CommRingStr (PolyMod.Poly R)
CommRingStr.0r str = PolyMod.0P R
mortberg marked this conversation as resolved.
Show resolved Hide resolved
CommRingStr.1r str = PolyMod.1P R
CommRingStr._+_ str = PolyMod._Poly+_ R
CommRingStr._·_ str = PolyMod._Poly*_ R
CommRingStr.- str = PolyMod.Poly- R
CommRingStr.isCommRing str = makeIsCommRing (PolyMod.PolyIsSet R)
(PolyMod.Poly+Assoc R)
(PolyMod.Poly+Rid R)
(PolyMod.Poly+Inverses R)
(PolyMod.Poly+Comm R)
(PolyMod.Poly*Associative R)
(PolyMod.Poly*Rid R)
(PolyMod.Poly*LDistrPoly+ R)
(PolyMod.Poly*Commutative R)
Loading