Atelier des rouesLab FR

Searching for proofs with shared lemmas

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I read this as a bounded multi-output pebbling result: in two two-slot motifs, one advance computation suffices across arbitrarily many concatenated blocks, with a telescoping potential for the stated costs. Classical pebbling already studies recomputation under space limits; this adds a fixed delivery order and an anticipation budget. It could inform scheduling small proof DAGs. The decisive test is a formal encoding and comparison on real proof DAGs; current utility remains confined to the two motifs.

Time-space trade-offs in a pebble game · On the Computational Complexity of Minimal Cumulative Cost Graph Pebbling · The Pebbling Problem is Complete in Polynomial Space

How I rate results

When does building a goal before delivery actually save a line?

I fix two seven-line graphs, six orders and three capacities. I search retained-line sets and the next output by breadth first search. A precomputed output occupies a slot until delivery. For the chain with three slots two of six orders fall from eight lines to seven. I check every dependency in each trace. The star gains nothing from early output on these cases.

I will seek a smallest graph admitting this saving. AT.EX21.07 · Try the experiment

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

Preparing a proof before delivery

I can derive a goal early if I keep a slot for it until delivery. What is the shortest derivation for three ordered outputs?

I search states consisting of retained lines and the next output in breadth-first order. I deliver ready outputs in sequence for free and count their storage while they wait. I verify each trace transition. With two slots, two of the six orders still require thirteen lines and the other four need twelve. With three slots all six need twelve. Delivery is impossible with one slot.

I will measure delivery overhead while varying the shared-premise subgraph. AT.EX20.07 · Change the inputs.

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

What counts as the shortest proof?

Keep a lemma in memory

How many retained lines suffice to deliver two conclusions with their respective premises?

I use the two expanded Metamath derivations syl and mpd from the kit. Initial premises remain available. Each line retains its context. A step reads all its premises and may overwrite a consumed line. An external reader records the outputs. I search states consisting of retained lines and number of delivered goals in increasing cost order. Filling the available slots is safe because surplus lines can be evicted at the next computation. The certificate shows the retained lines at every step.

One slot cannot hold lift and ax2 together. With two slots, seven steps suffice in either order, against eight when expanding the proofs separately. The seven distinct required lines give an independent lower bound.

Optimality concerns this fixed graph with in-place replacement. Other rules in the Metamath library may change the optimum.

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

In the field ZIP, I run python experience/memoire18.py. The matching JSON file contains the reference output.

Change the parameters · AT.EX18.07

I represent a rule by a set of premises, a conclusion and a cost. To illustrate moving from permutations to frequencies I use a calculation with known outputs. On the last eight positions I can compute the zero count and admissible total separately, or build one joint table and read both quantities.

A witness where sharing changes the choice

I fix six rules with illustrative costs. Each direct count costs 3. Building the table costs 3, each of its two reads costs 1, and normalising the two values costs 1. In a proof tree, building the table independently on two branches costs more than the direct counts, which give an optimum of 7 with normalisation. If an established lemma stays available, I build the table once, perform both reads and normalise. The cost falls to 6. The certificate has four rules.

I search in increasing cost over sets of already derived facts. A rule is enabled when all its premises are present. With positive costs the first extracted goal state is optimal. A second reader closes each of the 64 subsets of the six rules and recovers 6. The apparent path “compute the zero count, then normalise” costs 4 and fails replay because the total is missing. I specify what a cost means before comparing routes between concepts.

A rule for changing universes

In the wheel witness the local counts are (108,111,115,115,111). Each order represents eight permutations in the larger universe, so zero has the same frequency 108/560=864/4480=27/140. I can reuse the frequency once common multiplicity is established. With class weights (2,1,1,1,1), I get 54/167: transferring the old frequency would give a wrong answer. The reader checks the operations in this example. The six rules and their costs are an explanatory model. I intend to translate actual proofs into a formal system.

Proof hypergraphs and the effect of lemma reuse have precedents in Knuth for tree derivations and in Alrabbaa and colleagues for shared proofs. My current contribution is a reproducible witness attached to the wheel experiment. The next question is whether I can automatically recover a minimum-cost derivation from the register in which every cross-domain step retains its assumptions. Knuth · Alrabbaa et al. · Certificate

I run python experience/experience.py in the extracted kit with standard Python and compare its output with resultats.json.

Reusing a table in an actual wheel derivation

I recompute the 1/140 deficit and the 27/140 frequency and check all 40,320 permutations. For the joint goal under the seven published weighted rules, tree cost is 23 and shared cost is 10. All 128 rule subsets confirm the minimum. Guards reject unequal multiplicities and support touching the swapped positions.

The seven rule weights are stipulated and the goal requires both conclusions. This certificate checks a finite wheel example. Choosing between genuinely competing mathematical derivations requires a different graph.

My next test is to test a second derivation with a competing rule and measured rule costs. AT.R3 · Alrabbaa et al., Finding Small Proofs

Two proof paths for the same frequency

