Skip to content

Commit

Permalink
bits
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjbest committed Aug 7, 2023
1 parent 2e0dd7c commit bb05545
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ECTate/Algebra/ResidueRing.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ variable {R : Type u} [CommRing R]
instance (I : Ideal R) : CoeTC R (R ⧸ I) :=
⟨Ideal.Quotient.mk I⟩

variable (x : R) (I : Ideal R)

#check (x : R ⧸ I)

variable [IsDomain R]

namespace SurjVal
Expand Down Expand Up @@ -341,7 +345,7 @@ instance : evr.valtn.ideal.IsMaximal := by
. intro J x Jle hx hxJ
simp only [SurjVal.mem_ideal_iff, gt_iff_lt, not_lt, nonpos_iff_eq_zero] at hx -- TODO simp? at * bad
have : x * evr.inv_mod x - 1 ∈ evr.valtn.ideal
. simpa using evr.inv_mod_spec x hx
. simpa using evr.inv_mod_spec hx
simpa [sub_sub] using Submodule.neg_mem _ -- TODO this feels like it should be a tactic
<| Ideal.sub_mem _ (Jle this) <| Ideal.mul_mem_right (evr.inv_mod x) _ hxJ

Expand Down
5 changes: 5 additions & 0 deletions test/LMFDB.lean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def kodaira_decode : ℤ → Kodaira
| n => if n > 0 then I (Int.natAbs (n - 4))
else Is (Int.natAbs (-n - 4))

/--
lmfdb=> \copy (select ainvs, prime, conductor_valuation , discriminant_valuation, j_denominator_valuation, kodaira_symbol, tamagawa_number, reduction_type from ec_curvedata c inner join ec_localdata using ("lmfdb_label") order by c.conductor) to 'test.csv' with delimiter as '&';
-/

def parsefunc (s : String) : Model ℤ × ℕ × Kodaira × ℕ × ℕ × ℤ :=
match String.split s (λ c => c = '{' || c = '}') with
| "" :: mdl :: lcldata :: [] =>
Expand Down

0 comments on commit bb05545

Please sign in to comment.