text
stringlengths
157
7.64M
meta
dict
(* Title: HOL/Quotient_Examples/Quotient_Int.thy Author: Cezary Kaliszyk Author: Christian Urban Integers based on Quotients, based on an older version by Larry Paulson. *) theory Quotient_Int imports "HOL-Library.Quotient_Product" begin fun intrel :: "(nat × nat) ⇒ (nat × nat) ⇒ bool" (infix...
{ "path": "Isabelle2024/src/HOL/Quotient_Examples/Quotient_Int.thy", "repo": "Isabelle2024", "sha": "724945a60cf2db7973eb7a575c272a2bceac715b5d1e648fac6158f5c87c087e" }
(* Title: QuasiBorel.thy Author: Michikazu Hirata, Yasuhiko Minamide Tokyo Institute of Technology *) section ‹Quasi-Borel Spaces› theory QuasiBorel imports "HOL-Probability.Probability" begin subsection ‹ Definitions › subsubsection ‹ Quasi-Borel Spaces› definition qbs_closed1 :: "(real ⇒ 'a) set ⇒ bool" ...
{ "path": "afp-2025-02-12/thys/S_Finite_Measure_Monad/QuasiBorel.thy", "repo": "afp-2025-02-12", "sha": "6ada33666b2df996beaf2a35918f0bc851c99e24434b2d0c24244c0237eea6db" }
subsection ‹Relation between the Hoare logics in big-O style› theory DiscussionO imports SepLogK_Hoare QuantK_Hoare Nielson_Hoare begin (* here we compare quantitative Hoare logic with constant with Nielson's Hoare logic *) subsubsection ‹Relation Nielson to quantHoare› definition emN :: "qassn ⇒ Nielson_Hoar...
{ "path": "afp-2025-02-12/thys/Hoare_Time/DiscussionO.thy", "repo": "afp-2025-02-12", "sha": "9c2c8744d239fd87c213be1c40b54943da105e7647466342211048606b4dcece" }
section ‹Internally Vertex-Disjoint Paths› theory DisjointPaths imports Separations begin text ‹ Menger's Theorem talks about internally vertex-disjoint @{term v0}-@{term v1}-paths. Let us define this concept. › locale DisjointPaths = v0_v1_Digraph + fixes paths :: "'a Walk set" assumes paths: "⋀xs. xs ...
{ "path": "afp-2025-02-12/thys/Menger/DisjointPaths.thy", "repo": "afp-2025-02-12", "sha": "f04bc25c0af48809dbc438106a2a6840365d44875cd593fa40a3d0354b262724" }
section ‹Follow map› theory Follow_Map imports First_Map begin type_synonym ('n, 't) follow_map = "('n, 't lookahead list) fmap" fun updateFo :: "'n set ⇒ ('n, 't) first_map ⇒ 'n ⇒ ('n, 't) rhs ⇒ ('n, 't) follow_map ⇒ ('n, 't) follow_map" where "updateFo nu fi lx [] fo = fo" | "updateFo nu fi lx ((T _) # gamma...
{ "path": "afp-2025-02-12/thys/LL1_Parser/Follow_Map.thy", "repo": "afp-2025-02-12", "sha": "faa07bdd8c882ffaa746292c73c24a2bac8bc6a249bce78138d4afcf2be8db08" }
theory Higher_Projective_Space_Axioms imports Main begin (* Author: Anthony Bordg, University of Cambridge, apdb3@cam.ac.uk .*) text ‹ Contents: ▪ We introduce the types of 'point and 'line and an incidence relation between them. ▪ A set of axioms for higher projective spaces, i.e. we allow models of dimension ‹>› ...
{ "path": "afp-2025-02-12/thys/Projective_Geometry/Higher_Projective_Space_Axioms.thy", "repo": "afp-2025-02-12", "sha": "c0bced8a43c8e4ff8b0801d0c92a81f41fba561528eafc117a614eec041955ac" }
(* Title: HOL/Library/Function_Algebras.thy Author: Jeremy Avigad and Kevin Donnelly; Florian Haftmann, TUM *) section ‹Pointwise instantiation of functions to algebra type classes› theory Function_Algebras imports Main begin text ‹Pointwise operations› instantiation "fun" :: (type, plus) plus begin ...
{ "path": "Isabelle2024/src/HOL/Library/Function_Algebras.thy", "repo": "Isabelle2024", "sha": "7a96287649c89cd00cc82d5a1b620bcf95a5b13408a43276208bdf9025189eb4" }
(* Title: HOL/UNITY/Constrains.thy Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 1998 University of Cambridge Weak safety relations: restricted to the set of reachable states. *) section‹Weak Safety› theory Constrains imports UNITY begin (*Initial states and p...
{ "path": "Isabelle2024/src/HOL/UNITY/Constrains.thy", "repo": "Isabelle2024", "sha": "623a4c4c959352a7ece78e1789b0553ca4b901e05bdfa2ae0338f4767c7c27f0" }
theory Laurent_Convergence imports "HOL-Computational_Algebra.Formal_Laurent_Series" "HOL-Library.Landau_Symbols" Residue_Theorem begin instance fps :: (semiring_char_0) semiring_char_0 proof show "inj (of_nat :: nat ⇒ 'a fps)" proof fix m n :: nat assume "of_nat m = (of_nat n :: 'a fps)" ...
{ "path": "Isabelle2024/src/HOL/Complex_Analysis/Laurent_Convergence.thy", "repo": "Isabelle2024", "sha": "067c6fe0d54891d8fcecd25ffc01fbf7db07bf964e1197b57ca0c104876646a1" }
(* Author: Mnacho Echenim, Université Grenoble Alpes *) theory Linear_Algebra_Complements imports "Isabelle_Marries_Dirac.Tensor" "Isabelle_Marries_Dirac.More_Tensor" "QHLProver.Gates" "HOL-Types_To_Sets.Group_On_With" "HOL-Probability.Probability" begin hide_const(open) S section ‹Preliminaries› ...
{ "path": "afp-2025-02-12/thys/Projective_Measurements/Linear_Algebra_Complements.thy", "repo": "afp-2025-02-12", "sha": "b0187b543ea40264bae66965243b4b655d38b8e49c1ca89a1004667740c3effb" }
(* Title: Isabelle Collections Library Author: Peter Lammich <peter dot lammich at uni-muenster.de> Maintainer: Peter Lammich <peter dot lammich at uni-muenster.de> *) (* Changes since submission on 2009-11-26: 2009-12-10: OrderedSet, implemented iterators, min, max, to_sorted_list *) sectio...
{ "path": "afp-2025-02-12/thys/Collections/ICF/impl/RBTSetImpl.thy", "repo": "afp-2025-02-12", "sha": "b93aab6a00fcd721ad52b13e2252273277d6a371e4cf4184d76a7ab76dba858b" }
(* Title: HOL/Computational_Algebra/Group_Closure.thy Author: Johannes Hoelzl, TU Muenchen Author: Florian Haftmann, TU Muenchen *) theory Group_Closure imports Main begin context ab_group_add begin inductive_set group_closure :: "'a set ⇒ 'a set" for S where base: "s ∈ insert 0 S ⟹ s ∈ gro...
{ "path": "Isabelle2024/src/HOL/Computational_Algebra/Group_Closure.thy", "repo": "Isabelle2024", "sha": "517667880270759fa9233d4459d9fd75c93ec49e5866e49777911f3e074b8d0e" }
theory Access_Matrix_Embeddings imports Semantics_Embeddings "Primitive_Matchers/No_Spoof" Simple_Firewall.Service_Matrix begin section‹Applying the Access Matrix to the Bigstep Semantics› text‹ If the real iptables firewall (@{const iptables_bigstep}) accepts a packet, we have a corresponding edge ...
{ "path": "afp-2025-02-12/thys/Iptables_Semantics/Access_Matrix_Embeddings.thy", "repo": "afp-2025-02-12", "sha": "7acd0b1ee3ec739bd3b6dfa2f41f2459990b2ee92abe46db09b72f7e10486aa5" }
(* Title: Quantales Author: Georg Struth Maintainer: Georg Struth <g.struth@sheffield.ac.uk> Contributions by Brijesh Dongol, Victor Gomes, Ian Hayes *) section ‹Quantales› theory Quantales imports "Order_Lattice_Props.Closure_Operators" Kleene_Algebra.Dioid begin subsection ‹Families of Proto-Qu...
{ "path": "afp-2025-02-12/thys/Quantales/Quantales.thy", "repo": "afp-2025-02-12", "sha": "0f27c6843c3b0b99948596121b4d7a5323c0aa20b32f824cc02f56592aead627" }
(* Mike Stannett Feb 2023 *) section ‹ Affine › text ‹This theory defines affine transformations and established their key properties.› theory Affine imports Translations LinearMaps begin class Affine = Translations + LinearMaps begin abbreviation affine :: "('a Point ⇒ 'a Point) ⇒ bool" where "affin...
{ "path": "afp-2025-02-12/thys/No_FTL_observers_Gen_Rel/Affine.thy", "repo": "afp-2025-02-12", "sha": "fd8410c0fdfb3f02f621ffc9ba45bb59dd1b0eaf0b4e5b7d6739b0eb77f05bf1" }
theory Confluent_Quotient imports Confluence begin text ‹Functors with finite setters preserve wide intersection for any equivalence relation that respects the mapper.› lemma Inter_finite_subset: assumes "∀A ∈ 𝒜. finite A" shows "∃ℬ⊆𝒜. finite ℬ ∧ (⋂ℬ) = (⋂𝒜)" proof (cases "𝒜 = {}") (*goals: 1. ‹(𝒜::'...
{ "path": "Isabelle2024/src/HOL/Library/Confluent_Quotient.thy", "repo": "Isabelle2024", "sha": "c612c0040f2d6efb760ee028f8bd32fc8574bab46fc76fe4461e8cced0f4dd12" }
section Substitution text ‹This theory introduces the substitution operation using a locale, and provides two models.› theory Substitution imports Renaming begin subsection Definition locale substitution = fixes subst :: "('r,'l,'v) expr ⇒ 'v ⇒ ('r,'l,'v) expr ⇒ ('r,'l,'v) expr" assumes renaming_distr_su...
{ "path": "afp-2025-02-12/thys/Concurrent_Revisions/Substitution.thy", "repo": "afp-2025-02-12", "sha": "a4a6f1b8cdef2080a04e136d45c21bc8b08e36c89d76d288f0bbf7ec74cda7a6" }
(* Title: JinjaThreads/Framework/FWProgressAux.thy Author: Andreas Lochbihler *) section ‹Auxiliary definitions for the progress theorem for the multithreaded semantics› theory FWProgressAux imports FWSemantics begin abbreviation collect_waits :: "('l,'t,'x,'m,'w,'o) thread_action ⇒ ('l + 't + 't) se...
{ "path": "afp-2025-02-12/thys/JinjaThreads/Framework/FWProgressAux.thy", "repo": "afp-2025-02-12", "sha": "659c3936b966e70db033f09ec0e1b480be5cdb8ac85558ecf25b36f67c12896f" }
section ‹Nondeterministic Büchi Automata Combinations› theory NBA_Combine imports NBA NGBA begin global_interpretation degeneralization: automaton_degeneralization_run ngba ngba.alphabet ngba.initial ngba.transition ngba.accepting "λ P w r p. gen infs P (p ## r)" nba nba.alphabet nba.initial nba.transition...
{ "path": "afp-2025-02-12/thys/Transition_Systems_and_Automata/Automata/NBA/NBA_Combine.thy", "repo": "afp-2025-02-12", "sha": "ce911ea8c833e364f6b05ade9a99820ace5864a87da37e9c1986b4c2c93efbc1" }
(*File: VDM_OBJ.thy*) (*Authors: Lennart Beringer and Martin Hofmann, LMU Munich 2008*) theory VDM_OBJ imports OBJ begin subsection‹Program logic› text‹\label{sec:ObjLogic}Apart from the addition of proof rules for the three new instructions, this section is essentially identical to Section \ref{sec:VDM}.› subsubse...
{ "path": "afp-2025-02-12/thys/SIFPL/VDM_OBJ.thy", "repo": "afp-2025-02-12", "sha": "e7a821d6a618825685ba537d8718e0ed9ff8aec3c76e48f2247b04b27350b82c" }
section ‹Coproducts› theory Coproduct imports Equivalence begin (* We define our own (ETCS) case_bool later, so we need to hide the HOL version. *) hide_const case_bool text ‹The axiomatization below corresponds to Axiom 7 (Coproducts) in Halvorson.› axiomatization coprod :: "cset ⇒ cset ⇒ cset" (infixr "∐" 65) ...
{ "path": "afp-2025-02-12/thys/Category_Set/Coproduct.thy", "repo": "afp-2025-02-12", "sha": "331f3b3dc464ef3c1344919233fb8792a328fe84ed1e8c41806c59dbf4278e74" }
(* Title: JinjaThreads/Common/SemiType.thy Author: Tobias Nipkow, Gerwin Klein, Andreas Lochbihler *) section ‹The Jinja Type System as a Semilattice› theory SemiType imports WellForm "../DFA/Semilattices" begin inductive_set widen1 :: "'a prog ⇒ (ty × ty) set" and widen1_syntax :: "'a prog ⇒ t...
{ "path": "afp-2025-02-12/thys/JinjaThreads/Common/SemiType.thy", "repo": "afp-2025-02-12", "sha": "18f1118a34632fb6ce3f98d382c6e41cd1e74b7cf745a65098b178b87908254d" }
theory SubRel imports Graph begin section ‹Graphs equipped with a subsumption relation› text ‹In this section, we define subsumption relations and the notion of sub\hyp{}paths in rooted graphs equipped with such relations. Sub-paths are defined in the same way than in \verb?Graph.thy?: first we define the consiste...
{ "path": "afp-2025-02-12/thys/InfPathElimination/SubRel.thy", "repo": "afp-2025-02-12", "sha": "6fa6c8b129a8249e719ae9699c37865fa71826d0d787e5809511665097f1ed0b" }
theory LinuxRouter_OpenFlow_Translation imports IP_Addresses.CIDR_Split Automatic_Refinement.Misc (*TODO@Peter: rename and make available at better place :)*) Simple_Firewall.Generic_SimpleFw Semantics_OpenFlow OpenFlow_Matches OpenFlow_Action Routing.Linux_Router "Pure-ex.Guess" begin hide_const Misc.uncurry ...
{ "path": "afp-2025-02-12/thys/LOFT/LinuxRouter_OpenFlow_Translation.thy", "repo": "afp-2025-02-12", "sha": "c552d86c7efe89f18ec5dacf53b786499787e3025f490dc69a7544e91f25f164" }
(* Title: HOL/MicroJava/BV/Kildall.thy Author: Tobias Nipkow, Gerwin Klein Copyright 2000 TUM Kildall's algorithm. *) section ‹Kildall's Algorithm \label{sec:Kildall}› theory Kildall_1 imports SemilatAlg begin primrec merges :: "'s binop ⇒ (nat × 's) list ⇒ 's list ⇒ 's list" where "merges f [...
{ "path": "afp-2025-02-12/thys/Jinja/DFA/Kildall_1.thy", "repo": "afp-2025-02-12", "sha": "cc883177d03e65aa358f1a6250cb89f10ebda2385ef83d10a9d05e6310f0d5f9" }
(* Title: HOL/Auth/Guard/Analz.thy Author: Frederic Blanqui, University of Cambridge Computer Laboratory Copyright 2001 University of Cambridge *) section‹Decomposition of Analz into two parts› theory Analz imports Extensions begin text‹decomposition of \<^term>‹analz› into two parts: \<^...
{ "path": "Isabelle2024/src/HOL/Auth/Guard/Analz.thy", "repo": "Isabelle2024", "sha": "f02e310e8b8e65345e81edc47dd0fdc0fb2d66acb6a11780019c0626d10bed39" }
(* author: R. Thiemann *) section ‹The Sunflower Lemma› text ‹We formalize the proof of the sunflower lemma of Erd\H{o}s and Rado~\<^cite>‹"erdos_rado"›, as it is presented in the textbook~\<^cite>‹‹Chapter~6› in "book"›. We further integrate Exercise 6.2 from the textbook, which provides a lower bound on the exis...
{ "path": "afp-2025-02-12/thys/Sunflowers/Erdos_Rado_Sunflower.thy", "repo": "afp-2025-02-12", "sha": "e5221b961479cc392cd31709db3951eae89edd7953cb78c4e5615ab3acc0d3f9" }
section ‹Secure composition: Encrypt then MAC› theory Secure_Channel imports One_Time_Pad Message_Authentication_Code begin context begin interpretation INSEC: insec_channel . interpretation MAC: macode "rnd η" "mac η" for η . interpretation AUTH: auth_channel . interpretation CIPHER: cipher "key η" "enc η" "...
{ "path": "afp-2025-02-12/thys/Constructive_Cryptography/Examples/Secure_Channel/Secure_Channel.thy", "repo": "afp-2025-02-12", "sha": "4fa815ba29fdd8c2021b3ba5356dc838e406b39821a157bfe3b7b7b44556ee43" }
(* Author: Salomon Sickert License: BSD *) section ‹Mojmir Automata› theory Mojmir imports Main Semi_Mojmir begin subsection ‹Definitions› locale mojmir_def = semi_mojmir_def + fixes ― ‹Final States› F :: "'b set" begin definition token_succeeds :: "nat ⇒ bool" where "token_succeeds ...
{ "path": "afp-2025-02-12/thys/LTL_to_DRA/Mojmir.thy", "repo": "afp-2025-02-12", "sha": "6060d8c5e7634a8418031e13d2935678c3a7959bd71daa652e10efbc9a3cf23f" }
(* Title: JinjaThreads/MM/DRF_J.thy Author: Andreas Lochbihler *) section ‹JMM Instantiation for J› theory DRF_J imports JMM_Common JMM_J "../J/ProgressThreaded" SC_Legal begin primrec ka :: "'addr expr ⇒ 'addr set" and kas :: "'addr expr list ⇒ 'addr set" where "ka (new C) = {}" | "ka (ne...
{ "path": "afp-2025-02-12/thys/JinjaThreads/MM/DRF_J.thy", "repo": "afp-2025-02-12", "sha": "25e30634d98be12927a3a8e2ee875d1390dc9e88eacd7313fbd5d7d85c327848" }
(*<*) ―‹ ******************************************************************** * Project : HOL-CSPM - Architectural operators for HOL-CSP * * Author : Benoît Ballenghien, Safouan Taha, Burkhart Wolff * * This file : Multi-deterministic choice * * Copyright (c) 2023 Université Paris-Saclay...
{ "path": "afp-2025-02-12/thys/HOL-CSPM/MultiDet.thy", "repo": "afp-2025-02-12", "sha": "d22f995c62252dc764839726c4a5c1ffbc97ba87f94f47b4568454b5ce269a84" }
theory FIPS186_4_Curves imports "Efficient_SEC1" begin text ‹In FIPS 186-4, NIST defines several recommended curves for government use. In this theory, we define the NIST recommended curves over prime fields, that is, all the curves that are labelled with "P-" Note that all these curves have cofactor h=1 and coef...
{ "path": "afp-2025-02-12/thys/Crypto_Standards/FIPS186_4_Curves.thy", "repo": "afp-2025-02-12", "sha": "104c916e7ccfbdd42273311461d515afc02e442bc508508c4737a18de30e217b" }
(* Title: Semirings Author: Walter Guttmann Maintainer: Walter Guttmann <walter.guttmann at canterbury.ac.nz> *) section ‹Semirings› text ‹ This theory develops a hierarchy of idempotent semirings. All kinds of semiring considered here are bounded semilattices, but many lack additional properties typic...
{ "path": "afp-2025-02-12/thys/Stone_Relation_Algebras/Semirings.thy", "repo": "afp-2025-02-12", "sha": "0c0580ed614845060fb4c175e74f1c138caeb9abdc271b300b6ea790340c5e22" }
(*********************************************************************************** * Copyright (c) 2016-2018 The University of Sheffield, UK * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
{ "path": "afp-2025-02-12/thys/Core_DOM/common/classes/ObjectClass.thy", "repo": "afp-2025-02-12", "sha": "8f6ca38a8bddb50d8959053a640f5db68038b22944329b7045a1f07b0ad04433" }
(* Title: Minimality.thy Author: Sebastian Ullrich *) section ‹Minimality› text ‹We show that every reducible CFG without trivial \pf s is minimal, recreating the proof in~\<^cite>‹"braun13cc"›. The original proof is inlined as prose text.› theory Minimality imports SSA_CFG Serial_Rel begin context ...
{ "path": "afp-2025-02-12/thys/Formal_SSA/Minimality.thy", "repo": "afp-2025-02-12", "sha": "31d117925994f96122f1f1ced58b3f3dbdccb2317ab6a2041d335e9e1d53745a" }
theory Planar_Subdivision imports Graph_Genus Reachablen Permutations_2 begin section ‹Combinatorial Planarity and Subdivisions› locale subdiv1_contr = subdiv_step + fixes HM assumes H_map: "digraph_map H HM" assumes edge_rev_conv: "edge_rev HM = rev_H" sublocale subdiv1_contr ⊆ H: digraph_map H HM rew...
{ "path": "afp-2025-02-12/thys/Planarity_Certificates/Planarity/Planar_Subdivision.thy", "repo": "afp-2025-02-12", "sha": "782343838efeeef53397712ce5b83e3ae3456aa0b6affe2b07d0d0fc7e836d17" }
(* Title: HOL/Library/Nonpos_Ints.thy Author: Manuel Eberl, TU München *) section ‹Non-negative, non-positive integers and reals› theory Nonpos_Ints imports Complex_Main begin subsection‹Non-positive integers› text ‹ The set of non-positive integers on a ring. (in analogy to the set of non-negative in...
{ "path": "Isabelle2024/src/HOL/Library/Nonpos_Ints.thy", "repo": "Isabelle2024", "sha": "fc875974ccfa1edd9da0fcc1355e3a495f6630997f5c8138e16df34285dafb92" }
section‹Scott’s variant› subsection‹ScottVariantHOML.thy (Figure 12 of \cite{J75})› text‹Verification of Scott’s variant of Gödel’s ontological argument. Actualist quantifiers (avoiding existential import) are used for quantification over entities, otherwise possibilist quantifiers are used.› theory ScottVaria...
{ "path": "afp-2025-02-12/thys/Notes_On_Goedels_Ontological_Argument/ScottVariantHOML.thy", "repo": "afp-2025-02-12", "sha": "3eb5c92cc61ad2c31ddc4f63ef9d73740f85fc626313858a551218c3c2ea0288" }
section ‹Bounding the Size of @{term Y}› theory Bounding_Y imports Red_Steps begin text ‹yet another telescope variant, with weaker promises but a different conclusion; as written it holds even if @{term"n=0"}› lemma prod_lessThan_telescope_mult: fixes f::"nat ⇒ 'a::field" assumes "⋀i. i<n ⟹ f i ≠ 0" shows "...
{ "path": "afp-2025-02-12/thys/Diagonal_Ramsey/Bounding_Y.thy", "repo": "afp-2025-02-12", "sha": "f5191884c6a52c4ad93c0edfecf91449c45800a38893c28ec5b8fff68236771d" }
(* Title: Fast Fourier Transform Author: Clemens Ballarin <ballarin at in.tum.de>, started 12 April 2005 Maintainer: Clemens Ballarin <ballarin at in.tum.de> *) theory FFT imports Complex_Main begin text ‹We formalise a functional implementation of the FFT algorithm over the complex numbers, and i...
{ "path": "afp-2025-02-12/thys/FFT/FFT.thy", "repo": "afp-2025-02-12", "sha": "fe1215231af7306746fd9a15697c541504c4d22ec8583a885e7a606cd60c93dc" }
(* Title: HOL/Algebra/Galois_Connection.thy Author: Alasdair Armstrong and Simon Foster Copyright: Alasdair Armstrong and Simon Foster *) theory Galois_Connection imports Complete_Lattice begin section ‹Galois connections› subsection ‹Definition and basic properties› record ('a, 'b, 'c, 'd) gal...
{ "path": "Isabelle2024/src/HOL/Algebra/Galois_Connection.thy", "repo": "Isabelle2024", "sha": "99ed2c8ab3ffec7417ce48a4839fe5365a81147f2b1dc1db3dcefca8fc3d54b4" }
(*********************************************************************************** * Copyright (c) 2019-2022 Achim D. Brucker * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redi...
{ "path": "afp-2025-02-12/thys/Nano_JSON/Example.thy", "repo": "afp-2025-02-12", "sha": "24a87d24d2d7453822a4af9bbe727373715c91206129997358d43585898b57e4" }
(* * Copyright (c) 2022 Apple Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause *) theory explosion imports "AutoCorres2_Main.AutoCorres_Main" begin install_C_file "explosion.c" text ‹The sequence of unitialised struct variables caused autocorres to explode in performace.› autocorres [] "...
{ "path": "afp-2025-02-12/thys/AutoCorres2/tests/proof-tests/explosion.thy", "repo": "afp-2025-02-12", "sha": "7d7b2121b752d43e964add298b9b59e7a25772633cd4f311359954e54e3fdc46" }
(* Mike Stannett Feb 2023 *) section ‹ Translations › text ‹This theory describes translation maps. › theory Translations imports Functions begin class Translations = Functions begin (* These functions are all single-valued, so we define them as having type ('a Point ⇒ 'a Point). We can use the asFu...
{ "path": "afp-2025-02-12/thys/No_FTL_observers_Gen_Rel/Translations.thy", "repo": "afp-2025-02-12", "sha": "e77407606e02479d8e5fff4b14c026d6c90348e3065c25a12dfa2f1e3dea8998" }
theory Bexp imports Aexp begin section ‹Boolean Expressions› text ‹We proceed as in \verb?Aexp.thy?.› subsection‹Basic definitions› subsubsection ‹The $\mathit{bexp}$ type-synonym› text ‹We represent boolean expressions, their set of variables and the notion of freshness of a variable in the same way than for ari...
{ "path": "afp-2025-02-12/thys/InfPathElimination/Bexp.thy", "repo": "afp-2025-02-12", "sha": "84e320f2b0ff3bfce9800f6f3f0c48d6fd3e58d9e0ca52be7228d504c5ed372d" }
(******************************************************************************* Project: Refining Authenticated Key Agreement with Strong Adversaries Module: sklvl3_asymmetric.thy (Isabelle/HOL 2016-1) ID: $Id: sklvl3_asymmetric.thy 133183 2017-01-31 13:55:43Z csprenge $ Author: Joseph Lallemand, INRI...
{ "path": "afp-2025-02-12/thys/Key_Agreement_Strong_Adversaries/sklvl3_asymmetric.thy", "repo": "afp-2025-02-12", "sha": "8c3fd51adc0b620ea1deaafa604fadc232e827bcf3225656fcc070aa4c31d743" }
(* Title: Jinja/J/SmallProgress.thy Author: Tobias Nipkow Copyright 2003 Technische Universitaet Muenchen *) section ‹Progress of Small Step Semantics› theory Progress imports Equivalence WellTypeRT DefAss "../Common/Conform" begin lemma final_addrE: "⟦ P,E,h ⊢ e : Class C; final e; ⋀a. e ...
{ "path": "afp-2025-02-12/thys/Jinja/J/Progress.thy", "repo": "afp-2025-02-12", "sha": "763e9530c3e0a4dd16ea32528b54e7052253e53a07ddab21979d7d53c3142a98" }
(*<*) theory IVSubst imports Syntax begin (*>*) chapter ‹Immutable Variable Substitution› text ‹Substitution involving immutable variables. We define a class and instances for all of the term forms› section ‹Class› class has_subst_v = fs + fixes subst_v :: "'a::fs ⇒ x ⇒ v ⇒ 'a::fs" ("_[_::=_]⇩v" [1000,50,5...
{ "path": "afp-2025-02-12/thys/MiniSail/IVSubst.thy", "repo": "afp-2025-02-12", "sha": "d8c0cb0bd2b647f2575563f314e8ee4041234a9f8b8135e0366eabd1d4a10cb2" }
(* Title: variants/d_fwdrreqs/Aodv_Data.thy License: BSD 2-Clause. See LICENSE. Author: Timothy Bourke, Inria *) section "Predicates and functions used in the AODV model" theory D_Aodv_Data imports D_Fwdrreqs begin subsection "Sequence Numbers" text ‹Sequence numbers approximate the relative...
{ "path": "afp-2025-02-12/thys/AODV/variants/d_fwdrreqs/D_Aodv_Data.thy", "repo": "afp-2025-02-12", "sha": "4cd0bd4f1775252ecd1644968440bc76d20520ec3c3ab74a42f99dd7a7eca54d" }
(* Copyright 2021 (C) Mihails Milehins *) section‹Initial and terminal objects as limits and colimits› theory CZH_UCAT_Limit_IT imports CZH_UCAT_Limit CZH_Elementary_Categories.CZH_ECAT_Comma begin subsection‹Initial and terminal objects as limits/colimits of an empty diagram› subsubsection‹Definition ...
{ "path": "afp-2025-02-12/thys/CZH_Universal_Constructions/czh_ucategories/CZH_UCAT_Limit_IT.thy", "repo": "afp-2025-02-12", "sha": "3ab73f87b0360396be50d8630c3bb55314962b907de42343f80485fa249f1745" }
(* Author: Salomon Sickert Author: Benedikt Seidl Author: Alexander Schimpf (original entry: CAVA/LTL.thy) Author: Stephan Merz (original entry: Stuttering_Equivalence/PLTL.thy) License: BSD *) section ‹Linear Temporal Logic› theory LTL imports Main "HOL-Library.Omega_Words_Fun" begin ...
{ "path": "afp-2025-02-12/thys/LTL/LTL.thy", "repo": "afp-2025-02-12", "sha": "43f7e16beae168f43354e662bf56c26ca00814faeb6d778ac08ee11042c4f72f" }
theory Post_COMPOSE2 imports "Post_ISSUER" "Post_RECEIVER" "BD_Security_Compositional.Composing_Security" begin subsection ‹Confidentiality for the (binary) issuer-receiver composition› type_synonym ttrans = "(state, act, out) trans" type_synonym value1 = Post_ISSUER.value type_synonym value2 = Post_RECEIVER.v...
{ "path": "afp-2025-02-12/thys/CoSMeDis/Post_Confidentiality/Post_COMPOSE2.thy", "repo": "afp-2025-02-12", "sha": "e840644ea5ca13293720ba7c4bd5189672ea53eb4432e676df56aabdde72c1f6" }
(* Author: Lukas Bulwahn <lukas.bulwahn-at-gmail.com> *) section ‹Injections from A to B up to a Permutation of A› theory Twelvefold_Way_Entry5 imports Equiv_Relations_on_Functions begin subsection ‹Definition of Bijections› definition subset_of :: "'a set ⇒ ('a ⇒ 'b) set ⇒ 'b set" where "subset_of A F = univ...
{ "path": "afp-2025-02-12/thys/Twelvefold_Way/Twelvefold_Way_Entry5.thy", "repo": "afp-2025-02-12", "sha": "cbba1cf7ac9948639e040a1ae68c90e71291076d49f6f712c7b390204ccb4be8" }
theory Key imports "../Fused_Resource" begin section ‹Key specification› locale ideal_key = fixes valid_keys :: "'key set" begin subsection ‹Data-types for Parties, State, Events, Input, and Output› datatype party = Alice | Bob type_synonym s_shell = "party set" datatype 'key' s_kernel = PState_Store | St...
{ "path": "afp-2025-02-12/thys/Constructive_Cryptography_CM/Specifications/Key.thy", "repo": "afp-2025-02-12", "sha": "49321e2c7b0c8ec56b1cc761d02802d392a4bd71af60041136f6baab5a0dfba0" }
(* * Copyright 2016, Data61, CSIRO * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA61_BSD) *) section ‹The COMPLX Syntax› theory Language imports Main begin subsection...
{ "path": "afp-2025-02-12/thys/Complx/Language.thy", "repo": "afp-2025-02-12", "sha": "a19b24d158cca83e921a98f40c557d8c2d70dd500e803e59151f18981b46a915" }
(* The definitions for a challenge suggested by Adam Chlipala *) theory Compile imports "HOL-Nominal.Nominal" begin atom_decl name nominal_datatype data = DNat | DProd "data" "data" | DSum "data" "data" nominal_datatype ty = Data "data" | Arrow "ty" "ty" ("_→_" [100,100] 100) nominal_datatype trm ...
{ "path": "Isabelle2024/src/HOL/Nominal/Examples/Compile.thy", "repo": "Isabelle2024", "sha": "c215a05ae71813549b4b3df1d8d5db9a9145e24414f6fb221208852fb7ae9cc2" }
section ‹Characteristic of Rings\label{sec:ring_char}› theory Ring_Characteristic imports "Finite_Fields_Factorization_Ext" "HOL-Algebra.IntRing" "HOL-Algebra.Embedded_Algebras" begin locale finite_field = field + assumes finite_carrier: "finite (carrier R)" begin lemma finite_field_min_order: "ord...
{ "path": "afp-2025-02-12/thys/Finite_Fields/Ring_Characteristic.thy", "repo": "afp-2025-02-12", "sha": "20f12a2b661260ec420b2d7d092093d37eddeedaba1f25ac16bbd87e777bc09a" }
section ‹Zeckendorf's Theorem› theory Zeckendorf imports Main "HOL-Number_Theory.Number_Theory" begin subsection ‹Definitions› text ‹ Formulate auxiliary definitions. An increasing sequence is a predicate of a function $f$ together with a set $I$. $f$ is an increasing sequence on $I$, if $f(x)+1 < f(x+1)$ ...
{ "path": "afp-2025-02-12/thys/Zeckendorf/Zeckendorf.thy", "repo": "afp-2025-02-12", "sha": "2eb81b20926ee2f654efb524698512c9a896d70fa7f4c965eb04e60d0087ee61" }
✐‹creator "Kevin Kappelmann"› section ‹Transport For Functions› subsection ‹Basic Setup› theory Transport_Functions_Base imports Monotone_Function_Relator Transport_Base begin paragraph ‹Summary› text ‹Basic setup for closure proofs. We introduce locales for the syntax, the dependent relator, the non-depende...
{ "path": "afp-2025-02-12/thys/Transport/Transport/Functions/Transport_Functions_Base.thy", "repo": "afp-2025-02-12", "sha": "7f5fd31aadb52ff63e82d905d5ae0497436cf086782514d6fb9e71de9c42ed9d" }
(* Title: statecharts/DataSpace/Update.thy Author: Steffen Helke, Software Engineering Group Copyright 2010 Technische Universitaet Berlin *) section ‹Update-Functions on Data Spaces› theory Update imports Data begin subsection ‹Total update-functions› definition Update :: "(('d data) => ('d d...
{ "path": "afp-2025-02-12/thys/Statecharts/Update.thy", "repo": "afp-2025-02-12", "sha": "f71a6947463fd50f6b244c9ab3b616b62c5bd991ef2618ad402421a9cf145b39" }
section ‹Storjohann's basis reduction algorithm (concrete implementation)› text ‹We refine the abstract algorithm into a more efficient executable one.› theory Storjohann_Impl imports Storjohann begin subsection ‹Implementation› text ‹We basically store four components: ▪ The $f$-basis (as list, all values...
{ "path": "afp-2025-02-12/thys/Modular_arithmetic_LLL_and_HNF_algorithms/Storjohann_Impl.thy", "repo": "afp-2025-02-12", "sha": "be0a330414c18019c786e8357934f847f3e0cd86cdd6e377c8105ce523c0b771" }
(* Author: Tobias Nipkow *) subsection "Verification Conditions for Total Correctness" subsubsection "The Standard Approach" theory VCG_Total_EX imports Hoare_Total_EX begin text‹Annotated commands: commands where loops are annotated with invariants.› datatype acom = Askip ("SKIP") | Aassign v...
{ "path": "Isabelle2024/src/HOL/IMP/VCG_Total_EX.thy", "repo": "Isabelle2024", "sha": "35cfbd01b401d7793fdebb4f1e2c0f954b6330d260c33f4246ad8c60ca55a1ea" }
section‹The Axiom of Extensionality in $M[G]$› theory Extensionality_Axiom imports Names begin context forcing_data begin lemma extensionality_in_MG : "extensionality(##(M[G]))" proof (-) (*goal: ‹extensionality(##M[G])›*) { fix x and y and z assume asms: "x∈M[G]" "y∈M[G]" "(∀w∈M[G] . w ∈ x ⟷ w ∈ y)" ...
{ "path": "afp-2025-02-12/thys/Forcing/Extensionality_Axiom.thy", "repo": "afp-2025-02-12", "sha": "ffd787f00e433070124962757c017a12eab1d6e478259bf8b66dd5f8395aaa1b" }
(* Title: OAWN_SOS.thy License: BSD 2-Clause. See LICENSE. Author: Timothy Bourke *) section "Open semantics of the Algebra of Wireless Networks" theory OAWN_SOS imports TransitionSystems AWN begin text ‹ These are variants of the SOS rules that work against a mixed global/local context, wh...
{ "path": "afp-2025-02-12/thys/AWN/OAWN_SOS.thy", "repo": "afp-2025-02-12", "sha": "787eddf803c9f46cfa87049d3f61a960ed4303c9c8689da3f2ee41ab262ed144" }
(* Title: RBT_Mapping_Exts.thy Author: Denis Lohner, Sebastian Ullrich *) theory RBT_Mapping_Exts imports Mapping_Exts "HOL-Library.RBT_Mapping" "HOL-Library.RBT_Set" begin lemma restrict_mapping_code [code]: "restrict_mapping f (RBT_Set.Set r) = RBT_Mapping.Mapping (RBT.map (λa _. f a) r)" ...
{ "path": "afp-2025-02-12/thys/Formal_SSA/RBT_Mapping_Exts.thy", "repo": "afp-2025-02-12", "sha": "46c7b144ae33b2806e873c368fa56f38ac8690ee726828b1d9bc1c8a7372ef05" }
(* Title: The Optimized Graceful Recursive Path Order for Lambda-Free Higher-Order Terms Author: Jasmin Blanchette <jasmin.blanchette at inria.fr>, 2016 Maintainer: Jasmin Blanchette <jasmin.blanchette at inria.fr> *) section ‹The Optimized Graceful Recursive Path Order for Lambda-Free Higher-Orde...
{ "path": "afp-2025-02-12/thys/Lambda_Free_RPOs/Lambda_Free_RPO_Optim.thy", "repo": "afp-2025-02-12", "sha": "2b83bff277b2a507568849a83e05062f43f9d7cf85601d3f7a1806c347a88a66" }
(* Title: HOL/UNITY/ProgressSets.thy Author: Lawrence C Paulson, Cambridge University Computer Laboratory Copyright 2003 University of Cambridge Progress Sets. From David Meier and Beverly Sanders, Composing Leads-to Properties Theoretical Computer Science 243:1-2 (2000), 339-361. ...
{ "path": "Isabelle2024/src/HOL/UNITY/ProgressSets.thy", "repo": "Isabelle2024", "sha": "5d4f04e37f6e967b0f16b7c6d2056d04c7020784a38acbc97c72b6536562cfe1" }
(* Author: Tobias Nipkow *) section "Tries (List Version)" theory Tries imports Trie begin text‹This is a specialization of tries where values are lists.› type_synonym ('k,'v)tries = "('k,'v list)trie" definition lookup_tries :: "('k,'v)tries ⇒ 'k list ⇒ 'v list" where "lookup_tries t ks = (case lookup_trie t ks...
{ "path": "afp-2025-02-12/thys/Trie/Tries.thy", "repo": "afp-2025-02-12", "sha": "9d42301d5219b3a4ce584f64c749e7482d429206ffa61c512b6c3ce430d82d2a" }
theory Fused_Resource imports Fold_Spmf begin (* TODO: move these somewhere *) context includes ℐ.lifting begin lift_definition eℐ :: "('a, 'b) ℐ ⇒ ('a, 'b × 'c) ℐ" is "λℐ x. ℐ x × UNIV" . lemma outs_ℐ_eℐ[simp]: "outs_ℐ (eℐ ℐ) = outs_ℐ ℐ" apply transfer (*goal: ‹outs_ℐ (eℐ ℐ) = outs_ℐ ℐ›*) by simp lemma re...
{ "path": "afp-2025-02-12/thys/Constructive_Cryptography_CM/Fused_Resource.thy", "repo": "afp-2025-02-12", "sha": "b3c7ebc96745729e90a16276e18f756f8e3c7e01d1a872c0f9a971d9c6523926" }
(* Title: HOL/TLA/TLA.thy Author: Stephan Merz Copyright: 1998 University of Munich *) section ‹The temporal level of TLA› theory TLA imports Init begin consts (** abstract syntax **) Box :: "('w::world) form ⇒ temporal" Dmd :: "('w::world) form ⇒ temporal" leadsto :: "['w...
{ "path": "Isabelle2024/src/HOL/TLA/TLA.thy", "repo": "Isabelle2024", "sha": "c9be2e8ab3779532f7f7bbda3f76ad9a5bd2a5a839e70af5d7b5bb5863001810" }
section ‹ Key algorithms for WEST › theory WEST_Algorithms imports Mission_Time_LTL.MLTL_Properties begin subsection ‹Custom Types› datatype WEST_bit = Zero | One | S type_synonym state = "nat set" type_synonym trace = "nat set list" type_synonym state_regex = "WEST_bit list" type_synonym trace_regex = "WEST_bit l...
{ "path": "afp-2025-02-12/thys/Mission_Time_LTL_to_Regular_Expression/WEST_Algorithms.thy", "repo": "afp-2025-02-12", "sha": "bc00eb032d5931517ae0922b03d5ce3fef1593da049f1a4817d803e079a38bcc" }
(* Title: thys/Rec_Ex.thy Author: Franz Regensburger (FABR) 03/2022 *) section ‹Examples for Recursive Functions based on Rec\_def› theory Rec_Ex imports Rec_Def begin definition plus_2 :: "recf" where "plus_2 = (Cn 1 s [s])" lemma "rec_exec plus_2 [0] = Suc (Suc 0)" unfolding plus_2_def (*goal...
{ "path": "afp-2025-02-12/thys/Universal_Turing_Machine/Rec_Ex.thy", "repo": "afp-2025-02-12", "sha": "3c144c4459806b0aac3a4a44eedb1b0a749b93f8143dc042c67cc9251bccc3e8" }
(******************************************************************************* Project: Development of Security Protocols by Refinement Module: Key_establish/m3_kerberos4.thy (Isabelle/HOL 2016-1) ID: $Id: m3_kerberos4.thy 132890 2016-12-24 10:25:57Z csprenge $ Authors Ivano Somaini, ETH Zurich <soma...
{ "path": "afp-2025-02-12/thys/Security_Protocol_Refinement/Key_establish/m3_kerberos4.thy", "repo": "afp-2025-02-12", "sha": "cc5c60af1a6b222168e01518c1ebf504ff3bdc1c6dc0addbeb832e8a18c987bc" }
(* Title: Code_Cayley_Hamilton.thy Author: Jose Divasón <jose.divasonm at unirioja.es> Author: Jesús Aransay <jesus-maria.aransay at unirioja.es> *) section‹Code Cayley Hamilton› theory Code_Cayley_Hamilton imports "HOL-Computational_Algebra.Polynomial" Cayley_Hamilton_Compatible ...
{ "path": "afp-2025-02-12/thys/Echelon_Form/Code_Cayley_Hamilton.thy", "repo": "afp-2025-02-12", "sha": "8d855fb052e7861ee0eefb95b9aad3cb33fbe43c789aa25233aae000623377a0" }
(*<*) (* * Copyright 2015, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) *) theory Global_Invariants_Lemmas imports Global_Invariants begin declare sub...
{ "path": "afp-2025-02-12/thys/ConcurrentGC/Global_Invariants_Lemmas.thy", "repo": "afp-2025-02-12", "sha": "4ea1e5e6692fa2030b4eb70521c06ddf447e61b364d6fa64a18cf5ec294ed573" }
theory Preliminary_Library imports Main "HOL-Library.Word" "Word_Lib.Word_Lib_Sumo" "HOL-Library.Countable" begin section ‹Preliminary Theories› text ‹In this subsection, we provide the type and value system used by the CHERI-C Memory Model. We also provide proofs for the conversion between large words (i.e. b...
{ "path": "afp-2025-02-12/thys/CHERI-C_Memory_Model/Preliminary_Library.thy", "repo": "afp-2025-02-12", "sha": "55cf8e557dfaa50709c34261001ee6ed8aec56b5d004da0e2b1daeb1506adde1" }
(* * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) * Copyright (c) 2022 Apple Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause *) theory globals_fn imports "AutoCorres2.CTranslation" begin install_C_file "globals_fn.c" print_locale globals_fn_global_addresses context globals_fn_simpl be...
{ "path": "afp-2025-02-12/thys/AutoCorres2/tests/c-parser/globals_fn.thy", "repo": "afp-2025-02-12", "sha": "984dfbcabafc5efc6359f71af19030e24272ffcd7d2f0012761076b833aea042" }
(* Title: Right group actions Author: Tim Makarios <tjm1983 at gmail.com>, 2012 Maintainer: Tim Makarios <tjm1983 at gmail.com> *) (* After Isabelle 2012, this may be moved to ~~/src/HOL/Algebra *) section "Right group actions" theory Action imports "HOL-Algebra.Group" begin locale action = g...
{ "path": "afp-2025-02-12/thys/Tarskis_Geometry/Action.thy", "repo": "afp-2025-02-12", "sha": "c75ff23224eb19c3e6b9c15003666208d1b709c7d4bfd550cb6bcb4b3a46c361" }
(* Title: HOL/Statespace/DistinctTreeProver.thy Author: Norbert Schirmer, TU Muenchen *) section ‹Distinctness of Names in a Binary Tree \label{sec:DistinctTreeProver}› theory DistinctTreeProver imports Main begin text ‹A state space manages a set of (abstract) names and assumes that the names are dis...
{ "path": "Isabelle2024/src/HOL/Statespace/DistinctTreeProver.thy", "repo": "Isabelle2024", "sha": "0c52313faa5cbb9f00a0a692731277a8deccc2b21838a37e2b53ecc4a7c98e57" }
(* Authors: Jose Divasón Sebastiaan Joosten René Thiemann Akihisa Yamada License: BSD *) section ‹List representation› theory List_Representation imports Main begin lemma rev_take_Suc: assumes j: "j < length xs" shows "rev (take (Suc j) xs) = xs ! j...
{ "path": "afp-2025-02-12/thys/LLL_Basis_Reduction/List_Representation.thy", "repo": "afp-2025-02-12", "sha": "714b9040bff54d3349330f77da605f811175cf05637d4b92f720d698f3d0d918" }
subsection ‹Digit function is Diophantine› theory Digit_Function imports Exponential_Relation "Digit_Expansions.Bits_Digits" begin definition digit ("[ _ = Digit _ _ _]" [999] 1000) where "[D = Digit AA K BASE] ≡ (QUATERNARY (λd a k b. b > 1 ∧ d = nth_digit a k b) D AA K BASE)"...
{ "path": "afp-2025-02-12/thys/DPRM_Theorem/Diophantine/Digit_Function.thy", "repo": "afp-2025-02-12", "sha": "0910ea9c8ad34eb4ad10e8185df932eff86748beaf6628e81f8c24c6f458c450" }
section ‹Semantics of SM› theory SM_Semantics imports SM_State SM_Cfg Gen_Scheduler begin section ‹Evaluation of Expressions› subsection ‹Basic operations› text ‹Attention: Silently overflows, using 2's complement. This should match Java-semantics. In C, signed overflow is undefined!› context includes...
{ "path": "afp-2025-02-12/thys/CAVA_LTL_Modelchecker/SM/RefPoint/SM_Semantics.thy", "repo": "afp-2025-02-12", "sha": "d3543cf221b283ad9e9482ff5caac4f5f53f819aa92a5f9db691fe0816e16993" }
(* Title: Prim's Minimum Spanning Tree Algorithm Author: Walter Guttmann Maintainer: Walter Guttmann <walter.guttmann at canterbury.ac.nz> *) section ‹Prim's Minimum Spanning Tree Algorithm› text ‹ In this theory we prove total correctness of Prim's minimum spanning tree algorithm. The proof has the sa...
{ "path": "afp-2025-02-12/thys/Relational_Minimum_Spanning_Trees/Prim.thy", "repo": "afp-2025-02-12", "sha": "601c8d58cc563cdb74514b4b08523b5a4650ef7c863860bee2ee39e935af0156" }
(*<*) theory Event_Data imports "HOL-Library.Char_ord" Code_Double Deriving.Derive begin (*>*) section ‹Event parameters› definition div_to_zero :: "integer ⇒ integer ⇒ integer" where "div_to_zero x y = (let z = fst (Code_Numeral.divmod_abs x y) in if (x < 0) ≠ (y < 0) then - z else z)" definitio...
{ "path": "afp-2025-02-12/thys/MFODL_Monitor_Optimized/Event_Data.thy", "repo": "afp-2025-02-12", "sha": "2823f1fdcd57d42f007fe66fe4378addb2f70e8e7c7788720fdd294d237442ae" }
(* Author: Alexander Maletzky *) section ‹Macaulay Matrices› theory Macaulay_Matrix imports More_MPoly_Type_Class Jordan_Normal_Form.Gauss_Jordan_Elimination begin text ‹We build upon vectors and matrices represented by dimension and characteristic function, because later on we need to quantify the dimensions of...
{ "path": "afp-2025-02-12/thys/Groebner_Bases/Macaulay_Matrix.thy", "repo": "afp-2025-02-12", "sha": "ae88c6316a514b4fadf51fcfe680a1a1468b2bfee64fb17f9583d27f9ffdcc02" }
(* Author: Lawrence C Paulson, Cambridge University Computer Laboratory Tobias Nipkow, TUM *) theory Tilings imports Main begin section‹Inductive Tiling› inductive_set tiling :: "'a set set ⇒ 'a set set" for A :: "'a set set" where empty [simp, intro]: "{} ∈ tiling A" | Un [simp, intro]:...
{ "path": "afp-2025-02-12/thys/FunWithTilings/Tilings.thy", "repo": "afp-2025-02-12", "sha": "f3243f87e3dd4d519b177dad828ad35fbe31e080d674d75e963f1e2189c11e3b" }
theory Valid_List imports Main "../util/List_Util" begin section ‹Valid List› definition valid_list :: "('a :: {linorder, order_bot}) list ⇒ bool" where "valid_list s = (length s > 0 ∧ (∀i < length s - 1. s ! i ≠ bot) ∧ last s = bot)" lemma valid_list_ex_def: fixes s ::"('a :: {linorder, order_bot}) list" ...
{ "path": "afp-2025-02-12/thys/SuffixArray/order/Valid_List.thy", "repo": "afp-2025-02-12", "sha": "0f3e229f371c2d3a44523088be1b2536311acc1e1dd001efd3dd6ee0509a7ca5" }
section ‹Preliminary results› theory Concentration_Inequalities_Preliminary imports Lp.Lp begin text ‹Version of Cauchy-Schwartz for the Lebesgue integral:› lemma cauchy_schwartz: fixes f g :: "_ ⇒ real" assumes "f ∈ borel_measurable M" "g ∈ borel_measurable M" assumes "integrable M (λx. (f x) ^2)" "integrabl...
{ "path": "afp-2025-02-12/thys/Concentration_Inequalities/Concentration_Inequalities_Preliminary.thy", "repo": "afp-2025-02-12", "sha": "a05f62e524f21cfcc7ddeeb8b6b99905b128eca5029059a145f7725768952400" }
(* Author: Dmitriy Traytel *) section ‹Normalization of WS1S Formulas› (*<*) theory WS1S_Normalization imports WS1S begin (*>*) fun nNot where "nNot (FNot φ) = φ" | "nNot (FAnd φ1 φ2) = FOr (nNot φ1) (nNot φ2)" | "nNot (FOr φ1 φ2) = FAnd (nNot φ1) (nNot φ2)" | "nNot φ = FNot φ" primrec norm where "norm (FQ a m)...
{ "path": "afp-2025-02-12/thys/MSO_Regex_Equivalence/WS1S_Normalization.thy", "repo": "afp-2025-02-12", "sha": "deee4b7c960f5c82bfad81a1a4ccde6f8bbe13eb607dbc47c1ccc1b4ca31a515" }
(* Title: Subset Boolean Algebras Authors: Walter Guttmann, Bernhard Möller Maintainer: Walter Guttmann <walter.guttmann at canterbury.ac.nz> *) theory Subset_Boolean_Algebras imports Stone_Algebras.P_Algebras begin section ‹Boolean Algebras› text ‹ We show that Isabelle/HOL's ‹boolean_algebra› clas...
{ "path": "afp-2025-02-12/thys/Subset_Boolean_Algebras/Subset_Boolean_Algebras.thy", "repo": "afp-2025-02-12", "sha": "04676f97d3db76c970437d6377d3988001df2eb5dd769fc2b89e355a1bad961a" }
theory Aleph_Relative imports CardinalArith_Relative begin definition HAleph :: "[i,i] ⇒ i" where "HAleph(i,r) ≡ if(¬(Ord(i)),i,if(i=0, nat, if(¬Limit(i) ∧ i≠0, csucc(r`( ⋃ i )), ⋃j∈i. r`j)))" reldb_add functional "Limit" "Limit" relationalize "...
{ "path": "afp-2025-02-12/thys/Transitive_Models/Aleph_Relative.thy", "repo": "afp-2025-02-12", "sha": "f927061b2269ec16878b11ffc3d6ed603a16de06f6b0c68d09f96c8521f7c926" }
(* * Copyright (c) 2022 Apple Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause *) section ‹Pointers into Structures in Split Heap \label{sec:open_struct}› theory open_struct imports "AutoCorres" begin subsection ‹Overview› text ‹ Heap lifting in AutoCorres transforms the monolithic byte-lev...
{ "path": "afp-2025-02-12/thys/AutoCorres2/doc/open_struct.thy", "repo": "afp-2025-02-12", "sha": "efdf615dc432b2089e73483df9535042e0ae4612b42e1bb4c942b00d1e8c9832" }
(* Title: variants/c_gtobcast/Fresher.thy License: BSD 2-Clause. See LICENSE. Author: Timothy Bourke, Inria Author: Peter Höfner, NICTA *) section "Quality relations between routes" theory C_Fresher imports C_Aodv_Data begin subsection "Net sequence numbers" su...
{ "path": "afp-2025-02-12/thys/AODV/variants/c_gtobcast/C_Fresher.thy", "repo": "afp-2025-02-12", "sha": "f085a0e01f9ff9156e6505b35d720a9ed42661a632b5e138aca34964ed3bfb6f" }
theory PathLemmas imports TheoremD14 begin context LocalLexing begin lemma characterize_𝒫: "(∀ i < length p. ∃u. p ! i ∈ 𝒵 (charslength (take i p)) u) ⟹ admissible p ⟹ ∃ u. p ∈ 𝒫 (charslength p) u" proof (induct p rule: rev_induct (*‹⟦?P []; ⋀x xs. ?P xs ⟹ ?P (xs @ [x])⟧ ⟹ ?P ?xs›*)) (*goals: 1. ‹⟦∀i<len...
{ "path": "afp-2025-02-12/thys/LocalLexing/PathLemmas.thy", "repo": "afp-2025-02-12", "sha": "511de6471118ee6864efdbf215b3ef9613a6af385c27e8ad13c3ce84ef47777c" }
theory Clause_Could_Propagate imports Background Implicit_Exhaustive_Factorization begin context simulation_SCLFOL_ground_ordered_resolution begin definition clause_could_propagate where "clause_could_propagate Γ C L ⟷ ¬ trail_defined_lit Γ L ∧ linorder_lit.is_maximal_in_mset C L ∧ trail_false_cls Γ {...
{ "path": "afp-2025-02-12/thys/SCL_Simulates_Ground_Resolution/Clause_Could_Propagate.thy", "repo": "afp-2025-02-12", "sha": "c136afa916bf15069dc50b1b93ece57ff8dbbcdc737c2b62db2d3e6307baecc3" }
(* Title: HOL/HOLCF/IOA/Abstraction.thy Author: Olaf Müller *) section ‹Abstraction Theory -- tailored for I/O automata› theory Abstraction imports LiveIOA begin default_sort type definition cex_abs :: "('s1 ⇒ 's2) ⇒ ('a, 's1) execution ⇒ ('a, 's2) execution" where "cex_abs f ex = (f (fst ex), Map ...
{ "path": "Isabelle2024/src/HOL/HOLCF/IOA/Abstraction.thy", "repo": "Isabelle2024", "sha": "668ec7d78200263e343e1729ae5efdcc611b8aac8e4cb21c5c255827e02ffb85" }
section ‹Nested DFS› theory Nested_DFS imports DFS_Find_Path begin text ‹Nested DFS is a standard method for Buchi-Automaton emptiness check.› subsection ‹Auxiliary Lemmas› lemma closed_restrict_aux: assumes CL: "E``F ⊆ F ∪ S" assumes NR: "E⇧*``U ∩ S = {}" assumes SS: "U ⊆ F" shows "E⇧*``U ⊆ F" ― ‹Auxiliary...
{ "path": "afp-2025-02-12/thys/DFS_Framework/Examples/Nested_DFS.thy", "repo": "afp-2025-02-12", "sha": "1270ce5f6cc9552a05906d357636b1a577cbdf0532b255921996a9ea8c6045e0" }
(* Author: Jose Divasón Email: jose.divason@unirioja.es *) section ‹Elementary divisor rings› theory Elementary_Divisor_Rings imports SNF_Algorithm Rings2_Extended begin text ‹This theory contains the definition of elementary divisor rings and Hermite rings, as well as the corresponding r...
{ "path": "afp-2025-02-12/thys/Smith_Normal_Form/Elementary_Divisor_Rings.thy", "repo": "afp-2025-02-12", "sha": "e6bde3141d3a3614dbea7bb386cfbdce553bd74fc92c112a1a5b04de3349930a" }
(***************************************************************************** * Featherweight-OCL --- A Formal Semantics for UML-OCL Version OCL 2.5 * for the OMG Standard. * http://www.brucker.ch/projects/hol-testgen/ * * UML_Void.thy --- Library definitions. * This f...
{ "path": "afp-2025-02-12/thys/Featherweight_OCL/basic_types/UML_Void.thy", "repo": "afp-2025-02-12", "sha": "0eea4d973c15ca92e10bbe703b2b06d5a0a8cef577439acf2be926171cb8af3a" }
section ‹Lazy evaluation within the logic› theory Lazy_Eval imports Complex_Main begin text ‹ This is infrastructure to lazily evaluate an expression (typically something corecursive) within the logic by simple rewriting. A signature of supported (co-)datatype constructures upon which pattern matching is al...
{ "path": "Isabelle2024/src/HOL/Real_Asymp/Lazy_Eval.thy", "repo": "Isabelle2024", "sha": "dc10676a7fc95cf9c19415abd61be9711d33db7bcdd3bdb755ad2d7bff22c5d6" }