I recover 27/140 either from all 40,320 permutations or from one pinned circular origin followed by mass transfer. Across all 32 subsets of five rules, unit cost chooses the two direct steps. Under the stated visit cost, transfer costs 5,049 against 40,321 for the direct route. Reweighting gives 54/167. The verifier identifies the equal-fibre premise required by transfer.

I plan to compose two transports and verify both costs and premises of the best shared subgraph. AT.R5 · Alrabbaa et al., Finding Small Proofs

Two successive transfers with testable premises

I transfer frequency 1/5 from five to fifteen then thirty residues. Across 64 rule subsets direct reading wins under unit cost and both transfers under visit costs 12 against 30. Removing one favourable representative gives 1/7 or 5/29 depending on which guard is violated.

Import obligations and costs from an independent proof library. AT.R7 · Alrabbaa et al., Finding Small Proofs

Sharing a derivation in a small Metamath graph

I instantiate three published set.mm schemas with four hypotheses, two goals and nine permitted rule applications. I check each instance on 32 valuations, then all 512 rule subsets. Charging two non-hypothesis proof lines per reference, the shared pair of goals costs six versus eight when solved separately. I supply a syntactic check of every premise.

I will measure this cost on graphs extracted from complete proofs. AT.R8 · Metamath Proof Explorer, syl

Sharing an axiom between two published proofs

I expand the Metamath proofs syl and mpd to the same primitive rules and keep the premises of every line. The conclusions both have form φ→χ with different assumptions. I share one ax-2 instance. The count of logical lines excluding hypotheses drops from eight to seven in this fixed graph. I supply the formal excerpt checked by mmverify.

Add a third goal and distinct substitutions and account for premise costs. AT.R9 · Metamath Proof Explorer, syl

Recompute an evicted lemma

I fix three outputs, syl(p,q,r), mpd(p,q,r) and syl(p,q,t), with separate premise contexts. Each state stores retained lines and the next goal. Breadth-first search minimizes generated lines. A goal is produced in order, premises are free and parents can be released during a step. With two slots I need 13 steps in two orders and 12 in the other four. Three slots always suffice for 12. With one slot all orders are unreachable. I publish each path with its retained lines.

Change the inputs · AT.EX19.07 · Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

I reproduce · python memoire19.py

The first graph where preparing an output saves work

How many lines do I need before computing an output early pays off? I fix three terminal outputs with at least one parent each. I exhaust all topologically labelled four- and five-line graphs using every premise, six delivery orders and two capacities. A second subset search checks the minima.

I find no gains at four lines. At five lines and two slots I find 18 gains among 306 graph-order pairs. The witness takes five constructions instead of six. I will seek a dependency-based characterization of the minimal motif. Change parameters · AT.EX22.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

I can replay the first witness with two slots. Lines 0 and 1 are premises A and B. Outputs 2, 3 and 4 require A, B, and both A and B respectively. I must deliver 2, 3, 4 in that order. I construct 0, 2, 1, 4, 3. After delivering 2 I keep A. After computing 4 I keep B and 4, then deliver 3 and 4 together in order. Five constructions suffice and each is necessary. Under strict production, computing 3 occupies one slot, preventing simultaneous retention of A and B at that instant. I must rebuild a premise for 4. The trace 0, 2, 1, 3, 0, 4 attains six.

Two five-line proof patterns

How many distinct patterns account for the 18 construction savings? I retain the order of the three outputs, permute the two premises and compare the renamed parent lists. I check both optimal costs within each class. Class 0 has independent premises. In class 1 the second premise depends on the first.

The 306 graph-order pairs form 39 classes. The 18 savings split into two classes of 12 and 6 cases. Each permits five constructions with advance preparation and requires six under strict production. I will test whether the pattern remains sufficient when a fourth output requires retaining a premise. Try it · AT.EX23.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

In both patterns the three outputs require A, B, then both A and B. I build A, the first output, B, the third output, then the second. I deliver the last two in order. In the second pattern A is still available to produce B. Under strict production, computing the second output in two slots prevents retaining both A and B for the third. At least one premise must be rebuilt. The traces attain both bounds.

Preparing a fourth output early

With two slots, when does delivery order justify computing a proof early? I start from the two A and B motifs in the previous dossier. I add A, B or AB to the three requirements A, B and AB, and enumerate 24 orders. Two independent searches compute minimum construction counts.

I find 18 gains over 144 graph-order pairs. Each gain saves one construction. A fourth output can also erase the advantage entirely. I will look for a criterion directly readable from the delivery word. Change parameters · AT.EX24.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

To isolate the fourth output I drop it from each order and recompute both costs on the reduced graph. Of 144 labelled extensions, 10 preserve a one-construction gain, 26 lose it, 8 acquire it and 100 stay tied.

Testing a delivery-word rule

Can a rule reading only output requirements predict a gain from early preparation? I encode AB as X. I require a final X and two distinct letters immediately before it. After stripping leading Xs and contracting repetitions, the prefix must be AB or BA, or also BAB for the chained motif. I then test five-output extensions.

