OAI/Combinatorics/MatchingCount/Model.lean
18 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.MatchingFPRAS.GraphInputline 8Source documentation
Each unordered edge is represented once, by increasing endpoints.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:8 (same declaration text).
structure GraphInput where …
- def
OAI.MatchingFPRAS.Perfectline 14Source documentation
Exactly one selected edge is incident to every vertex.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:14 (same declaration text).
def Perfect (G : GraphInput) (M : Finset (Fin G.n × Fin G.n)) : Prop := …
Mentions: OAI.MatchingFPRAS.GraphInput
- def
OAI.MatchingFPRAS.perfectMatchingsline 17Also declared: ComparatorChallenges/MatchingFPRAS.lean:17 (same declaration text).
- def
OAI.MatchingFPRAS.Zline 23Source documentation
The exact unweighted count, including the empty graph.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:23 (same declaration text).
noncomputable def Z (G : GraphInput) : ℕ := (perfectMatchings G).card
Mentions: OAI.MatchingFPRAS.GraphInput, OAI.MatchingFPRAS.perfectMatchings
- abbrev
OAI.MatchingFPRAS.Symbolline 25Also declared: ComparatorChallenges/ContingencyTables.lean:7 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:25 (same declaration text).
- def
OAI.MatchingFPRAS.encodeNatline 28Source documentation
Binary numeral followed by a delimiter. Tape blank is 0; bits use 1 and 2.
Also declared: ComparatorChallenges/ContingencyTables.lean:10 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:28 (same declaration text).
def encodeNat (n : ℕ) : List Symbol := …
Mentions: OAI.MatchingFPRAS.Symbol
- def
OAI.MatchingFPRAS.encodeIntline 31Also declared: ComparatorChallenges/ContingencyTables.lean:13 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:31 (same declaration text).
- def
OAI.MatchingFPRAS.encodeRatline 35Source documentation
A rational encoded by its reduced numerator and positive denominator.
Also declared: ComparatorChallenges/ContingencyTables.lean:17 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:35 (same declaration text).
def encodeRat (q : ℚ) : List Symbol := encodeInt q.num ++ encodeNat q.den
Mentions: OAI.MatchingFPRAS.Symbol, OAI.MatchingFPRAS.encodeInt, OAI.MatchingFPRAS.encodeNat
- def
OAI.MatchingFPRAS.encodeInputline 38Source documentation
Explicit sparse graph encoding, then the two rational parameters.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:38 (same declaration text).
def encodeInput (G : GraphInput) (ε δ : ℚ) : List Symbol := …
Mentions: OAI.MatchingFPRAS.GraphInput, OAI.MatchingFPRAS.Symbol
- structure
OAI.MatchingFPRAS.RandomMachineline 45Source documentation
A uniform randomized Post-Turing machine: a single finite transition table.
Also declared: ComparatorChallenges/ContingencyTables.lean:20 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:45 (same declaration text).
structure RandomMachine where …
- structure
OAI.MatchingFPRAS.Configurationline 50Also declared: ComparatorChallenges/ContingencyTables.lean:25 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:50 (same declaration text).
- def
OAI.MatchingFPRAS.tickline 56Source documentation
A halted configuration is absorbing. Each nonhalting tick is exactly one write or one move, or the detection of halt.
Also declared: ComparatorChallenges/ContingencyTables.lean:31 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:56 (same declaration text).
def tick (A : RandomMachine) (c : Configuration A) (bit : Bool) : Configuration A := …
Mentions: OAI.MatchingFPRAS.RandomMachine, OAI.MatchingFPRAS.Configuration
- def
OAI.MatchingFPRAS.initialline 66Also declared: ComparatorChallenges/ContingencyTables.lean:41 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:66 (same declaration text).
- def
OAI.MatchingFPRAS.runline 70Source documentation
Bounded execution on a finite prefix of the random tape.
Also declared: ComparatorChallenges/ContingencyTables.lean:45 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:70 (same declaration text).
def run (A : RandomMachine) (input : List Symbol) {t : ℕ} (bits : Fin t → Bool) : Configuration A := …Mentions: OAI.MatchingFPRAS.RandomMachine, OAI.MatchingFPRAS.Symbol, OAI.MatchingFPRAS.Configuration
- def
OAI.MatchingFPRAS.Outputsline 74Also declared: ComparatorChallenges/ContingencyTables.lean:49 (same declaration text), ComparatorChallenges/MatchingFPRAS.lean:74 (same declaration text).
- def
OAI.MatchingFPRAS.timeBoundline 81Source documentation
A fixed-degree polynomial in input bits, ε⁻¹, and log δ⁻¹. Natural ceilings and binary ceiling-log change this bound only by constants.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:81 (same declaration text).
def timeBound (C d : ℕ) (G : GraphInput) (ε δ : ℚ) : ℕ := …
Mentions: OAI.MatchingFPRAS.GraphInput
- def
OAI.MatchingFPRAS.goodTapesline 84Also declared: ComparatorChallenges/MatchingFPRAS.lean:84 (same declaration text).
- def
OAI.MatchingFPRAS.MainStatementline 94Source documentation
A uniform approximation scheme using independent fair bits. All tapes halt within the fixed polynomial bound and return a nonnegative rational. A zero count always produces encoded zero.
Also declared: ComparatorChallenges/MatchingFPRAS.lean:94 (same declaration text).
def MainStatement : Prop := …