A Rocq library written by members of PnV Discord Server.
- Currently, this library is standalone.
git clone https://github.com/PnVDiscord/PnVRocqLib.git
cd PnVRocqLib
eval `opam env`
rocq makefile -f _CoqProject -o CoqMakefile
eval "$(opam env)" && make -f CoqMakefile -j4The Rocq Prover, version 9.2
compiled with OCaml 5.2.1
A clean build with -j4 took 4 min 41 s on 2026-11-30, and no single rocq compile process exceeded 2.2 GB of memory.
Index.v imports every theory outside theories/Applications/ and lists the constructive theories, Gödel's incompleteness theorems, the classical theories, and the theories with quotient types separately.
-
The weak completeness of propositional logic. (
Corollary weak_completenessinPropositionalLogic.v) -
The soundness, completeness, and compactness theorems of propositional logic. (
Theorem the_propositional_soundness_theorem,Theorem the_propositional_completeness_theorem, andCorollary the_propositional_compactness_theoreminClassicalPropositionalLogic.v) -
The soundness theorem of first-order logic, and the completeness theorem for countable languages. (
Theorem HilbertCalculus_soundandTheorem HilbertCalculus_countable_completeinClassicalFol.v) -
The completeness theorem of first-order logic for languages of arbitrary cardinality, and the model existence theorem. (
Theorem HilbertCalculus_completeandTheorem consistent_has_modelinClassicalAdvancedFol.v) -
The compactness theorem of first-order logic. (
Corollary first_order_compactnessinClassicalAdvancedFol.v) -
Isomorphic first-order structures satisfy the same theories and are elementarily equivalent. (
Theorem isomorphism_modelsandTheorem isomorphism_elementarily_equivalentin theFolModelmodule ofExtraFol.v) -
The downward and upward Löwenheim-Skolem theorems. (
Theorem downward_Löwenheim_Skolem,Theorem upward_Löwenheim_Skolem, and their combinationTheorem LöwenheimSkolem.ThminClassicalAdvancedFol.v) -
The cardinality of the set of formulae of a language
Lis|L| + â”â. (Theorem frm_cardinClassicalAdvancedFol.v) -
The space of complete types over a finite variable context is a Stone space, and its clopen subsets are exactly those defined by individual formulae. (
Theorem Stone_isStoneSpaceandTheorem clopen_iff_basicin theFolStonemodule ofClassicalAdvancedFol.v, with explicitClassicalAxiomsparameters for choice and function/proposition extensionality.)
-
Kleene's normal form theorem, a universal Ό-recursive program, and the undecidability of the halting problem. Church's theorem shows that no total Ό-recursive program decides the theorems of a consistent extension of
Q. (Theorem Kleene_normal_form,Theorem univ_spec,Theorem halting_undecidable, andTheorem ChurchinKleene.v) -
The GödelâRosser theorem: every consistent, effectively axiomatized extension of the arithmetic theory
QofArith1.vhas a Rosser sentence that is neither provable nor refutable. No classical axiom is used. (Corollary GodelRosserinGodelRosser.v) -
Tarski's undefinability of arithmetic truth, and the impossibility of effectively axiomatizing true arithmetic. (
Corollary Tarski_classicalandCorollary true_arithmetic_not_axiomatizableinClassicalGodel.v) -
Every consistent, effectively axiomatized extension of
Q, including its order axioms, has two models that disagree on its Rosser sentence and are not elementarily equivalent. This includes PA. (Theorem GodelRosser_two_modelsandTheorem PA_two_models_classicalinClassicalGodel.v, with explicitClassicalAxiomsparameters for choice and function/proposition extensionality.) -
Löb's theorem and Gödel's second incompleteness theorem under the HilbertâBernaysâLöb derivability conditions. (
Theorem LobandTheorem Godel2_abstractinGodel2.v) For the concrete provability formula of the recursive presentationPA_rec,PeanoDerivability.vproves D2, internal ÎŁâ completeness, D3, and all three derivability conditions;PeanoSchema.vtransfers these results to the schema-generatedPA.Godel2_PAassumes only PA's consistency, andGodel2_PA_classicalinClassicalGodel.vproves that its consistency sentence is true and unprovable without D2/D3 assumptions. -
Peano arithmetic
PAis generated by the contextual axiom-schema framework ofFolFramework.v: induction uses a formula metavariable with explicit parameters and a fresh induction variable, and its instances, including formulae with parameters, characterize the induction axioms up to α-equivalence.PA_iffproves equivalence with the recursive presentationPA_rec. (PeanoSchema.v) -
Numerical certificates for PA axiom-schema applications, including α-equivalent outputs. The certificate checker characterises membership in the schema-generated PA axioms, and concrete application data produces checked axiom witnesses and Hilbert AXM proof nodes. (
Corollary ax_check_spec,Lemma encode_application_check, andLemma AXM_checkin thePeanoSchemaCodingmodule ofPeanoSchemaCoding.v) -
Incompleteness for effective languages containing arithmetic. Every consistent, effectively axiomatized extension of the embedded
Qhas a Rosser sentence that is neither provable nor refutable. (Corollary GodelRosserinGodelLanguageRosser.v) For PA with induction over all formulae of the extended language, the HilbertâBernaysâLöb conditions are proved for the proof predicate of its equivalent recursive presentation, so the second incompleteness theorem assumes only consistency. (Theorem HBLandCorollary Godel2in thePeanoLanguageDerivabilitymodule ofPeanoLanguage.v)
-
The Knaster-Tarski fixed-point theorem: a monotone map on a complete lattice has a least and a greatest fixed point, and its fixed points form a complete lattice. (
Theorem KnasterTarski_1st,Theorem KnasterTarski_2nd, andTheorem KnasterTarski_3rdinDomainTheory.v) -
A simple replica of
pcofix. (Theorem pcofixinDomainTheory.v) -
The Kleene fixed-point theorem. (
Theorem lfp_returns_the_least_fixed_pointinClassicalDomainTheory.v) -
IPO <=> pointed DCPO <=> every monotone map has a least fixed point. (
Theorem ipo_iff_dcpoandTheorem dcpo_iff_every_monotonic_function_has_lfpinClassicalDomainTheory.v) -
The Bourbaki-Witt fixed-point theorem, the generalised Kleene fixed-point theorem, and Zorn's Lemma. (
Theorem BourbakiWittFixedpointTheorem,Theorem generalised_Kleene_fixedpoint_theorem, andTheorem Zorn's_lemmainClassicalSetTheory.v) -
The well-ordering theorem, the Cantor-Schröder-Bernstein theorem, and Cantor's theorem. (
Theorem well_ordering_thm,Theorem CantorSchröderBernstein, andTheorem powerCard_gtinClassicalSetTheory.v) -
A well-ordered set has order type
αiff it is order-isomorphic toα. (Theorem Woset_iso_OrdinClassicalSetTheory.v) -
Hartogs numbers, the alephs, and the beths, with
â”_α †â¶_α. (Theorem Hartogs_spec,Theorem aleph_hasCardinality,Corollary beth_hasCardinality, andTheorem aleph_le_bethinClassicalSetTheory.v) -
The beth function
â¶_α(Îș)over an arbitrary base cardinalÎș, withâ¶_α = â¶_α(â”_0)andâ¶_{α+ÎČ}(Îș) = â¶_ÎČ(â¶_α(Îș)). (Definition beth_from,Theorem beth_from_add, andCorollary beth_addinClassicalSetTheory.v) -
|A à A| †|A|for any infiniteA. (Theorem Cardinality_ofType_prod_self_le_of_nat_leinClassicalCardinal.v) -
The trichotomy of ordinals implies the law of excluded middle. (
Corollary OrdTrichotomy_implies_LEMinSetTheory.v) -
ZFC's ordinary axioms and separation/replacement schemata in the contextual axiom-schema framework. Their schema instances yield Hilbert derivations in the generated theory. (
Corollary ordinary_proves,Corollary separation_proves, andCorollary replacement_provesinZfcFramework.v)
-
The weak normalisation property of STLC, by normalisation by evaluation. (
Corollary Normalisation_by_EvaluationinSTLC.v) -
The strong normalisation property of STLC. (
Theorem Typing_implies_StrongNormalisationinSTLC.v) -
Two STLC terms of the same type in the same context are ÎČη-equivalent iff their executable normal forms are α-equivalent. (
Theorem equality_iff_semantic_normalise_alphainSTLC.v) -
Two definitions of η-long normal forms coincide. Given a function that chooses a name outside each list, the judgements
clNeandclNfare equivalent to the typed neutral and normal formstypNeandtypNf; the η-expansion of a neutral term is normal and, up to α-equivalence, independent of the chosen fresh names. (Corollary clNe_iff_typNe,Corollary clNf_iff_typNf,Lemma etaExpansion_typNf, andLemma etaExpansion_fresh_alphain theChurchStyleStlc1module ofSTLC.v) -
Incremental higher-order pattern unification.
HOPUSessioninHOPUSolver.vprovidessolve,extend, andmerge, andsolve_extend_solution_iffcharacterises the solutions of the accumulated constraints by ÎČη factorisation through the result.extend_completeassumessupported: the new constraints are patterns after applying the current assignment and normalising. For a valid session under this condition, failure means there is no typed solution; outside it,invalid_problemreports an unsupported input.extend_anchored_no_invalid,extend_anchored_failure, andextend_anchored_completegive the same guarantees undersupported_anchored, whichsupported_anchoredbdecides. The kernel executessemantic_normalisefromSTLC.v, which is proved α-equivalent toNbE, the function extracted from the normalisation proof. -
Capture-avoiding copying.
Copy.vspecifies the copy relation of Miller and Nadathur on named STLC terms, andCopySolver.vexecutes copy goals through HOPU sessions without fuel.runreports every failure asNone;run_diagnosticreports the kind of failure, andrun_diagnostic_eraseproves that erasing it givesrun.FolCopyinFolFramework.vreturns the computed FOL substitution and proves its correctness and totality.PASolverinPeanoSchema.vbuilds Hilbert proofs in PA on these operations:pa_axiomselects an axiom,pa_inductiongenerates the base and step goals, andpa_solvecombines arithmetic simplification with induction. -
Decidable instance checking for contextual axiom schemata. For a schema
Sin contextxssatisfyingmatching_anchoredb xs S = trueand equipped with anautomatic_condition xs Sinstance,AxiomSchema.instance_of_decdecides whether a formula is an instance up to α-equivalence. (Definition instance_of_decandLemma instance_of_iff_foundinFolFramework.v) -
A simple replica of
eutt. (Instance eutt,Instance itree_MonadLaws_eutt, andInstance itree_MonadIterSpec_euttinBasicITreeTh.v) -
For a graph given by successor lists, with decidable vertex equality and a finite list containing every edge target, strong normalisation from a vertex is equivalent to the absence of a reachable cycle, and an infinite execution exists iff a cycle is reachable. (
Theorem sn_iff_no_reachable_cycleandTheorem forever_iff_reachable_cycleinGraph.v) Verified DFS on pairs of binary natural numbers decides global strong normalisation under the same condition on edge targets. (Theorem cycle_none_iffinDFS.v) -
Cycle detection in undirected graphs whose edges are two-element sets of distinct vertices. Given decidable vertex equality, successor lists that list exactly the neighbours of each vertex, and a finite list containing every neighbour,
cyclebreturnstrueiff the graph has a cycle through at least three distinct vertices. (Theorem cycleb_specandCorollary cycleb_false_specin theGraphmodule ofGraph.v)
-
The pumping lemma for regular expressions. (
Theorem pumping_lemmainRegex.v) -
With decidable character equality, regular-expression simplification preserves the language and never increases the number of constructors. (
Theorem reduce_regex_specandTheorem reduce_regex_sizeinRegex.v) -
Thompson's construction from regular expressions to Δ-NFAs. (
Corollary thompson_acceptsandCorollary thompson_rules_acceptsinAutomata.v) -
The subset construction from Δ-NFAs to DFAs; the DFA accepts a word with the least tag among those the Δ-NFA accepts it with. (
Theorem powerset_correctinAutomata.v) -
Hopcroft's algorithm preserves the language of a DFA and returns a minimal DFA. (
Theorem hopcroft_acceptsandTheorem hopcroft_isMinimalinAutomata.v) -
Conversion from total or partial DFAs to regular expressions using Kleene's recurrence with a FloydâWarshall table. Given an alphabet that lists every character and decidable character equality, the resulting expression matches exactly the words accepted with the specified tag. (
Theorem to_regex_totalandTheorem to_regex_partialinAutomata.v) Kleene's theorem characterises regular-expression languages exactly as those accepted by total tagged DFAs, and the Regex â DFA â Regex roundtrip preserves the language. (Theorem regular_iff_dfaandCorollary regex_dfa_roundtripin the same file.) -
Soundness and completeness of Kozen's axioms of Kleene algebra for the equivalence of regular expressions.
KleeneDeduction.derivable e e'means thate = e'is derivable from the axioms. A derivable equation holds in any Kleene algebra under any interpretation of the characters, so derivably equal expressions denote the same language; this assumes neither a finite alphabet nor decidable character equality. (Theorem soundandTheorem regex_soundin theKleeneDeductionmodule ofRegex.v) Conversely, for an alphabet with decidable equality and a list containing every character, expressions denoting the same language are derivably equal. (Theorem interpret_inclusionandTheorem regex_completein theFiniteKleeneCompletenessmodule ofAutomata.v) -
Three descriptions of the language of a context-free grammar coincide: derivations in the grammar, derivations in the augmented grammar, and rightmost derivations in the augmented grammar. (
Theorem three_descriptions_of_languageinCFGrammar.v) -
The viable-prefix theorem: the LR(0) items reached by reading
Îłare exactly the items valid forÎł. (Theorem goto_word_valid_prefix_iffinCFGrammar.v) -
The LALR(1) lookaheads computed from the LR(0) automaton are exact:
A â Ïcan be reduced in stateqon lookaheadtiff some rightmost derivationS' ârm* α A t zhasαÏleading toq. (Theorem construct_can_reduce_grammar_iffinAutomata.v)
-
Verified lexer generator. Given an alphabet that lists every character,
LGS.preparecompiles a list of regular expressions to a DFA (Thompson's construction, the subset construction, Hopcroft's minimisation, and dead-state removal), and fails iff some rule matches the empty word. The scannerLGS.scan_allreturnstokensifftokensis the maximal-munch tokenisation of the input, where earlier rules win ties, and fails iff no such tokenisation exists. (Theorem build_accepts,Theorem prepare_None,Theorem scan_one_correct,Theorem scan_all_correct, andCorollary scan_all_rejectsinLGS.v) -
Verified right-context lexer generator.
Module LGS2ofLGS.vacceptsplain Randtrailing R R', including rules whose body and right context both have variable length. Selection maximises the combined length, then prefers the earlier rule, then the longest body within that rule. Only the body becomes a lexeme; the context remains in the input. Preparation rejects nullable bodies and permits nullable contexts. Success, failure, input preservation, SN termination, compiled execution, and compatibility with plain LGS rules are proved. Computed examples are inLGS2Examples.v. -
Verified LALR(1) parser generator. Let
Gbe a well-formed grammar whose nonterminals are all productive.Gis LALR(1), a property defined from valid prefixes and item cores, iff the generated table has no conflict. IfGis LALR(1), thenGis LR(1),build_prepared Gsucceeds, and the generated parser returns the treeÏon inputxiffÏis a parse tree ofx, succeeds iffx â L(G), and fails iffx â L(G). (Theorem grammar_LALR1_iff_conflict_free,Theorem grammar_LALR1_isLR1, andTheorem lalr1_generator_correctinAdvancedPGS.v) -
Parser generation with yacc-style precedences.
PGS.build Gsucceeds iffGis well-formed, its nonterminals are all productive, and the precedences settle every conflict. When it succeeds,build_prepared Gsucceeds iff the generated parser terminates on every input. Termination is proved as strong normalisation, without fuel. The prepared parser returns exactly the parse trees selected by the grammar's precedence rules, and fails iff no selected parse tree exists. (Theorem build_specinPGS.v, andTheorem build_prepared_totality_iff,Theorem build_prepared_divergence_iff,Theorem build_prepared_selected_iff, andTheorem build_prepared_selected_failure_iffinAdvancedPGS.v) -
The trees returned by the generated parser, described by the priorities alone. Whenever
PGS.build_prepared Greturnsprepared,PGS.run prepared xreturnsÏiffÏis a parse tree ofxwithout a priority violation: a position where the action required by the tree (a shift at a leaf, a reduction at an internal node) fails to outrank another grammar candidate in the same context, including a tie or an unranked conflict.build_run_priority_iffgives the same equivalence for the runner that takes a termination proof. (Theorem build_prepared_priority_iffandCorollary build_run_priority_iffinAdvancedPGS.v) InPGSPriorityExamples.v, where*binds more tightly than+inA â a | A + A | A * A, the parser returnsa+(a*a)ona+a*a, andmixed_priority_offending_subtreeshows that the other parse tree(a+a)*aviolates the priorities. Ona+a+a, a left- or right-associative+gives the left- or right-nested tree, and a non-associative+gives anUnexpectedTokenerror at+. -
A reusable verified frontend API.
VerifiedFrontend.vseparatesFrontendInput, generatedFrontendArtifacts, andCompiledFrontend Input Artifacts. The artifacts contain frozen execution tables and proofs connecting them to the generators, so callinglexer,tokenize,parser, orrun_stringonly interprets those tables. The optimized runners are proved equal to the reference runners and retain their soundness, completeness, failure, and SN termination results.
C99.v supplies the 237-production C99 syntax grammar of Jutta Degener as a FrontendInput, prepares its artifacts once in C99Generated, and instantiates C99 and C99Tokens. The latter keeps a Token.t in each leaf, containing a named token kind and the exact source spelling:
Require Import PnV.System.VerifiedFrontend.
Require Import PnV.Applications.C99.
Require Import Stdlib.Lists.List.
Import ListNotations.
(* Characters -> tagged lexemes, including whitespace and comments. *)
Eval compute in C99.lexer hello_world_characters.
(* Characters -> tokens with named kinds and source spellings. *)
Eval compute in C99Tokens.tokenize hello_world_characters.
(* Source text -> a tree whose leaves contain those tokens. *)
Eval compute in C99Tokens.run_string hello_world.
(* Recover the leaf tokens in source order. *)
Eval compute in either (fun _ : C99Tokens.Core.Failure => None) (fun tau : C99Tokens.tree => Some (C99Tokens.tokens tau)) (C99Tokens.run_string hello_world).The frontend processes ASCII C99 syntax after preprocessing; preprocessing and the contextual classification of typedef names are outside this input module.
-
C99.v: A verified frontend for the C99 syntax grammar of Jutta Degener. -
C99Token.v: Names for the 87 terminals of the C99 grammar. -
CopyExamples.v: Examples of the copy kernel: the untyped λ-calculus and capture-avoiding FOL substitution. -
CopyPerformance.v: Scaling tests of the copy kernel, with the expected answers checked. -
FolFrameworkExamples.v: Examples of the first-order logic framework and its axiom schemata. -
GodelLanguageExamples.v: The incompleteness theorems for an extension of the arithmetic language by a constant, a ternary function, and a unary predicate. -
HOPUExamples.v: Examples of higher-order pattern unification. -
HOPUPerformance.v: Scaling families for the HOPU solver, with the returned assignments checked against the original equations. -
HOPUSessionExamples.v: Examples of incremental HOPU sessions: refinement, merging, and identifier collisions. -
Index.v: Accumulates all source files outsidetheories/Applications/and checks their consistency. -
LGS2Examples.v: Computed examples of the right-context lexer generator. -
PeanoSolverExamples.v: Hilbert proofs in PA built byPASolver. -
PeanoSolverPerformance.v: Timings ofPASolveron open terms. -
PGSPriorityExamples.v: Parse trees selected by precedences and associativity in the grammarA â a | A + A | A * A. -
RegexExamples.v: Examples of regular-expression simplification. -
ZfcFramework.v: ZFC in the contextual axiom-schema framework.
-
CFGrammar.v: Context-free grammars, rightmost derivations, LR(0) items, and the viable-prefix theorem. -
Category.v: Basic theory on category. -
DFS.v: Verified depth-first search on finite digraphs whose vertices are pairs of binary natural numbers. -
Monad.v: Basic definitions about monad, monad iteration, and monad transformers. -
Regex.v: Regular expressions: the pumping lemma, simplification, and Kleene-algebra deduction. -
Traverse.v: Monadic traversal of lists. -
Worklist.v: A worklist algorithm computing finite closures, terminating by strong normalisation.
-
Aczel.v: Aczel's type theoretic interpretation of set theory. -
Automata.v: Δ-NFAs, DFAs, and the constructions between them and regular expressions; LR(0) and LALR(1) automata. -
BalancedTree.v: Balanced binary trees. -
BinaryTrie.v: Finite maps and sets keyed by binary natural numbers or by pairs of them. -
FiniteMap.v: Finite partial maps as sorted association lists. -
FiniteSet.v: Finite sets as sorted lists. -
Graph.v: Basic graph theory: reachability, cycles, and labelled transition systems. -
HsOrd.v: Haskell-style comparison functions compatible with a partial order. -
ITree.v: Basic definitions on interaction tree. -
NumRepr.v: Number representation. -
SymbolDictionary.v: Dictionaries encoding symbols as binary natural numbers. -
Vector.v: ReplacesStdlib.Vectors.VectorDef.t.
-
Arith1.v: The language of arithmetic, its standard structure, and the theoryQ. -
Arith2.v: Codes of terms and formulae, and their primitive recursive operations. -
ArithLanguage.v: Transport of arithmetic proofs along a signature inclusion. -
ClassicalGodel.v: Classical corollaries of the incompleteness theorems; the only file of the Gödel development that uses classical axioms. -
Diagonal.v: The diagonal lemma, independent of the signature. -
FolCoding.v: An interface for effective syntax, and a proof checker derived from it. -
FolSyntaxCoding.v: Presentations numbering the symbols of a language with primitive recursive validity tests. -
Godel1.v: Gödel's first incompleteness theorem and Tarski's theorem. -
Godel2.v: Löb's theorem and Gödel's second incompleteness theorem. -
GodelLanguage.v: The first and second incompleteness theorems for extensions of the arithmetic language. -
GodelLanguageRosser.v: The GödelâRosser theorem for extensions of the arithmetic language. -
GodelRosser.v: The GödelâRosser theorem. -
Kleene.v: Kleene's normal form, the universal program, and the computational first incompleteness theorem. -
Lob.v: Löb's theorem and the abstract second incompleteness theorem over an arbitrary language. -
PeanoArith1.v: The recursive presentationPA_recof Peano arithmetic. -
PeanoArith2.v: Proofs in PA: substitution lemmas and the least number principle. -
PeanoArith3.v: Order properties in PA. -
PeanoCertificates.v: Representability in PA: division, multiples, certificates, and the beta function. -
PeanoCoding.v: The coding of histories, lists, and nodes in PA. -
PeanoDerivability.v: Bounded truth, formula completeness, and the derivability conditions forPA_rec. -
PeanoLanguage.v: Peano arithmetic in an extension of the arithmetic language, and its derivability conditions. -
PeanoNumeralEvaluation.v: Numeral evaluation and numeral order in PA. -
PeanoNumeralProofs.v: Code generators of Hilbert proofs fromQ, defined as functions on numbers. -
PeanoPrograms.v: Programs, composition, and minimization represented in PA. -
PeanoProofRules.v: Substitution traces and proof rules on codes. -
PeanoQuotedFormulae.v: Term evaluation, atomic completeness, and quotation in PA. -
PeanoRecursion.v: Sequences, traces, and primitive recursion represented in PA. -
PeanoSchema.v: Peano arithmetic from contextual axiom schemata, andPASolver. -
PeanoSchemaCoding.v: Numerical certificates for schema applications. -
PeanoSubstitutionChecking.v: Substitution checking and free variables on codes. -
PeanoSyntaxChecking.v: Proof syntax, provability, proof checking, and quotation checking on codes.
-
AdvancedFol.v: Henkin extensions of first-order languages. -
BasicFol.v: Basic definitions of First-Order Logic. -
BasicFol2.v: Extra definitions of First-Order Logic: languages augmented with Henkin constants. -
ClassicalAdvancedFol.v: Completeness and compactness for languages of arbitrary cardinality, the Löwenheim-Skolem theorems, and Stone spaces of types. -
ClassicalFol.v: The meta-theory on Classical First-Order Logic--such as Soundness Theorem and Completeness Theorem. -
ClassicalPropositionalLogic.v: The Soundness, Completeness, and Compactness Theorem for PropositionalLogic. -
ExtraFol.v: First-order theories and structures, and isomorphism invariance. -
FolEmbedding.v: Language inclusions, preserving the sorts and arities of symbols. -
HilbertFol.v: Basic facts about Hilbert calculus for First-Order Logic. -
HilbertFol2.v: Advanced facts about Hilbert calculus for First-Order Logic. -
MuRec.v: Basic facts about Ό-recursive functions. -
PrimRec.v: Basic facts about primitive recursive functions. -
PropositionalLogic.v: Constructive meta-theory on the Propositional Logic, Weak Completeness Theorem for PropositionalLogic.
-
BooleanAlgebra.v: Basic theory on Boolean algebras. -
ClassicalCardinal.v: Classical cardinal arithmetic. -
ClassicalDomainTheory.v: Classical domain theory. -
ClassicalSetTheory.v: Classical set theory. -
ClassicalTopology.v: Classical topology: closed and clopen sets, and bases. -
DomainTheory.v: Constructive domain theory. -
OrderTheory.v: Basic order theory. -
SetTheory.v: Constructive set theory. -
ThN.v: Basic facts about the natural numbers.
-
ClassicalFacts.v: Facts aboutCIC + (classic : forall P, P \/ ~ P), and the classClassicalAxiomsof choice and extensionality axioms. -
ConstructiveFacts.v: Facts about CIC. -
Notations.v: Reserves all notations to avoid the conflict. -
PnVTacs.v: Tactics of the library. -
Prelude.v: The prelude. -
Quotient.v: Quotient types, postulated by the axiomQuotient_always_exists. -
SfLib.v: A copy ofsnu-sf/sflib.v. -
X.v: List utilities, reflexive transitive closures, and strong normalisation.
-
AdvancedPGS.v: The correctness of the LALR(1) parser generator and of precedence selection. -
BasicITreeTh.v: A basic theory on interaction trees. -
Copy.v: The copy relation on named terms: the specification of capture-avoiding substitution. -
CopySolver.v: The copy kernel: a solver for copy goals on HOPU sessions. -
FolExternal.v: An external first-order vocabulary, independent of the internal formula representation. -
FolFramework.v: A First-Order Logic Framework with contextual axiom schemata. -
HOPU.v: Higher-order pattern unification: problems, solutions, and the kernel. -
HOPUInvariants.v: Invariants of the HOPU kernel states. -
HOPUSolver.v: Results about the HOPU solver, and incremental sessions. -
Lambda1.v: Basic definitions for Church-style stlc. -
Lang.v: Some formal languages. -
LGS.v: A verified lexer generator. -
P.v: Names: printing and parsing by base 36. -
PGS.v: A verified parser generator. -
Scan.v: Iterating a scanner over the input, terminating by strong normalisation. -
STLC.v: Basic theorems for Church-style stlc. -
TokenTree.v: Parse trees whose leaves carry a token kind and its source spelling. -
VerifiedFrontend.v: A reusable verified frontend API.
- sflib
- stdpp
- DmxLarchey/Murec_Extraction
- CoqGym/goedel
- ernius/formalmetatheory-stoughton
- uds-psl/Constructive Analysis of First-Order Completeness
- snu-sf/Ordinal
- Damhiya/Logos
- Lean Zulip Chat (1)
- DeepSpec/Interaction Trees
- Jutta Degener's ANSI C grammar (C99)
- A note written by Jayadev Misra
- Constructive Completeness Proofs and Delimited Control
- A Mathematical Introduction to Logic
- The Lambda Calculus: Its Syntax and Semantics
- The Power of Parameterization in Coinductive Proof
- Andrei Popescu and Dmitriy Traytel, A Formally Verified Abstract Account of Gödel's Incompleteness Theorems (CADE 2019)
- Dale Miller and Gopalan Nadathur, Programming with Higher-Order Logic (Cambridge University Press, 2012)
- Dexter Kozen, A Completeness Theorem for Kleene Algebras and the Algebra of Regular Events (Information and Computation, 1994)
PnVRocqLib is distributed under the BSD 2-Clause License; see LICENSE. The exceptions are the following parts, which are distributed under the licenses of the works they are adapted from; the header of each file says which parts these are.
-
The parts of
ConstructiveFacts.vadapted from the Coq standard library : the GNU Lesser General Public License Version 2.1; seeLICENSES/LGPL-2.1.txt. -
The parts of
ConstructiveFacts.vadapted from an answer on Proof Assistants Stack Exchange : CC BY-SA 4.0; seeLICENSES/CC-BY-SA-4.0.txt. -
The section
UNBOUNDED_MINIMIZATIONofMuRec.v, adapted from Murec_Extraction : CeCILL v2.1; seeLICENSES/CeCILL-2.1.txt.
The following files contain code adapted from other projects, and their headers carry the notices of those projects:
-
ConstructiveFacts.v: std++ (BSD 3-Clause), the Coq standard library (LGPL 2.1), mathlib4 (Apache 2.0; seeLICENSES/Apache-2.0.txt), and an answer on Proof Assistants Stack Exchange (CC BY-SA 4.0). -
MuRec.v: Murec_Extraction (CeCILL v2.1). -
PrimRec.vandHilbertFol.v: goedel (MIT). -
ITree.vandBasicITreeTh.v: Interaction Trees (MIT). -
Aczel.v,SetTheory.v,ClassicalSetTheory.v, andClassicalCardinal.v: Ordinal (MIT).
BasicFol.v and STLC.v follow the developments of formalmetatheory-stoughton and Logos, respectively, and credit them in their headers.