Section gram5.
Variable X : Ensf.
Variable V1 R1 : Ensf.
Variable S1 : Elt.
Variable V2 R2 : Ensf.
Variable S2 : Elt.
Let S' := zero.
Let G1 := imageGram (injproducg V1) X V1 R1 S1.
Let G2 := imageGram (injproducd V2) X V2 R2 S2.
Let X1' := fst G1.
Let GG1 := snd G1.
Let V1' := fst GG1.
Let GGG1 := snd GG1.
Let R1' := fst GGG1.
Let S1' := snd GGG1.
Let X2' := fst G2.
Let GG2 := snd G2.
Let V2' := fst GG2.
Let GGG2 := snd GG2.
Let R2' := fst GGG2.
Let S2' := snd GGG2.
Let Gim := Gunion_disj_p V1' R1' S1' V2' R2' S2' S'.
Let Vu := fst Gim.
Let C' := snd Gim.
Let Ru := fst C'.
Let Su := snd C'.
Hypothesis Grammaire1 : isGram X V1 R1 S1.
Hypothesis Grammaire2 : isGram X V2 R2 S2.
Hint Resolve Grammaire1.
Hint Resolve Grammaire2.
apply isGram1 with V1 R1 S1.
auto.
Qed.
Hint Resolve Mots_X.
apply isGram2 with R1 S1.
auto.
Qed.
Hint Resolve int_X_V1_empty.
apply isGram2 with R2 S2.
auto.
Qed.
Hint Resolve int_X_V2_empty.
Definition Gunion_disj := Gim.
Let Vim := fst Gunion_disj.
Let GGim := snd Gunion_disj.
Let Rim := fst GGim.
Let Sim := snd GGim.
unfold Id, injproducg in |- *.
simpl in |- *.
intros x dans_x_X.
apply extension_out.
apply inter_dans with X; auto.
Qed.
Hint Resolve Id_injproducg1.
unfold Id, injproducd in |- *.
simpl in |- *.
intros x dans_x_X.
apply extension_out.
apply inter_dans with X; auto.
Qed.
Hint Resolve Id_injproducd2.
red in |- *.
intro dans_S_X.
elimtype (exists w : Word, word w = S').
intro x.
change (word x <> natural 0) in |- *.
discriminate.
apply Mots_X; assumption.
Qed.
Hint Resolve N_dans_S_X.
intros x dans_x_V1.
unfold injproducg, extension in |- *.
elim (extension_spec V1 injgauche x).
intros x0 temp; elim temp; clear temp; intro temp; elim temp; clear temp.
auto.
intros.
absurd (dans x V1); assumption.
Qed.
Hint Resolve injproducg_V1.

Lemma map_injproducg_V1 : map (injproducg V1) V1 = map injgauche V1 :>Ensf.