Repository navigation
Misc minor fixes in code and documentation - #218
Merged
Merged
Conversation
…reported by Chris Walton, mostly names that no longer match the sources. Removed the entries for functions and theorems that are no longer in the system (COMB2_QCONV, LIMITED_REWRITE_CONV, EQ_REFL_T, simple_new_specification, MINISCOPE_FORALL, EQ_ABS_CONV, DELAMB_CONV, GEN_PAIR_TAC, EQ_SUC, SUB_ELIM_CONV, SUB_ELIM_TAC, PRE_ELIM_CONV, PRE_ELIM_TAC, DIVMOD_ELIM_TAC, WF_INDUCT_THEN, mangle, the primed numeral conversions such as NUM_ADD_CONV', and REAL_NEGNEG, a duplicate of REAL_NEG_NEG), and noted that SINGLE_DEPTH_CONV, NEG_DISCH, CONTRAPOS, EXT, SELECT_INTRO, SELECT_ELIM and PAIRED_BETA_CONV are now only in Examples/hol88.ml. Replaced USE_ASSUM by USE_THEN, mono_tactics by monotonicity_theorems, PROP_CNF_CONV and PROP_DNF_CONV by CNF_CONV and DNF_CONV, and measure by MEASURE; updated the arguments of PATH_CONV and BETAS_CONV; fixed the typos ONCE_DEPTH_SQCONF, DEPTH_CONV for DEPTH_SQCONV, NUM_MID_CONV, ZRECSPACE_ZBOT, pioritize_num and the result of EXT; and noted that THENQC, THENCQC, REPEATQC and the QCONV depth conversions are local to equal.ml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…name in it and in VERYQUICK_REFERENCE.txt against a session with the current sources, and every theorem shown against the current theorem. Updated the statements of 26 theorems that have changed: 19 DIV and MOD theorems such as MOD_MULT and DIV_LE that no longer need hypotheses ~(n = 0), since m DIV 0 = 0 and m MOD 0 = m, as well as SUB_ELIM_THM, PRE_ELIM_THM, DIVMOD_ELIM_THM, ARITH_LE, ARITH_GE, ARITH and EX_MEM. Noted which of the documented functions are local and cannot be called directly (NUM_DIVMOD_CONV, the helpers of MONO_TAC and of the inductive definitions package, SPLIT_TAC, FOL_CONV, the simplifier's IMP_REWRITES_CONV and GEN_SUB_CONV, and sucivate), removed SCRUB_EQUATION, which no longer exists, described the subprover satisfy_prover now in the simpsets, and mentioned the congruence rules for nsum and sum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h an unapplied or partially applied equality, such as ALL2 (=) l m, when some assumption has a variable in head position, e.g. !f. f 1. In that case ASM_FOL_TAC gives every head arity 0 except "=", which keeps arity 2, and for an "=" with fewer than two arguments it tried to insert a negative number of applications. Such an "=" is now treated like the other heads, so that for example MESON[] proves (!g. P g ==> Q (g 1)) /\ P (=) ==> Q ((=) 1). Nothing changes for the goals on which ASM_FOL_TAC did not fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…theses of the assumptions either, as X_GEN_TAC and CHOOSE_TAC already do. It only checked their conclusions, so it accepted a variable free just in the hypotheses of an assumption, and if that assumption was used, the justification failed later in CHOOSE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ead of every time a theorem is added to a simpset. Parsing during simplification made the numbering of the invented type variables of later quotations, as in ?123, depend on how much simplification had been done before. The results of simplification are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…IMP_TAC, ASM_SIMP_TAC and their variants, skip a pass that cannot change anything. After simplifying the operator and operand of a combination, it simplified the whole result again from the top, traversing every subterm once more, and that again at each enclosing level. When no congruence rule is stored for the combination or for the result, the operator and operand of the result are already fully simplified, so now only the rewrites at the top of the result are tried. The pass is kept when a congruence rule may apply, since such a rule may leave a subterm alone, as the rules for sums leave the range, or give it a new context. The results are unchanged, apart from the names of the genvars made afterwards, which are numbered in order, and simplification takes about a third less time: for example the 21030 calls of SIMPLIFY_CONV made while loading Multivariate/make.ml take 81 seconds instead of 124. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chronological order above the entry for "define_type" of 16th November. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er the body of an abstraction \v. b that is going to be redone: when a fact of the context about a free variable named like v is used, ABS fails and the body is simplified again with a genvar for v, so under n such binders it took up to 2^n complete passes. Now a pass stops at the first step that has such a hypothesis and is sure to be part of its result, i.e. no other pass in progress, nor a congruence rule that can still fail, lies in between. The results are unchanged, apart from the names of the genvars made afterwards; for example simplifying !x1 ... x10. f x1 ... x10 + 0 = g x1 ... x10 with the facts x1 = 0, ..., x10 = 0 now takes 0.30 seconds instead of 28. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y their decision procedure with only the arithmetic assumptions that share an atom with the goal, directly or through other such assumptions, and only if that fails with all the assumptions that are not universally quantified, as before (the new GEN_ASM_ARITH_TAC). So a call fails only if the old tactic fails, and in the libraries tried every call had the old outcome. In a big context it is much faster: for example the 616 calls of ASM_ARITH_TAC made while loading the libraries of the words, groups and rings and the metric spaces take 28 seconds instead of 46, and the 399 calls of ASM_REAL_ARITH_TAC 2.8 seconds instead of 6.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ml, which was left in place when the theorem was type-generalized (see the CHANGES entry of 20th October 2025), so that it still shadowed the general version. The name now gives the general theorem, whose result can be a word of any type; the removed one was the special case where it has the type of the argument. Nothing in the tree uses the theorem. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chronological order above the entries of 19th November. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
It seems the update in X_CHOOSE_TAC breaks the Poincare proof - but I can fix the Poincare proof. The other benchmarks are still running. |
Contributor
|
Modulo the failure, the speedups look pretty good! :) https://hol-light.github.io/benchmark-results/compare.html?baseline=2026-11-23-1a0c0e6b182cd9e271946ba8d78f7942619f4acb&comparison=2026-11-23-049f088335ccf04217ad385b607817a22387ca32 |
jrh13
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.