def
MindFormal.CompanionTransactions.graphStep
{Q : Type u_1}
[Fintype Q]
[DecidableEq Q]
(edge : Q → Q → Prop)
[DecidableRel edge]
(S : Finset Q)
:
Finset Q
Equations
- MindFormal.CompanionTransactions.graphStep edge S = S ∪ {y : Q | ∃ x ∈ S, edge x y}
Instances For
theorem
MindFormal.CompanionTransactions.graphStep_mono
{Q : Type u_1}
[Fintype Q]
[DecidableEq Q]
(edge : Q → Q → Prop)
[DecidableRel edge]
:
theorem
MindFormal.CompanionTransactions.supportPath_append
{Q : Type u_1}
(P : Q → Q → ENNReal)
{n m : ℕ}
{x y z : Q}
(h : supportPath P n x y)
(k : supportPath P m y z)
:
supportPath P (n + m) x z
theorem
MindFormal.CompanionTransactions.supportPath_last
{Q : Type u_1}
(P : Q → Q → ENNReal)
{n : ℕ}
{x y : Q}
(h : supportPath P (n + 1) x y)
:
∃ (z : Q), supportPath P n x z ∧ 0 < P z y
theorem
MindFormal.CompanionTransactions.graphStep_orbit
{Q : Type u_1}
[Fintype Q]
[DecidableEq Q]
(P : Q → Q → ENNReal)
[DecidableRel fun (x y : Q) => 0 < P x y]
(S : Finset Q)
(n : ℕ)
(y : Q)
:
def
MindFormal.CompanionTransactions.graphDecision
{Q : Type u_1}
[Fintype Q]
[DecidableEq Q]
(edge : Q → Q → Prop)
[DecidableRel edge]
(S A : Finset Q)
:
An executable finite graph search. The generous bound is the number of subsets, so it also follows directly from the proved orbit certificate.
Equations
- MindFormal.CompanionTransactions.graphDecision edge S A = MindFormal.CompanionTransactions.orbitDecision (MindFormal.CompanionTransactions.graphStep edge) {T : Finset Q | ∃ y ∈ T, y ∈ A} S
Instances For
theorem
MindFormal.CompanionTransactions.graphDecision_correct
{Q : Type u_1}
[Fintype Q]
[DecidableEq Q]
(P : Q → Q → ENNReal)
[DecidableRel fun (x y : Q) => 0 < P x y]
(S A : Finset Q)
:
graphDecision (fun (x y : Q) => 0 < P x y) S A = true ↔ ∃ x ∈ S, ∃ y ∈ A, ∃ (n : ℕ), supportPath P n x y