openAI-math-dataset / lean /OAI /RepresentationTheory /UniversalSquare /Contraction /CompactDomains.lean
Download lean/OAI/RepresentationTheory/UniversalSquare/Contraction/CompactDomains.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 961 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/RepresentationTheory/UniversalSquare/Contraction/CompactDomains.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/RepresentationTheory/UniversalSquare/Contraction/CompactDomains.lean
-
curl -L -o CompactDomains.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/RepresentationTheory/UniversalSquare/Contraction/CompactDomains.lean
961 Bytes
| import Mathlib | |
| import OAI.RepresentationTheory.Saxl.Main | |
| import OAI.RepresentationTheory.UniversalSquare.Support.RowSquareTools | |
| namespace OAI | |
| /-! Compact Domains. -/ | |
| section | |
| noncomputable section | |
| namespace UniversalTensorSquare | |
| open Saxl Saxl.Columns Saxl.Balance | |
| lemma rowSquare_compact {n : ℕ} {p q cs ts : List ℕ} | |
| (hp : GoodRows p) (hq : GoodRows q) (hcs : GoodRows cs) (hts : GoodRows ts) | |
| (he : cs = transposeRows p ∨ cs = p) (ht : ts = transposeRows q) | |
| (hn : cs.sum = n) (hn' : ts.sum = n) | |
| (eb : Fin n ≃ Fin cs.sum) (et : Fin n ≃ Fin ts.sum) | |
| (flag : Finset (ℕ × ℕ × ℕ)) | |
| (hcert : solveCompact n (.full ts) (.full cs) (.full cs) | |
| (certificateEdges cs cs ts (finCongr hn.symm) eb et) flag ≠ 0) : RowSquare p q := by | |
| apply rowSquare_domain hp hq hcs hts he ht hn hn' eb et flag | |
| simpa only [← CompactDomains.describe_full,solveCompact_describe] using hcert | |
| end UniversalTensorSquare | |
| end | |
| end | |
| end OAI | |