Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Axis-specific typed dependency relations

Definition
Couret_STAT_TRANS_04_TypedDependencies_3df632007942

by alexcour · Nov 8, 2026 · Mathlib c5ea003 (Lean v4.30.0)

couret-programmecouret-unification-20261108

A typed edge records source, target and one of four kinds: proof, replay, novelty or documentary. The baseline policy has three impact axes. Proof edges carry semantic, replay and novelty reconsideration; replay edges carry replay only; novelty edges carry novelty only; documentary edges carry none. For a finite edge list, the relation on an axis contains exactly listed edges permitted on that axis. The corresponding seed predicate selects local changes relevant to that axis, and typed impact uses the imported reachability-based impact construction. These are formal review-propagation definitions; they do not equate impact with falsity or collapse the axes into one scalar status. This is the baseline policy, distinct from the separately versioned refined policy.

Definition code
import Mathlib.Data.Set.Basic
import Definitions.Def_Couret_STAT_TRANS_03_DependencyGraph_a12904c0d89d

/-!
# STAT-TRANS-04 — Typed dependencies

This layer distinguishes dependency kinds so that invalidation propagates
only along edges relevant to the affected axis.

No global scalar status is introduced.
No RH claim. No novelty claim.
-/

namespace CouretOaiBridge01
namespace StatusTransport

/-- A small first vocabulary of dependency kinds. -/
inductive DependencyKind where
  | proof
  | replay
  | novelty
  | documentary
  deriving Repr, DecidableEq

/-- The invalidation dimension being propagated. -/
inductive ImpactAxis where
  | semantic
  | replay
  | novelty
  deriving Repr, DecidableEq

/-- A typed dependency edge: target directly depends on source. -/
structure TypedEdge (α : Type*) where
  source : α
  target : α
  kind : DependencyKind

/--
Policy saying whether a dependency kind propagates a given invalidation axis.

First conservative policy:
* proof dependencies propagate semantic, replay, and novelty reconsideration;
* replay dependencies propagate replay only;
* novelty dependencies propagate novelty only;
* documentary dependencies propagate none of these three axes.
-/
def permits : ImpactAxis → DependencyKind → Bool
  | .semantic, .proof => true
  | .semantic, _ => false
  | .replay, .proof => true
  | .replay, .replay => true
  | .replay, _ => false
  | .novelty, .proof => true
  | .novelty, .novelty => true
  | .novelty, _ => false

/-- Relation induced by the typed edge list for one impact axis. -/
def TypedRelation {α : Type*}
    (edges : List (TypedEdge α)) (axis : ImpactAxis) (a b : α) : Prop :=
  ∃ e ∈ edges,
    e.source = a ∧
    e.target = b ∧
    permits axis e.kind = true

/-- Select the appropriate local seed predicate for one axis. -/
def SeedFor {α : Type*}
    (axis : ImpactAxis) (changes : List (ChangeAt α)) (x : α) : Prop :=
  match axis with
  | .semantic => SemanticSeed changes x
  | .replay => ReplaySeed changes x
  | .novelty => NoveltySeed changes x

/-- Typed graph impact for one axis. -/
def TypedImpacted {α : Type*}
    (edges : List (TypedEdge α))
    (axis : ImpactAxis)
    (changes : List (ChangeAt α))
    (x : α) : Prop :=
  Impacted (TypedRelation edges axis) (SeedFor axis changes) x



















end StatusTransport
end CouretOaiBridge01
Source
Alexandre Couret, https://github.com/alexcour/couret-finite-verifications/blob/d71ed2dafa9daa082f1a801b51d8a58abdb2c473/research/lean/CouretOaiBridge01/STAT_TRANS_04_TypedDependencies.lean; source file SHA-256 281beb127656947f4f40697a7241993ba3e4cf18764a18bef5cb9ba1952cd375

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me