Buckets:
cfahlgren1/math / lean /OAI /Combinatorics /EditApproximation /Refinement /ComputedQueryExecution.lean
| import OAI.Combinatorics.EditApproximation.Refinement.ComputedQueryCorrect | |
| namespace OAI | |
| namespace EditApproximation | |
| attribute [local instance] queryArityNeZero queryRoundsNeZero | |
| /-- The executed mixed binary memo at the final refinement root. -/ | |
| def computedQueryMemoResult (source target : List ℕ) (N : ℕ) | |
| (occurrence : BinaryMemo PositionCounts) (symbolBits positionBits : ℕ) | |
| (input : ComputedFamilyInput source target N) := | |
| rankedBitMemoEvaluate (SourceRanked.rank ChargedPhysicalRequest.rank) | |
| (computedQueryMemoNormalized source target N occurrence symbolBits positionBits input) | |
| (16384 * inputHeight N + 5) (computedFamilyMemoCode source target N (inputHeight N ^ 2)) | |
| (.inr (localFinalRootRequest target N (integerParameters N).T (integerParameters N).S | |
| (inputHeight N) (Nat.two_pow_pos _) (finalTargetState target.length))) .empty | |
| def computedQueryLocalWork (source target : List ℕ) (N : ℕ) | |
| (occurrence : BinaryMemo PositionCounts) (symbolBits positionBits : ℕ) | |
| (input : ComputedFamilyInput source target N) : ComputedFamilyMemoKey source target N → ℕ := | |
| rankedBitLocalWork (SourceRanked.rank ChargedPhysicalRequest.rank) | |
| (computedQueryMemoNormalized source target N occurrence symbolBits positionBits input) | |
| section Correct | |
| variable (source target : List ℕ) (N : ℕ) | |
| (occurrence : BinaryMemo PositionCounts) (symbolBits positionBits : ℕ) | |
| (input : ComputedFamilyInput source target N) (hN : 0 < N) | |
| (hell : 2 ^ 1000 ≤ inputSmallLog N) (hf : 3 ≤ smallLogExponent N) | |
| (hsize : source.length + target.length ≤ N) | |
| (hMass : Nat.size (localOnlineMassBound (integerParameters N).M (integerParameters N).P | |
| (inputHeight N)) ≤ inputHeight N) | |
| (hs : ∀ z ∈ source, z < 2 ^ symbolBits) (ht : ∀ z ∈ target, z < 2 ^ symbolBits) | |
| (hp : target.length ≤ 2 ^ positionBits) | |
| (htable : occurrence = occurrenceBuild symbolBits positionBits target.zipIdx) | |
| include hN hell hf hsize hMass hs ht hp htable in | |
| theorem computedQueryMemoResult_decode : | |
| (computedQueryMemoResult source target N occurrence symbolBits positionBits input).decode = | |
| computedFamilyResult source target N input := by | |
| have h := rankedBitMemoEvaluate_decode_on (SourceRanked.rank ChargedPhysicalRequest.rank) | |
| (computedQueryMemoNormalized source target N occurrence symbolBits positionBits input) | |
| (computedQueryReference source target N input) | |
| (fun key => (computedQueryMemoNormalized_correct source target N occurrence symbolBits positionBits | |
| input hf hs ht hp htable key).2) | |
| (16384 * inputHeight N + 5) (computedFamilyMemoCode source target N (inputHeight N ^ 2)) | |
| (computedFamilyMemoCode_injective source target N (inputHeight N ^ 2) hN | |
| (two_hundred_le_two_pow_thousand.trans hell)) | |
| (computedFamilyMemoCode_fits source target N (inputHeight N ^ 2) hN hell hsize le_rfl hMass) | |
| (.inr (localFinalRootRequest target N (integerParameters N).T (integerParameters N).S | |
| (inputHeight N) (Nat.two_pow_pos _) (finalTargetState target.length))) .empty | |
| (bitMemoSound_empty _ _ _) | |
| exact h | |
| include hN hell hf hsize hMass hs ht hp htable in | |
| theorem computedQueryMemoResult_localWork : | |
| (computedQueryMemoResult source target N occurrence symbolBits positionBits input).localWork = | |
| computedFamilyKernelWork source target N input | |
| (computedQueryLocalWork source target N occurrence symbolBits positionBits input) := by | |
| exact rankedBitMemoEvaluate_work_transfer_on (SourceRanked.rank ChargedPhysicalRequest.rank) | |
| (computedQueryMemoNormalized source target N occurrence symbolBits positionBits input) | |
| (computedQueryReference source target N input) | |
| (fun key => (computedQueryMemoNormalized_correct source target N occurrence symbolBits positionBits | |
| input hf hs ht hp htable key).2) | |
| (16384 * inputHeight N + 5) (computedFamilyMemoCode source target N (inputHeight N ^ 2)) | |
| (computedFamilyMemoCode_injective source target N (inputHeight N ^ 2) hN | |
| (two_hundred_le_two_pow_thousand.trans hell)) | |
| (computedFamilyMemoCode_fits source target N (inputHeight N ^ 2) hN hell hsize le_rfl hMass) | |
| (.inr (localFinalRootRequest target N (integerParameters N).T (integerParameters N).S | |
| (inputHeight N) (Nat.two_pow_pos _) (finalTargetState target.length))) .empty | |
| (bitMemoSound_empty _ _ _) | |
| end Correct | |
| end EditApproximation | |
| end OAI | |
Xet Storage Details
- Size:
- 4.39 kB
- Xet hash:
- 465efc31adbee219083137edd812909299c003430f9ded1a6bbd5e6b7e0af226
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.