Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Type} (R:…
Jump to turn (7)
- 1Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Typ
- 2Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Typ
- 3Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Typ
- 4complete it
- 5Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Typ
- 6prob 6
- 7Fixpoint sumnquartic (n : nat) : nat := match n with O => 0 | S p => nnnn + sumn
- User
Definition relation (X Y : Type) := X -> Y -> Prop. Definition reflexive {X: Type} (R: relation X X) := forall a : X, R a a. Definition transitive {X: Type} (R: relation X X) := forall a b c : X, (R a b) -> (R b c) -> (R a c). Definition symmetric {X: Type} (R: relation X X) := forall a b : X, (R a b) -> (R b a). Definition antisymmetric {X: Type} (R: relation X X) := forall a b : X, (R a b) -> (R b a) -> a = b. Definition equivalence {X:Type} (R: relation X X) := (reflexive R) /\ (symmetric R) /\ (transitive R).
Open Scope Z_scope. Require Import ZArith. Require Import Znumtheory.
Lemma prob5 : forall a b c : Z, (a | b) -> (a | c) -> (a | b + c). Proof. intros a b c H1 H2. unfold Z.divide in *. destruct H1 as [k1 Hk1]. destruct H2 as [k2 Hk2]. exists (k1 + k2). rewrite Z.mul_add_distr_r. rewrite Hk1. rewrite Hk2. ring. Abort.
Lemma prob6 : forall a b c d : Z, (a | b * c) -> Zis_gcd a b d -> (a | c * d). Proof. intros a b c d H1 H2. unfold Z.divide in *. destruct H1 as [k1 Hk1]. destruct H2 as [k2 Hk2]. exists (k1 * d). rewrite Z.mul_comm. rewrite <- Z.mul_assoc.
- Assistant