Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/test-suite/success/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 789 B image not shown  

Quellcode-Bibliothek match_case_pattern_variables.v   Sprache: Coq

 
(** Check that bound variables in case patterns are handled correctly. *)

Goal forall (ch : unit) (t : list unit) (s : list unit),
  match s with
  | nil => False
  | cons a l => ch = a /\ l = t
  end.
Proof.
intros.
match goal with
| |- match ?e with
    | nil => ?N
    | cons a b => ?P
    end =>
     let f :=
      constr:((fun (e' : list unit) => match e' with
                          | nil => N
                          | cons a b => P
                          end))
     in
     change (f e)
end.
Abort.

Goal forall (ch : unit) (n : nat) (s : prod unit nat),
  let (a, l) := s in ch = a /\ l = n.
Proof.
intros.
match goal with
| [ |- let (a, b) := ?e in ?P ] =>
  let f := constr:((fun (e' : prod unit nat) => match e' with pair a b => P end)) in
  change (f e)
end.
Abort.

98%


¤ 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.0.10Bemerkung:  (vorverarbeitet)  ¤

*Bot Zugriff






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.