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

Quelle  blocking-futures.fake   Sprache: unbekannt

 
Spracherkennung für: .fake vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# Script simulating a dialog between rocqide and coqtop -ideslave
# Run it via fake_ide
#
# Extraction will force the future computation, assert it is blocking
# Example courtesy of Jonathan (jonikelee)
#
ADD { Require Corelib.extraction.Extraction. }
ADD { Require Import ListDef. }
ADD { Fixpoint rev A (l:list A) : list A := match l with nil => nil | x :: l' => rev A l' ++ cons x nil end. }
ADD { Definition myrev{A}(l : list A) : {rl : list A | rl = rev A l}. }
ADD { Proof. }
ADD {   induction l. }
ADD {    eexists; reflexivity. }
ADD {    cbn; destruct IHl as [rl' H]; rewrite <-H; eexists; reflexivity. }
ADD { Qed. }
ADD { Extraction myrev. }
GOALS

[ Dauer der Verarbeitung: 0.37 Sekunden  ]