Download lean/OAI/Computability/DegreeRigidity/SetModels/DegreeSetFormula.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.92 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/DegreeRigidity/SetModels/DegreeSetFormula.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Computability/DegreeRigidity/SetModels/DegreeSetFormula.lean
-
curl -L -o DegreeSetFormula.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/DegreeRigidity/SetModels/DegreeSetFormula.lean
1.92 kB
| import OAI.Computability.DegreeRigidity.SetModels.ModelDegreeCodes | |
| namespace OAI | |
| namespace TuringRigidity.BoundedSetTheory | |
| universe u | |
| def DegreeEqualityFormula (φ : Formula) : Prop := ∀ o Q z x y : ℕ, ∀ e : ℕ → ZFSet.{u}, | |
| e o = ZFSet.omega → (∀ f : ℕ → ℕ, ∀ k, finiteNaturalGraph f k ∈ e Q) → | |
| e z = natSet 0 → ∀ A B : Oracle, e x = realCode A → e y = realCode B → | |
| ((Formula.twoOracles φ o Q z x y).Eval e ↔ degree A = degree B) | |
| namespace Formula | |
| def degreeSet (φ : Formula) (o Q z R A D : ℕ) : Formula := | |
| .conj (.subset D R) (allMem R (iff (.member 0 (D+1)) (twoOracles φ (o+1) (Q+1) (z+1) 0 (A+1)))) | |
| theorem degreeSet_spec {φ : Formula} (hφ : DegreeEqualityFormula.{u} φ) | |
| (o Q z R x D : ℕ) (e : ℕ → ZFSet.{u}) (ho : e o = ZFSet.omega) | |
| (hQ : ∀ f : ℕ → ℕ, ∀ k, finiteNaturalGraph f k ∈ e Q) (hz : e z = natSet 0) | |
| (hR : ∀ w ∈ e R, ∃ B : Oracle, realCode B = w) | |
| (A : Oracle) (hA : e x = realCode A) : | |
| (degreeSet φ o Q z R x D).Eval e ↔ e D = degreeCode (e R) A := by | |
| simp only [degreeSet,Formula.Eval,eval_subset,eval_allMem,eval_iff,cons_zero,cons_succ] | |
| constructor | |
| · rintro ⟨hsub,h⟩ | |
| apply ZFSet.ext; intro w | |
| by_cases hw : w ∈ e R | |
| · obtain ⟨B,rfl⟩ := hR w hw | |
| rw [realCode_mem_degreeCode] | |
| have hh := (h _ hw).trans (hφ (o+1) (Q+1) (z+1) 0 (x+1) (cons (realCode B) e) | |
| ho hQ hz B A rfl hA) | |
| exact hh.trans (and_iff_right hw).symm | |
| · exact ⟨fun h => False.elim (hw (hsub h)),fun h => False.elim (hw (degreeCode_subset _ _ h))⟩ | |
| · intro hd | |
| refine ⟨hd.symm ▸ degreeCode_subset (e R) A,?_⟩ | |
| intro w hw | |
| obtain ⟨B,rfl⟩ := hR w hw | |
| rw [hd,realCode_mem_degreeCode,and_iff_right hw] | |
| exact (hφ (o+1) (Q+1) (z+1) 0 (x+1) (cons (realCode B) e) ho hQ hz B A rfl hA).symm | |
| end Formula | |
| end TuringRigidity.BoundedSetTheory | |
| end OAI | |