Goalexists n, n = 0. Proof. splitwith (x := 0). reflexivity. Qed.
Goalexists n, n = 0. Proof. splitwith 0. split. Qed.
Goalexists n, n = 0. Proof. let myvar := Std.NamedHyp @x in splitwith ($myvar := 0). split. Qed.
Goal (forall n : nat, n = 0 -> False) -> True. Proof. intros H.
eelim &H. split. Qed.
Goal (forall n : nat, n = 0 -> False) -> True. Proof. intros H. elim &H with 0. split. Qed.
Goalforall (P : nat -> Prop), (forall n m, n = m -> P n) -> P 0. Proof. intros P H.
Fail apply &H. apply &H with (m := 0). split. Qed.
Goalforall (P : nat -> Prop), (forall n m, n = m -> P n) -> (0 = 1) -> P 0. Proof. intros P H e. apply &H with (m := 1) in e. exact e. Qed.
Goalforall (P : nat -> Prop), (forall n m, n = m -> P n) -> P 0. Proof. intros P H.
eapply &H. split. Qed.
Goalexists n, n = 0. Proof.
Fail constructor 1.
constructor 1 with (x := 0). split. Qed.
Goalexists n, n = 0. Proof.
econstructor 1. split. Qed.
Goalforall n, 0 + n = n. Proof. intros n. induction &n as [|n] using nat_rect; split. Qed.
Goalforall n, 0 + n = n. Proof. intros n. let n := @X in let q := Std.NamedHyp @P in induction &n as [|$n] using nat_rect with ($q := fun m => 0 + m = m); split. Qed.
Goalforall n, 0 + n = n. Proof. intros n. destruct &n as [|n] using nat_rect; split. Qed.
Goalforall n, 0 + n = n. Proof. intros n. let n := @X in let q := Std.NamedHyp @P in destruct &n as [|$n] using nat_rect with ($q := fun m => 0 + m = m); split. Qed.
Goalforall n m, n = 0 -> n + m = m. Proof. intros n m Hn. rewrite &Hn; split. Qed.
Goalforall n m p, n = m -> p = m -> 0 = n -> p = 0. Proof. intros n m p He He' Hn. rewrite &He, <- &He' in Hn. rewrite &Hn. split. Qed.
Goalforall n m, (m = n -> n = m) -> m = n -> n = 0 -> m = 0. Proof. intros n m He He' He''. rewrite <- &He by assumption.
Control.refine (fun () => &He''). Qed.
Goalforall n (r := if true then n else 0), r = n. Proof. intros n r.
hnf in r. split. Qed.
Goal 1 = 0 -> 0 = 0. Proof. intros H. pattern 0 at 1. let occ := 2 in pattern 1 at 1, 0 at $occ in H. reflexivity. Qed.
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.