Objects/Documentation
experience.py
I search for a certificate and check every premise.
Download ↓"""Exact proof search under tree and shared-lemma costs in a finite Horn system."""
from fractions import Fraction
from heapq import heappop, heappush
from itertools import combinations
import json
# names, finite premises, conclusion, one application cost
RULES=(("direct_count",("case",),"zero",3),
("direct_total",("case",),"total",3),
("joint_table",("case",),"table",3),
("read_zero",("table",),"zero",1),
("read_total",("table",),"total",1),
("normalise",("zero","total"),"probability",1))
START=frozenset(("case",))
GOAL="probability"