proposition: Theorem apartdectoisaintdomfps ( R : aintdom ) ( is : isacommringapartdec R ) : aintdom.
proof: Proof. revert is. split with ( acommringfps R ). split. - intros P s. apply s. split with 0%nat. change ( @ringunel1 ( fpscommring R ) 0%nat ) with ( @ringunel1 R ). change ( @ringunel2 R # ( @ringunel1 R ) ). apply R. - intros a b p q. use (hinhuniv _ p). intro n. destruct n as [ n n0 ]. apply ( apartdecintdom0 R is n); assumption. Defined.
imports: UniMath.PAdics.lemmas UniMath.Algebra.RigsAndRings UniMath.NumberSystems.Integers