Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  Join_Theory.thy   Sprache: Isabelle

 

(*  Title:      HOL/ex/Join_Theory.thy
    Author:     Makarius
*)


section ‹Join theory content from independent (parallel) specifications›

theory Join_Theory
  imports Main
begin

subsection ‹Example template›

definition "test = True"
lemma test: "test" by (simp add: test_def)


subsection ‹Specification as Isabelle/ML function›

ML ‹
 fun spec i lthy =
 let
 val b = Binding.name ("test" ^ string_of_int i)
 val ((t, (_, def)), lthy') = lthy
 |> Local_Theory.define ((b, NoSyn), ((Binding.empty, []), term‹True›));
 val th =
 Goal.prove lthy' [] [] (HOLogic.mk_Trueprop t)
 (fn {context = goal_ctxt, ...} => asm_full_simp_tac (goal_ctxt addsimps [def]) 1);
 val (_, lthy'') = lthy' |> Local_Theory.note ((b, []), [th]);
 in lthy'' end;
 
›


subsection ‹Example application›

setup ‹
 fn thy =>
 let val forked_thys = Par_List.map (fn i => Named_Target.theory_map (spec i) thy) (1 upto 10)
 in Context.join_thys forked_thys end
 
›

term test1
thm test1

term test10
thm test10

end

Messung V0.5 in Prozent
C=53 H=100 G=80

¤ Dauer der Verarbeitung: 0.7 Sekunden  (vorverarbeitet am  2026-09-29) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691