Objects/Documentation
limites23.py
Checking the anchor hypothesis
Download ↓"""Exact scope controls for the three-law theorem, including a non-partition anchor."""
from fractions import Fraction as F
import json
from commun23 import solve
from deficience21 import tv,push,certificate
from verifier21 import check
def study():
a=[F(1,2),F(1,3),F(1,6)];b=[F(1,6),F(1,3),F(1,2)]
k=[[F(3,4),F(0),F(1,4),F(0)],[F(0),F(1,4),F(1,2),F(1,4)],[F(1,4)]*4]
q,r=push(a,k),push(b,k);p=[F(1,2),F(1,4),F(1,4),F(0)]
s=[a,b,b];t=[q,p,r];z=solve(a,b,*t);cert=certificate(s,t);assert check(s,t,cert)==z['value']
anchored=dict(source=s,target=t,anchor=k,certificate=cert,construction=z)
s=[[F(1)]]*3;t=[[F(i==j) for j in range(3)] for i in range(3)]
cert=certificate(s,t);assert check(s,t,cert)==F(2,3)