TP-modelisation/BE2020/coq_exercice_1.v

42 lines
572 B
Coq
Raw Normal View History

2023-06-10 18:56:24 +00:00
Require Import Naturelle.
Section Session1_2020_Logique_Exercice_1.
Variable A B C : Prop.
Theorem Exercice_1_Naturelle : ((A -> C) \/ (B -> C)) -> ((A /\ B) -> C).
I_imp H1.
I_imp H2.
E_imp A.
E_ou (A -> C) (B -> C).
Hyp H1.
trivial.
I_imp H3.
I_imp H4.
E_imp B.
Hyp H3.
E_et_d A.
Hyp H2.
E_et_g B.
Hyp H2.
Qed.
Theorem Exercice_1_Coq : ((A -> C) \/ (B -> C)) -> ((A /\ B) -> C).
intros.
destruct H.
destruct H0.
cut A.
exact H.
exact H0.
cut B.
exact H.
cut (A /\ B).
intro H2.
elim H2.
intros HA HB.
exact HB.
exact H0.
Qed.
End Session1_2020_Logique_Exercice_1.