GapCVP proof, part 08, continuation 02 #
def
GapCVP.CNFAnnotatedSourceCompleteBubbleSortTM.flatAnnotatedCompleteBubbleCount
(input : List Bool)
:
Internal support shared across GapCVP continuation modules.
Equations
Instances For
@[simp]
theorem
GapCVP.CNFAnnotatedSourceCompleteBubbleSortTM.flatAnnotatedCompleteBubbleSortState_count
(pending count sorted : List Bool)
:
Internal support shared across GapCVP continuation modules.
@[irreducible]
def
GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedOriginalBubbleSortAux
{T S : ℕ}
(pending sorted : List (CL.Clause T S))
:
Internal support shared across GapCVP continuation modules.
Equations
- One or more equations did not get rendered due to their size.
- GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedOriginalBubbleSortAux [] sorted = sorted
Instances For
theorem
GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedOriginalBubbleSortAux_perm
{T S : ℕ}
(pending sorted : List (CL.Clause T S))
:
(flatAnnotatedOriginalBubbleSortAux pending sorted).Perm (pending ++ sorted)
Internal support shared across GapCVP continuation modules.
theorem
GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedOriginalBubbleSort_pairwise
{T S : ℕ}
(pending : List (CL.Clause T S))
:
List.Pairwise (fun (first second : CL.Clause T S) => Encodable.encode first ≤ Encodable.encode second)
(flatAnnotatedOriginalBubbleSortAux pending [])
Internal support shared across GapCVP continuation modules.
noncomputable def
GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedCompleteBubbleSortedSourceComputable :
Internal support shared across GapCVP continuation modules.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
GapCVP.CNFAnnotatedSourceCompleteBubbleSortSourceCert.flatAnnotatedCompleteBubbleSortedSourceOutput_valid
{T S : ℕ}
(pending sorted : List (CL.Clause T S))
:
annotatedCompleteBubbleSortedSourceOutput
(CNFAnnotatedSourceCompleteBubbleSortTM.annotatedCompleteBubbleSortState
(CNFAnnotatedSourceClauseBubblePassTM.flatAnnotatedBundledClauseStream pending)
(List.replicate pending.length true)
(CNFAnnotatedSourceClauseBubblePassTM.flatAnnotatedBundledClauseStream sorted)) = CNFAnnotatedSourceClauseBubblePassTM.flatAnnotatedBundledClauseStream
(flatAnnotatedOriginalBubbleSortAux pending sorted)
Internal support shared across GapCVP continuation modules.