MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / ModelRef

Class ModelRef

lean_py/z3/solver.py:510–541  ·  view source on GitHub ↗

Placeholder — Lean is a proof checker, not an SMT solver.

Source from the content-addressed store, hash-verified

508
509
510class ModelRef:
511 """Placeholder — Lean is a proof checker, not an SMT solver."""
512
513 def __getitem__(self, key: Any) -> Any:
514 raise NotImplementedError(
515 "Model extraction not supported: Lean cannot produce counter-models"
516 )
517
518 def eval(self, t: Any, model_completion: bool = False) -> Any:
519 raise NotImplementedError(
520 "Model extraction not supported: Lean cannot produce counter-models"
521 )
522
523 evaluate = eval
524
525 def decls(self) -> list:
526 return []
527
528 def __len__(self) -> int:
529 return 0
530
531 def __contains__(self, key: Any) -> bool:
532 return False
533
534 def __iter__(self):
535 return iter([])
536
537 def sexpr(self) -> str:
538 return "(model)"
539
540 def __repr__(self) -> str:
541 return "ModelRef(unsupported)"
542
543
544class Solver:

Callers 12

test_modelref_reprMethod · 0.90
test_eval_raisesMethod · 0.90
test_evaluate_aliasMethod · 0.90
test_decls_emptyMethod · 0.90
test_lenMethod · 0.90
test_containsMethod · 0.90
test_iterMethod · 0.90
test_sexprMethod · 0.90
test_model_ref_reprMethod · 0.90
ModelFunction · 0.85

Calls

no outgoing calls

Tested by 11

test_modelref_reprMethod · 0.72
test_eval_raisesMethod · 0.72
test_evaluate_aliasMethod · 0.72
test_decls_emptyMethod · 0.72
test_lenMethod · 0.72
test_containsMethod · 0.72
test_iterMethod · 0.72
test_sexprMethod · 0.72
test_model_ref_reprMethod · 0.72