BKAR forest formula — Challenge → repository bridges #
Shared statement vocabulary adapted from Audit/ForestFormula/Challenge.lean
in scottnarmstrong/bkarforestformula at commit
a07f44a534240fe6339558951dd78a19e4ef7c51, together with the bridge lemmas
connecting the Mathlib-based mirror to the repository flagship
BKAR.bkar_formula_forestIndex_cube_contributions.
Solution.lean proves the formula using this local vocabulary. The upstream
challenge placeholder is omitted from Lean Pool; no automated comparison with
that upstream statement is maintained here.
Bridge outline #
- Q1
acyclic_bridge— Mathlib graph acyclicitySimpleGraph.IsAcycliconedgeGraphis equivalent to the repository certificateIsAcyclicEdgeSet. Forward reusesAcyclicEdgeSetData.edgeSetGraph_isAcyclic; the reverse builds anAcyclicEdgeSetDatafrom graph acyclicity (the constructor extracted fromisAcyclicEdgeSet_insert_of_not_inSameComponent). - Q2
standardInterp_bridge— the threshold /sSupinterpolation point agrees with the repository path-minimumForest.standardInterp, viale_standardInterp_iff_thresholdConnectedand a graph-reachability ↔ threshold-connectivity comparison, closed bycsSupantisymmetry (with thesSup ∅ = 0boundary handled byReal.sSup_nonneg). - Q3/Q4
mixedPartial_bridge,cubeContribution_bridge— the verbatim mixed partial and the cube integral agree; choice-independence is discharged throughcubeContribution_eq_canonicalGrownForestForSupportandcubeContribution_eq_of_edges_eq. sum_bridgetransports the mirror sum to the repository sum alongindexEquiv.
Mirror vocabulary adapted from the pinned upstream challenge #
Equations
The simple graph carried by a finite edge set.
Equations
- BKARMirror.edgeGraph S = SimpleGraph.fromEdgeSet {x : Sym2 V | ∃ e ∈ S, ↑e = x}
Instances For
Q1: the forest index, indexed by an edge set whose carried graph is acyclic.
The finite edge set indexing a term of the forest formula.
Instances For
ForestIndex V is a Fintype (mirrors the repo's Classical-decidable route).
Equations
- One or more equations did not get rendered due to their size.
Look up an edge parameter, defaulting to 1 off the forest.
Instances For
The threshold subgraph: edges of J whose parameter is ≥ s.
Equations
- BKARMirror.thresholdGraph J u s = SimpleGraph.fromEdgeSet {x : Sym2 V | ∃ e ∈ J.edges, ↑e = x ∧ s ≤ BKARMirror.paramValue J u e}
Instances For
Q2: the BKAR interpolation point x^F(u)_e, as the largest threshold s ∈ [0,1]
at which the endpoints of e remain connected using only couplings ≥ s
(the bottleneck / max-min connectivity value; sSup ∅ = 0 handles disconnection).
Equations
Instances For
Replace one edge coordinate (verbatim).
Equations
- BKARMirror.updateCoord x e t = Function.update x e t
Instances For
Partial derivative along one edge coordinate (verbatim).
Equations
- BKARMirror.partialDeriv e ρ x = deriv (fun (t : ℝ) => ρ (BKARMirror.updateCoord x e t)) (x e)
Instances For
Q3: iterated mixed partial along a list of edges (verbatim).
Equations
- BKARMirror.mixedPartialList [] x✝ = x✝
- BKARMirror.mixedPartialList (e :: es) x✝ = BKARMirror.partialDeriv e (BKARMirror.mixedPartialList es x✝)
Instances For
The forest-indexed mixed partial (verbatim: over Finset.toList).
Equations
Instances For
Q4: the unit cube [0,1]^{E(J)}.
Instances For
Q4: the ordinary BKAR cube contribution of a forest index (direct, choice-free).
Equations
- BKARMirror.cubeContribution J ρ = ∫ (u : ↥J.edges → ℝ) in BKARMirror.unitCube J, BKARMirror.mixedPartial J ρ (BKARMirror.standardInterp J u)
Instances For
Q1 bridge: mirror graph acyclicity ↔ repository certificate #
The mirror graph on an edge set is definitionally equal to the repository's
EdgePath.edgeSetGraph.
Q1 bridge. Mirror graph acyclicity ↔ repository acyclicity certificate.
The forest-index types are equivalent (from the acyclicity iff).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Q2 bridge: threshold sSup interpolation ↔ repository path-minimum #
Reachability in edgeSetGraph S is the existence of a simple edge path.
Threshold connectivity is the existence of a simple path in the threshold edge set.
The mirror threshold graph coincides with the repository threshold-edge graph.
Threshold-graph reachability matches repository threshold connectivity.
Q2 bridge. The mirror threshold / sSup interpolation point agrees with
the repository path-minimum Forest.standardInterp, on the unit cube.
Q3/Q4 bridges and choice removal #
Q3: the mirror iterated mixed partial coincides with the repository one.
The forest mixed partial agrees with the mirror mixed partial.
Q2 + Q3 + Q4 bridge. The mirror direct cube contribution equals the
repository choice-routed ForestIndex.cubeContribution.
Configuration and sum bridges #
The all-ones config agrees (definitional).
Sum bridge. Transport the mirror sum to the repository sum via indexEquiv.