Implement inductive claim learning with DSL integration and counterexample falsification #1012
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds automated discovery of interpretable network claims (e.g.,
degree >= k → pagerank_rank <= r) from multilayer network data with statistical support/coverage measures and lazy counterexample integration.Implementation
Core Package (
py3plex/claims/)types.py: Immutable Claim/Antecedent/Consequent dataclasses with evaluation and DSL round-tripgenerator.py: Quantile-based candidate enumeration (threshold/rank/top_p predicates)scorer.py: Support (P(B|A)) and coverage (P(A)) calculation with deterministic rankinglearner.py: Orchestrates DSL metric computation → candidate generation → scoring → provenanceDSL Integration
ClaimLearnerBuilderwith chainable API:.from_metrics(),.layers(),.min_support(),.seed()Q.learn_claims()following existing builder patternsClaim.counterexample(net)invokes engine Align comment formatting throughout codebase #34 on demandDeterminism & Provenance
Example Usage
Testing
Design Constraints Met
Q.learn_claims()entry)ClaimLearningErrorextendsAlgorithmError)Original prompt
This section details on the original issue you should resolve
<issue_title>ilp</issue_title>
<issue_description>You are GitHub Copilot working inside the py3plex repository. Implement “Learning Claims from Data” (feature #39) as a first-class, inductive reasoning capability that integrates tightly with the existing DSL v2 and the Counterexample Engine (#34).
NON-NEGOTIABLE REPO CONSTRAINTS
FEATURE GOAL
Automatically discover plausible, interpretable implication-style claims from multilayer network data, such as:
degree ≥ k → pagerank_rank ≤ r
Claims are:
This is inductive rule discovery for networks, not correlation mining.
MVP SCOPE (must ship)
degree, strength, layer_count, top_p(metric)
pagerank, betweenness_centrality
.claim_string.PUBLIC API (DSL v2–consistent)
Primary entry point: