Download lean/OAI/Computability/VertexCover/Machines/Codec.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/VertexCover/Machines/Codec.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Computability/VertexCover/Machines/Codec.lean
-
curl -L -o Codec.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/VertexCover/Machines/Codec.lean
1.31 kB
| import Mathlib | |
| import OAI.Computability.VertexCover.Machines.Primitives | |
| namespace OAI | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| namespace VertexCover.Machine | |
| theorem prodBits_injective {α β : Type} {ea : α → List Bool} {eb : β → List Bool} | |
| (ha : Function.Injective ea) (hb : Function.Injective eb) : | |
| Function.Injective (prodBits ea eb) := by | |
| intro a b h | |
| apply Prod.ext | |
| · apply ha | |
| have hh := congrArg (Stream.output (Project.trans true false) (fun _ => []) 0) h | |
| simpa only [prodBits,Project.framed,Bool.false_eq_true,↓reduceIte,List.append_nil] using hh | |
| · apply hb | |
| have hh := congrArg (Stream.output (Project.trans false true) (fun _ => []) 0) h | |
| simpa only [prodBits,Project.framed,Bool.false_eq_true,↓reduceIte,List.nil_append] using hh | |
| theorem boolBits_injective : Function.Injective boolBits := by | |
| intro a b h | |
| exact List.singleton_injective h | |
| end VertexCover.Machine | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |