Objects/Documentation
memoire18.py
Keep a lemma in memory · Reproducible Python implementation.
Download ↓"""Minimum derivations with bounded retained lines in the syl/mpd proof DAG."""
import json
from collections import deque
from itertools import combinations
# Given premises are free, with separate immutable contexts for the two outputs.
NAMES=("ax1","ax2","lift","syl_a2i","syl","mpd_a2i","mpd")
PARENTS=((),(),(0,),(1,2),(3,),(1,),(5,))
def run(slots, order):
if not 1<=slots<=6 or order not in (0,1):
raise ValueError("unsupported storage or goal order")
goals=(4,6) if order==0 else (6,4)
start=(0,0)
queue=deque([start])