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
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. Interactive experiment · 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.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
I run python transport09.py.
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
I run python choix10.py.
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
Download bilingual starter kit ↓