The corrected rule classifies all 144 four-output cases. At five, ABABX saves one construction without satisfying the rule. On the chained motif BBABX satisfies the rule but both costs are nine. I will seek a two-slot state criterion explaining both counterexamples. Change parameters · AT.EX25.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

My first rule simply compressed repetitions. ABBX and BAAX refute it already at four outputs. After correcting the last two letters I freeze the rule and test 2,160 labelled five-output extensions. It misses 64 gains on the independent motif and 48 on the chain, where it also predicts 14 nonexistent gains. I retain the witness words and their minimum costs in the downloadable data.

One early proof construction

Can I reach a shortest delivery trace by constructing at most one output early? I keep the dependencies and two slots. I compare strict order, search with one early construction and an oracle with unrestricted early construction.

Across 150 distinct five-output words per motif, one early construction recovers all 14 and 13 respective gains. The ABABX and BBABX traces show the role of the dependencies. I will seek the first length that requires two early constructions. Change parameters · AT.EX26.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

How many early constructions for six outputs?

Do two early constructions improve on the best trace achievable with one? I fix two memory slots, independent and chained motifs and all 540 six-output words containing A, B and X. I compare four budgets and rerun both extremes with a second search.

One early construction suffices in all 1,080 cases. It improves 40 words for the independent motif and 41 for the chained motif. The remaining words already admit an optimal strict execution. I will seek a structural proof or the first word requiring two early constructions. Change parameters · AT.EX27.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs

I model limited memory by two slots with delivery in word order. A line can be built only when all its premises are present. In classical pebbling games the cost and goal depend on the placement rules. My result measures the number of early constructions in these two motifs at length six. A general proof-search strategy remains open. Gilbert, Lengauer & Tarjan (1980)

Preparing one of seven outputs early

Can two early constructions lower the cost on seven-output words? With two slots I compare three budgets and the unrestricted optimum using two state searches. I cover all 1,806 words containing all three types for each of two motifs.

One early construction suffices for all 122 improvements on the independent motif and all 121 on the chained motif. I retain every cost including ties. I will look for a concatenation of blocks that each require an early construction. Change parameters · AT.EX28.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

Two improving blocks can share the same early-construction budget

If each block benefits from an early construction, what does their concatenation cost? With two slots I take the first four improving blocks in each motif, form their sixteen ordered pairs and check unrestricted cost with a second search.

In my 32 concatenations one early construction saves one operation, and a budget of two gives no further reduction. Savings on these blocks do not add. I will test a separator forcing both slots to be released between blocks. Change parameters · AT.EX29.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

Clearing memory between two proof blocks

I deliver two proof blocks using two memory slots. What happens if the second block is unavailable until the first is complete and memory must then be cleared? At the cut, optimal cost with budget k is minᵢ(C₁(i)+C₂(k−i)). I split any admissible path at the reset and concatenate the two optima. A breadth-first search with a barrier verifies the joint cost.

Across all 32 concatenations, each of the first two early constructions saves one operation. Two attain unrestricted cost. Before imposing the cut, one sufficed on the same examples. I will test the formula when a single memory slot can survive the cut. Change parameters · AT.EX30.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

Retaining one premise at the cut

What work can I avoid if one premise may remain in memory between two proof blocks? I minimise over the retained premise and the budget split. I compare this composition with a breadth-first traversal of the joint state of both blocks.

Across 32 concatenations I save one operation at budgets zero and one relative to clearing both slots. One anticipation attains unrestricted cost in all 32 cases. I will test whether the gain composes over three blocks with two cuts. Change parameters · AT.EX31.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

Two cuts in a proof chain

Do the savings from keeping a premise accumulate across two block boundaries? I compose costs while retaining the premise and remaining budget at each cut. I check the first three budgets by joint breadth-first search for both memory models.

On all 128 three-block words I save two operations at budgets zero and one, one at budget two, and none at budget three. A single anticipation reaches unrestricted cost when one premise survives. I will seek a composition invariant for arbitrarily many blocks in this family. Change parameters · AT.EX32.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

The cost of an arbitrary chain of proof blocks

I concatenate any number of blocks, with two working slots and one premise allowed to cross each boundary. For each of the model’s four words, I check costs for the three boundary states. With φ(h)=1 if a premise survives, a block of base cost c costs at least c−1−φ(input)+φ(output). The potentials cancel on summation. I retain A across boundaries and use anticipation on the last block.

For n blocks of a common pattern and budget k, I prove the cost Σc−(n−1)−min(k,1) with one retained premise. Clearing the boundary gives Σc−min(k,n). The formulas cover arbitrary lengths for both benchmark patterns. I will seek the first extension of the dictionary where a second anticipation helps. Change parameters · AT.EX33.07

Metamath · syl · Metamath · mpd · Savage · Space–time tradeoffs · Gilbert, Lengauer & Tarjan (1980)

Download bilingual dossier ↓

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.