Variables a b : nat. Let pa : a = a. Proof. reflexivity. Qed. Unset Default Proof Using. Set Suggest Proof Using. Lemma test_let : a = a. Proof using a. exact pa. Qed.
Let ppa : pa = pa. Proof. reflexivity. Qed.
Lemma test_let2 : pa = pa. Proof using Type. exact ppa. Qed.
EndLet.
Check (test_let 3).
(* Disabled Section Clear.
Variable a: nat. Hypotheses H : a = 4.
Set Proof Using Clear Unused.
Lemma test_clear : a = a. Proof using a. Fail rewrite H. trivial. Qed.
End Clear.
*)
Module InteractiveUsing.
Section S.
Variable m : nat. Variable e : m = m.
#[using="e"] Definition a := 0.
#[using="e"] Definition a' : nat. exact 0. Defined.
#[using="e"] Fixpoint f (n:nat) : nat := match n with 0 => 0 | S n => f n end.
#[using="e"] Fixpoint f' (n:nat) : nat. exact (match n with 0 => 0 | S n => f n end). Defined.
#[using="Type"] Fixpoint f1 (n:nat) : nat := match n with 0 => 0 | S n => match f2 n with eq_refl => n endend with f2 (n:nat) : m = m := match n with 0 => eq_refl | S n => match f1 n with 0 => eq_refl | S _ => eq_refl endend.
#[using="Type"] Fixpoint f1' (n:nat) : nat with f2' (n:nat) : m = m. exact (match n with 0 => 0 | S n => match f2' n with eq_refl => n endend). exact (match n with 0 => eq_refl | S n => match f1' n with 0 => eq_refl | S _ => eq_refl endend). Defined.
CoInductive Stream : Set := Cons : Stream -> Stream.
#[using="e"] Lemma g1 (n:nat) : nat with g2 (n:nat) : m = m. exact (match n with 0 => 0 | S n => match g2 n with eq_refl => n endend). exact (match n with 0 => eq_refl | S n => match g1 n with 0 => eq_refl | S _ => eq_refl endend). Defined.
#[using="Type"] Lemma g1' (n:nat) : nat with g2' (n:nat) : m = m. exact (match n with 0 => 0 | S n => match g2' n with eq_refl => n endend). exact (match n with 0 => eq_refl | S n => match g1' n with 0 => eq_refl | S _ => eq_refl endend). Defined.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.