Atelier des rouesLaboratoire EN
Objets/Documentation

memoire18.py

Conserver un lemme en mémoire · Programme Python reproductible.

Télécharger ↓
"""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])

Lire dans son contexte

Commentaires

Les commentaires en français et en anglais sont réunis ici.

La discussion reste consultable. J’ouvrirai les participations dès que la protection antispam sera configurée.