Download data/lean/OAI/Computability/PerfectCompleteness/Construction/NativeLeafAlphabet.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.2 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/PerfectCompleteness/Construction/NativeLeafAlphabet.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/PerfectCompleteness/Construction/NativeLeafAlphabet.lean
-
curl -L -o NativeLeafAlphabet.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/PerfectCompleteness/Construction/NativeLeafAlphabet.lean
2.2 kB
| import OAI.Computability.PerfectCompleteness.Foundations.SourceOddListsLemmas | |
| namespace OAI | |
| section | |
| namespace PerfectCompleteness.NativeLeafAlphabet | |
| open SourceClause | |
| variable {I : Type*} {v m t : Nat} | |
| def castAssignment {a b : I β MixedSupport.Slot} (h : a = b) : | |
| MixedSupport.Assignment a β MixedSupport.Assignment b := | |
| Equiv.cast (congrArg (fun slots : I β MixedSupport.Slot => | |
| MixedSupport.Assignment slots) h) | |
| @[simp] theorem castAssignment_rfl (a : I β MixedSupport.Slot) : | |
| castAssignment (rfl : a = a) = Equiv.refl (MixedSupport.Assignment a) := rfl | |
| def nativeLeftEquiv (clauses : Fin m β NormalizedClause v) | |
| (question : Fin t β Fin m) {a : Fin t β MixedSupport.Slot} | |
| (ha : a = SourceAnswerEquiv.leftSlots clauses question) : | |
| MixedSupport.Assignment a β SourceOddLists.LeftLabels t := | |
| (castAssignment ha).trans (SourceAnswerEquiv.leftEquiv clauses question) | |
| def nativeRightEquiv (clauses : Fin m β NormalizedClause v) | |
| (question : Fin t β Fin v) {b : Fin t β MixedSupport.Slot} | |
| (hb : b = SourceAnswerEquiv.rightSlots clauses question) : | |
| MixedSupport.Assignment b β SourceOddLists.RightLabels t := | |
| (castAssignment hb).trans (SourceAnswerEquiv.rightEquiv clauses question) | |
| theorem projection_encode (clauses : Fin m β NormalizedClause v) | |
| (e : SourceOddLists.Occurrences m t) {a b : Fin t β MixedSupport.Slot} | |
| (ha : a = SourceAnswerEquiv.leftSlots clauses (SourceOddLists.left e)) | |
| (hb : b = SourceAnswerEquiv.rightSlots clauses (SourceOddLists.right clauses e)) | |
| (q : β k, MixedSupport.Projection (a k) (b k)) | |
| (hq : β k, HEq (q k) (SourceAnswerEquiv.slotProjection clauses e k)) | |
| (x : MixedSupport.Assignment a) : | |
| nativeRightEquiv clauses (SourceOddLists.right clauses e) hb | |
| (MixedSupport.projectionMap q x) = | |
| SourceOddLists.projection clauses e | |
| (nativeLeftEquiv clauses (SourceOddLists.left e) ha x) := by | |
| subst a | |
| subst b | |
| have hprojection : q = SourceAnswerEquiv.slotProjection clauses e := by | |
| funext k | |
| exact eq_of_heq (hq k) | |
| subst q | |
| exact SourceAnswerEquiv.projection_encode clauses e x | |
| end PerfectCompleteness.NativeLeafAlphabet | |
| end | |
| end OAI | |