OAI/Combinatorics/ParityLifts/GraphPrograms.lean
19 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.ParityWL.Complexity.PolyProgram.finite2line 7 - def
OAI.ParityWL.Complexity.PolyProgram.choiceEntryline 15 - def
OAI.ParityWL.Complexity.PolyProgram.choiceBoundline 28 - def
OAI.ParityWL.Complexity.PolyProgram.choiceLabelline 38 - def
OAI.ParityWL.Complexity.roleCodeline 47Source documentation
The finite role data is compiled into finite control, independent of table size.
noncomputable def roleCode {t : ℕ} [NeZero t] : TemplateVertex t → Bool × (Fin t × Fin t) | .inl i => (false,(i,i)) | .inr h => (true,(h.1.1.1.1,h.1.1.1.2))Mentions: OAI.ParityWL.TemplateVertex
- def
OAI.ParityWL.Complexity.PolyProgram.indexSizeline 51 - def
OAI.ParityWL.Complexity.PolyProgram.verticesline 70 - def
OAI.ParityWL.Complexity.baseRuleline 81Source documentation
0 and 1 are constants; 2 compares two labels; 3 and 4 compare a label and a helper value.
def baseRule {t : ℕ} [NeZero t] : TemplateVertex t → TemplateVertex t → Fin 5 × (Fin t × Fin t) | .inl i, .inl j => (if i=j then 0 else 2,(i,j)) | .inl i, .inr h => if i=h.1.1.1.1 then (3,(i,h.1.1.1.2)) else if i=h.1.1.1.2 then (3,(i,h.1.1.1.1)) else (if i=h.1.2 then 1 else 0,(0,0)) | .inr h, .inl i => if i=h.1.1.1.1 then (4,(i,h.1.1.1.2)) else if i=h.1.1.1.2 then (4,(i,h.1.1.1.1)) else (if i=h.1.2 then 1 else 0,(0,0)) | .inr _, .inr _ => (0,(0,0))Mentions: OAI.ParityWL.TemplateVertex
- def
OAI.ParityWL.Complexity.evalRuleline 93 - lemma
OAI.ParityWL.Complexity.eval_baseRuleline 99 - def
OAI.ParityWL.Complexity.edgeRuleline 115 - lemma
OAI.ParityWL.Complexity.eval_edgeRuleline 120 - def
OAI.ParityWL.Complexity.PolyProgram.evalRuleline 127 - def
OAI.ParityWL.Complexity.PolyProgram.edgeTestline 162 - def
OAI.ParityWL.Complexity.ChoiceData.matrixline 177 - def
OAI.ParityWL.Complexity.PolyProgram.matrixRowline 180 - def
OAI.ParityWL.Complexity.PolyProgram.matrixRowsline 191 - def
OAI.ParityWL.Complexity.PolyProgram.rowMatrixline 196 - def
OAI.ParityWL.Complexity.PolyProgram.matrixline 201