import Mathlib.RingTheory.GradedAlgebra.Basic /-! # Zero Units -/ namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Graded.ZeroUnits.BundleCycles noncomputable section /-! A unit of degree zero is already a unit in the actual degree-zero ring. -/ variable {A ฯƒ : Type*} [CommRing A] [SetLike ฯƒ A] [AddSubgroupClass ฯƒ A] (๐’œ : โ„• โ†’ ฯƒ) [GradedRing ๐’œ] theorem gradedZero_isUnit (a : ๐’œ 0) (ha : IsUnit a.val) : IsUnit a := by obtain โŸจu, huโŸฉ := ha have hmul : a.val * (โ†‘uโปยน : A) = 1 := by rw [โ† hu]; exact u.val_inv let b : ๐’œ 0 := DirectSum.decompose ๐’œ (โ†‘uโปยน : A) 0 have hproj := congrArg (fun z : A => ((DirectSum.decompose ๐’œ z 0).val : A)) hmul have he : a.val * b.val = 1 := by rw [DirectSum.coe_decompose_mul_of_left_mem_zero ๐’œ a.property, DirectSum.decompose_of_mem_same ๐’œ (SetLike.one_mem_graded ๐’œ)] at hproj exact hproj exact IsUnit.of_mul_eq_one b (Subtype.ext he) end end OAI.AlgebraicGeometry.Divisors.LineBundles.Graded.ZeroUnits.BundleCycles