blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90bb1dc612f1cbaae2896c65ba459c312d87ff8f | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/push.lean | f90a58cca7074dcd315aaf628605a87fe5a11f73 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 312 | lean | import Int.
variable first : Bool
scope
variables a b c : Int
variable f : Int -> Int
eval f a
pop_scope
eval f a -- should produce an error
print environment 1
scope
infixl 100 ++ : Int::add
check 10 ++ 20
pop_scope
check 10 ++ 20 -- should produce an error
pop_scope -- should produce an error |
78f085107b292fc932a454259bdcf976cf9183b4 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/punit_instances.lean | 3b944280f25440f71b10e3961c42d77d3987aa1a | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 578 | lean | import algebra.punit_instances
import topology.algebra.ring
import for_mathlib.topological_groups
instance : topological_add_monoid unit :=
{ continuous_add := continuous_of_discrete_topology }
instance : topological_ring unit :=
{ continuous_neg := continuous_of_discrete_topology }
open_locale classical
lemma s... |
7fee321184106b4f27159c7d6fba20ecfaec582b | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/order/liminf_limsup.lean | 1ad1eb77d26bf48b4acf6626dfe3aaa9fa6dc603 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 20,357 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import algebra.big_operators.intervals
import order.liminf_limsup
import order.filter.archimedean
import topology.order.basic
/-!
# ... |
48f51ae9c2b5d8c98bce1b99626dea8ea5094389 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/char_p/subring_auto.lean | e5bde8591656db570a4a81a36e7283704007f319 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,825 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.char_p.basic
import Mathlib.ring_theory.subring
import Mathlib.PostPort
universes u
namesp... |
30306d29e52ea1ba44f32e34471a804a594389c0 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/free_comm_ring.lean | 4b4ecbefe5e0de95fb6d326fb2c899828a19611b | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 16,028 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import data.equiv.functor
import data.mv_polynomial
import ring_theory.ideal_operations
import ring_theory.free_ring
noncomputable theory
local attribute [inst... |
4d628a6404601ae0c4c9aba2ce7ed32dfb969880 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/stream/defs.lean | d5c64bf3574fb42579ece423d58feb5cae8f42df | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,537 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
/-!
# Definition of `stream` and functions on streams
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/6... |
2cb8fd155f2e5b808043e33465b47343d696f48a | 794b3f8415fa890a736540e2365a8a27a3ae24a5 | /src/main.lean | b8bb6cc94352d8ecafdff6470167aaa1f031ebe7 | [] | no_license | cipher1024/max-sharing | 609e752bef12762af4e045636c7f663616f072cd | 6e21b2ebaeaf69ee8e9cc075ace993e758b37520 | refs/heads/master | 1,621,373,982,071 | 1,585,604,413,000 | 1,585,604,413,000 | 251,434,708 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,955 | lean |
import data.finmap
import data.quot
import tactic.basic
import tactic.linarith
universes u v
namespace tactic.interactive
setup_tactic_parser
open tactic
meta def check_types : tactic unit :=
-- meta def check_types (pat : parse texpr) : tactic unit :=
-- do es ← tactic.match_target pat,
-- trace es
do `(%%x = %... |
b228edc9a06a08a0096be5d3302e0ba64d2e643f | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/linear_algebra/basic.lean | 2bc06f126e22bd6d4f1bc3e802003f5ffc4c0bdd | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 80,344 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard
-/
import algebra.pi_instances
import data.finsupp
/-!
# Linear algebra
This file defines the basics of linear algebra. It sets up the "... |
5a07285273610adb3f638928c26fa76a449e00d1 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Data/PersistentArray/Basic.lean | 0b42406758e6fcc83827f4ed6c84c0d2614f6a25 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,306 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Control.Conditional
import Init.Data.Array
universes u v w
inductive PersistentArrayNode (α : Type u)
| node (cs : Array PersistentArra... |
d737faafc4eca043124d5aeee806d12ec6f48a50 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/basic.lean | 456f936ffab15001c5e6608bb0a01792fb35a690 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 622 | lean | import
tactic.alias
tactic.cache
tactic.clear
tactic.converter.interactive
tactic.converter.apply_congr
tactic.core
tactic.ext
tactic.elide
tactic.explode
tactic.show_term
tactic.find
tactic.generalize_proofs
tactic.interactive
tactic.suggest
tactic.lift
tactic.localized
tactic.mk_iff_... |
3be7f08c77eddd83638212421fec54c3daa7d53b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/equiv_rw.lean | d23a1d86db529a0426b674a7a400d9a0f1b1b95f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 13,721 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import logic.equiv.basic
import tactic.clear
import tactic.simp_result
import tactic.apply
import control.equiv_functor.instances -- these make equiv_rw more powerful... |
49deb6c9c1801a3082d4f5fb79cd8f7baccd3627 | 2fb7334a212c3858db44039b5fa6cd57fd5d1443 | /src/sieve.lean | f05cf8688caae89ed3538e623b8c1b26aa0e2399 | [] | no_license | ImperialCollegeLondon/condensed-sets | 24514be041533b07fd62d337b1d6a5ce2b09c78c | e308291646396003dbed3896e5fbb40cb57c7050 | refs/heads/master | 1,628,397,992,041 | 1,601,549,576,000 | 1,601,549,576,000 | 224,198,323 | 3 | 1 | null | 1,601,549,578,000 | 1,574,774,780,000 | Lean | UTF-8 | Lean | false | false | 4,096 | lean | import category_theory.opposites
import category_theory.hom_functor
import category_theory.limits.shapes.products
import category_theory.limits.shapes.pullbacks
import topology.opens
import topology.category.Top.opens
open opposite
open category_theory
set_option pp.universes true
section sieves
universes v u
vari... |
0bd3d5a342402a6a159ff343efc7aace064fd7c2 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/sec3.lean | ad8f9f7493eccacee5ad76e0b1ad1bfd0396de80 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 110 | lean | context
parameter A : Type
definition tst (a : A) := a
set_option pp.universes true
check tst.{1}
end
|
6001837805055d1ebba9dfec4978a14a61810a0a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/finsupp/lattice_auto.lean | ab7fe4ff8358666d5899759bee53ee2fdaa792f8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,621 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finsupp.basic
import Mathlib.algebra.ordered_group
import Mathlib.PostPort
universes ... |
3096ee235d8c547cc46553fd70730500a5773773 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/openScoped.lean | c030cde018d7456f28b138773481f062339abc42 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 413 | lean | #check @epsilon -- Error
noncomputable def foo1 (f g : Nat → Nat) : Nat :=
if f = g then 1 else 2 -- Error
section
open Classical
#check @epsilon
noncomputable def foo2 (f g : Nat → Nat) : Nat :=
if f = g then 1 else 2 -- Ok
end
#check @epsilon -- Error
section
open scoped Classical
#check @epsilon -- Error
... |
a83ff10b706532f193485b15bcd1ee48db7cc19e | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/adjoin.lean | c3d71687fd55082d409fd940f857f3f6a9dc2442 | [
"LPPL-1.3c"
] | permissive | lean-forward/class-number | 9ec63c24845e46efc8fa8b15324d0815918292c7 | 4fccf36d5e0e16accae84c16df77a3839ad964e4 | refs/heads/main | 1,686,927,014,542 | 1,624,886,724,000 | 1,624,886,724,000 | 327,319,245 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,666 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import field_theory.intermediate_field
import field_theory.minpoly
import field_theory.splitting_field
import field_theory.minpol... |
6460284c67af5a535b4bde86a0dea98e18e7d2c0 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/uniform_integrable.lean | 6087380fdc8a00728a12a396d30d81daf589e587 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 48,638 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.function.convergence_in_measure
import measure_theory.function.l1_space
/-!
# Uniform integrability
This file contains the definitions for uniform i... |
e10f524f3f0c453c1ef60771fb08f302dcfb09fd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/ordered_monoid.lean | 6d5fb559aa0f35a425891a9d6d1f9d8dbba1fbb7 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,178 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.with_one
import Mathlib.alge... |
71193035bcfda79b6c6e8f53cb5374e94172896c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/squarefree.lean | 5981e04bfb9e68daeeef8c5a303a0d51e2f52bfd | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 24,442 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import ring_theory.unique_factorization_domain
import ring_theory.int.basic
import number_theory.divisors
/-!
# Squarefree elements of monoids
An element of a monoid... |
3c5d6607ffe2c67cf0a3bc733f0ccf2d6eec1071 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/linarith/frontend.lean | b59c9c02a354a05c8809e83c8cede34f71224284 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 17,802 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.linarith.verification
import tactic.linarith.preprocessing
/-!
# `linarith`: solving linear arithmetic goals
`linarith` is a tactic for solving goal... |
573ced5c470f9d255ed1429bc0dccb642aa902ee | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Level.lean | b1b8c31072619bf6e21ba8ee6ea8d8b08ed1c19d | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 19,296 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.HashMap
import Std.Data.HashSet
import Std.Data.PersistentHashMap
import Std.Data.PersistentHashSet
import Lean.Hygiene
import Lean.Data.Nam... |
9520a57e2238ae9567196ada104085d567d5c7be | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/exists5.lean | 1f4bf34a2c9abd717fb80a8c430ab04f291190f5 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 223 | lean | variable N : Type
variables a b c : N
variables P : N -> N -> N -> Bool
theorem T1 (f : N -> N) (H : P (f a) b (f (f c))) : exists x y z, P x y z := exists_intro _ (exists_intro _ (exists_intro _ H))
print environment 1.
|
f7fc71cb812bab69236e7cc3335d2d2d90cb5246 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/number_theory/dioph.lean | d2376098b3aa04b39af5693692f94164da459c2a | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 36,856 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import number_theory.pell data.pfun
universe u
open nat function
namespace int
lemma eq_nat_abs_iff_mul (x n) : nat_abs x = n ↔ (x - n) * (x + n) = 0 :=
begin
r... |
ab8f0a2ecb685e79dccfd93b63860b5d895b4caf | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/semiconj.lean | 92596a396069a1c3b2e480fb546a9b63ec3911dc | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 9,169 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
Some proofs and docs came from `algebra/commute` (c) Neil Strickland
-/
import algebra.group_power
import data.equiv.mul_add
/-!
# Semiconjugate elements of a semigr... |
c6a0451f7118a5bf7680aea23d4cf7f93440bbd4 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_zeta.lean | 082e3d20e5690aa33b2d45b0f319990cefe621e1 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 190 | lean | local attribute [simp] nat.zero_add
example (n : ℕ) : let m := 0 + n in m = n :=
begin
intro,
dsimp [m],
simp,
end
example (n : ℕ) : let m := 0 + n in m = n :=
begin
intro,
simp *,
end |
791fc8aa79b7cc1668bd1a7b8958e287dd2862bd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/polynomial/group_ring_action.lean | 1bf9685e5b27ddcd3dbb044eb3c3727365354fac | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,937 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.polynomial.monic
import data.polynomial.algebra_map
import algebra.group_ring_action
import algebra.group_action_hom
/-!
# Group action on rings applied to polyno... |
76c5df0f16931efb8aa2821442f87b8da2f7d07f | 32a2d1642d7519c99693bc1d3b24069e4853dd1f | /analysis/topology/topological_structures.lean | 3a322e9fddf1ea494597c1d5c8cd62b0268602d0 | [
"Apache-2.0"
] | permissive | Cedric0099/mathlib | 7edb81d5d68e280b4d21f6c0377dad1f9b8c0d71 | a97101d2df5d186848075a2d0452f6a04d8a13eb | refs/heads/master | 1,584,201,847,599 | 1,524,979,632,000 | 1,524,979,632,000 | 131,690,350 | 0 | 0 | null | 1,525,162,341,000 | 1,525,162,341,000 | null | UTF-8 | Lean | false | false | 43,410 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological monoids, groups and rings.
-/
import algebra.big_operators
import order.liminf_limsup
import analysis.topology.topological_space ... |
527aa4fb27e2779024c5243b88317af6127802bf | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/type.lean | dfa79e57033b0b8a6b5103d3d0f27c6fa62fd6c2 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 829 | lean | def ℕ₁ := Σ' n:ℕ, n > 0
instance : has_coe ℕ₁ ℕ := ⟨λ n, n.1⟩
def rel (A) := A → A → Prop
inductive {u} pempty : Sort u
@[instance]
def {u} sort_has_zero : has_zero (Sort u) :=
{zero := pempty}
instance : has_repr pempty :=
{repr := λ _, "∅"}
@[instance]
def {u} sort_has_one : has_one (Sort u) :=
{one := punit}
... |
ef3a37a4a00d26aed62c34b0bbdfb648e8e6085f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/field_theory/normal.lean | ceff83bdfa747be27a808a92fa08a9b12e4456e9 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 20,855 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.tower
import group_theory.solvable
import ring_theory.power_basis
/-!
# Normal field extensions
... |
ec2b6f8c87a5508b77b8998aa912757630fca2f1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/basic.lean | 7db7015d3a0e394c204107d8caec989901431dc5 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 111,894 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.pi
import algebra.module.hom
import algebra.module.pi
import algebra.module.prod
import a... |
714739a6ef24427275d1eb845e51fce1e2f36a51 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/e7.lean | 013cfa5a0711cadde31fd2078d8b616c32d9cc22 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 715 | lean |
precedence `+`:65
namespace nat
variable nat : Type.{1}
variable add : nat → nat → nat
infixl + := add
end
namespace int
using nat (nat)
variable int : Type.{1}
variable add : int → int → int
infixl + := add
variable of_nat : nat → int
coercion of_nat
end
using nat
using int
variables n m : nat
v... |
faf9f8e3c4e9749a59d21de8925ed1786a81990f | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/KeyedDeclsAttribute.lean | ad11810bcefba0a71879106b1839844f69ac669e | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 7,084 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Attributes
import Lean.Compiler.InitAttr
import Lean.ToExpr
import Lean.ScopedEnvExtension
import Lean.Compiler.IR.CompilerM
... |
40191945a086d4e1f98717b9171081026c9c0258 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/monadControl.lean | 2b1971b4649ac71faed8cb949f60422086f2e672 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,226 | lean | new_frontend
@[inline] def f {α} (s : String) (x : IO α) : IO α := do
IO.println "started";
IO.println s;
let a ← x;
IO.println ("ended");
pure a
@[inline] def f'' {α m} [MonadControlT IO m] [Monad m] (msg : String) (x : m α) : m α := do
controlAt IO fun runInBase => f msg (runInBase x)
abbrev M := StateT Bool $ Exc... |
edf495079dc3c62ee665287e24fb14280ebc5137 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/constructions/sum.hlean | 9af9b51304a704e571a8dd24a26841b64cf5ea9d | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 4,460 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Sum precategory and (TODO) category
-/
import ..category ..nat_trans types.sum
open eq sum is_trunc functor lift nat_trans
namespace category
... |
11cee7eb78d34ac3d654d6f891a86f51c9265360 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/io_bug1.lean | e418a61a5190ce6b3b6b6884ddf067d2abaf8fb1 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 416 | lean | import system.io
open io
def bar : io unit :=
do put_str "one", put_str "two", put_str "three"
#eval bar
#print "---------"
def foo : ℕ → io unit
| 0 := put_str "at zero\n"
| (n+1) := do put_str "in\n", foo n, put_str "out\n"
#eval foo 3
#print "---------"
def foo2 : ℕ → io unit
| 0 := put_str "at zero\n... |
4cb25615730333276dfbba532fe351b281645194 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/meta/expr.lean | 127df31a1ba4241f717e39ebdcdc38725b0bd185 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 13,599 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis
-/
/-!
# Additional operations on expr and related types
This file defines basic operations on the types e... |
7ca7f25c83a774ecc7b21dbc0f4d9e442e54913d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/interactive/eq2.lean | 6d969814ecf47926dd1f2dbc93fa6694a9cc6b6b | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 7,059 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-- logic.connectives.eq
-- ====================
-- Equality.
prelude
definition Prop := Type.{0}
-- eq
-- --
inductiv... |
cf70345c591b3d720262b2f46314fc51ab3d72c4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /archive/100-theorems-list/82_cubing_a_cube.lean | eadfa8fef08b0a3171f5bea3a5986c82d6ed40bb | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 23,038 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
-/
import data.real.basic
import data.set.disjointed
import data.set.intervals
import set_theory.cardinal
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
... |
3ba9e56bec5eaa14bbc77ac6a5cfa8e69964bb4d | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/default_field_values1.lean | 337f4be0c9c576f501a1162137697e1058b13b7a | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 909 | lean | structure foo (α β : Type) :=
(x : α) (f : α → α) (y : β)
structure bla (α β : Type) extends foo α β :=
(z : α := f x)
structure boo (α : Type) extends bla α α :=
(d := f (f x))
print bla.z._default
print boo.z._default
print boo.d._default
lemma ex₁ : {boo . x := 10, f := nat.succ, y := 10}^.z = 11 :=
rfl
lemma e... |
3e6bbc656e2a25a50c77e17c87d00509816e5fdc | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world10/level9.lean | 1baf944d9aac343f90c84480cc5920423ec22534 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 398 | lean | import game.world10.level8 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 9: `le_total`
-/
/- Lemma
For all naturals $a$ and $b$, either $a\le b$ or $b\le a$.
-/
theorem le_total (a b : mynat) : a ≤ b ∨ b ≤ a :=
begin [nat_num_game]
end
-- Another collectible: the naturals are a linear order.... |
365bfa406ef991ade771f086f31b334ab9c030ab | 690889011852559ee5ac4dfea77092de8c832e7e | /src/topology/algebra/module.lean | f3ed023178cb29a61dc904bf4f5f85fca05cae45 | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 9,677 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
Theory of topological modules and continuous linear maps.
-/
import topology.algebra.ring linear_algebra.basic ring_theory.algebra
o... |
de8e64d064d50ae7dba558106748f36d8f8efa1c | ba202b5df889db60057325d9f940c616e8cb44f3 | /src/sperner.lean | b91cbb0661bd359a11b2f985dbd40bd89f97cd8e | [] | no_license | damiatorres/brouwerfixedpoint | 0a4ec331de6f9992685e5fc71eb2d3418ff1b2bc | 45411c64f3cbf14c4821342c9dd7153825e0a9bf | refs/heads/main | 1,685,778,289,255 | 1,623,877,752,000 | 1,623,877,752,000 | 377,779,620 | 0 | 0 | null | 1,623,923,011,000 | 1,623,923,011,000 | null | UTF-8 | Lean | false | false | 4,315 | lean | import tactic
import data.set.finite
import data.real.basic
import linear_algebra.affine_space.independent
import analysis.convex.basic
import topology.sequences
noncomputable theory
open set
open affine
open topological_space
open_locale affine
open_locale filter
variables {V : Type*} [add_comm_group V] [module ℝ ... |
a7406d9df5016cd400729334a47ef743613faf59 | 0408d6ea582e97d5cc55ac8a0980d26df896ce66 | /src/padics/padic_integers.lean | 9b8b4263686cede1348f8b8f5b74ac4fd5f2b3d2 | [] | no_license | lean-forward/coe_tactic | bba94535c7fb6ef65fcd81bedc28062b238a1594 | d5c30df244c3402de6323a538e99b5324779a2cb | refs/heads/master | 1,588,474,971,049 | 1,557,135,293,000 | 1,557,135,293,000 | 178,387,237 | 1 | 0 | null | 1,556,542,286,000 | 1,553,856,413,000 | Lean | UTF-8 | Lean | false | false | 9,414 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Mario Carneiro
Define the p-adic integers ℤ_p as a subtype of ℚ_p. Construct algebraic structures on ℤ_p.
-/
import ring_theory.ideals data.int.modeq
import tactic.... |
c2e6b120fcc78e456fcc736bd0c96b794a7d959b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/bench/rbmap.lean | 33e6ecb8490a4e6bf327fc27fcab720950d2e50c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,688 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
inductive Color
| red | black
inductive Tree where
| leaf
| node : Color → Tree → Nat → Bool → Tree → Tree
def fold (f : Nat → B... |
bc371b8be9b5f0a21c9766f66bc88dd8cbfc4cf4 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/inner_product_space/two_dim.lean | 62fa50cecc64e5e8d7e3dbb5d2ee1c6b4996b39d | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 27,082 | lean | /-
Copyright (c) 2022 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.dual
import analysis.inner_product_space.orientation
import data.complex.orientation
import tactic.linear_combination
/-!
# Ori... |
8ad7036f0a0de6365c96c50cd32878fd32c128ca | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /tests/pkg/user_ext/UserExt/FooExt.lean | 1476f06c3ffac6b4cfe436b91568b160e2fa2dc1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 831 | lean | import Lean
open Lean
initialize fooExtension : SimplePersistentEnvExtension Name NameSet ←
registerSimplePersistentEnvExtension {
addEntryFn := NameSet.insert
addImportedFn := fun es => mkStateFromImportedEntries NameSet.insert {} es
}
initialize registerTraceClass `myDebug
syntax (name := insertFoo... |
3d281f27104d26803da38f219f57df576d221493 | 5a6ff5f8d173cbfe51967eb4c96837e3a791fe3d | /mm0-lean/x86/compiler.lean | 5ddf9005737f34755e81f729d1c9ac613e787e8f | [
"CC0-1.0"
] | permissive | digama0/mm0 | 491ac09146708aa1bb775007bf3dbe339ffc0096 | 98496badaf6464e56ed7b4204e7d54b85667cb01 | refs/heads/master | 1,692,321,030,902 | 1,686,254,458,000 | 1,686,254,458,000 | 172,456,790 | 273 | 38 | CC0-1.0 | 1,689,939,563,000 | 1,551,080,059,000 | Rust | UTF-8 | Lean | false | false | 1,987 | lean | import x86.assembly
noncomputable theory
namespace mmc
open x86 (wsize regnum)
def proc_loc := nat
def block_loc := nat
inductive irm
| reg : regnum → irm
inductive inst
| seq : inst → inst → inst
| mov : wsize → inst
| push : irm → inst
inductive blocks
| seq : blocks → blocks → blocks
| entry : proc_loc → inst →... |
42b3df015aa75130826533dcaffec10c89bab4f8 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cc_ac3.lean | adc3c77b55eabd826003a1cc82a62de74371ba5d | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 883 | lean | open tactic
instance aa : is_associative ℕ (+) := ⟨nat.add_assoc⟩
instance ac : is_commutative ℕ (+) := ⟨nat.add_comm⟩
instance ma : is_associative ℕ (*) := ⟨nat.mul_assoc⟩
instance mc : is_commutative ℕ (*) := ⟨nat.mul_comm⟩
example (a b c d e : nat) (f : nat → nat → nat) : b + a = d → b + c = e → f (a + b + c) (a +... |
01ea4391d50c3bb7cc0eb42be93eb4e864c35183 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/opposites.lean | cb3ba93715b4bd5f5743484363b8b8c4d9b3e1df | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 8,344 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison
-/
import category_theory.products
import category_theory.types
import category_theory.natural_isomorphism
import data.opposite
universes v₁ v₂ u₁ u₂ --... |
ab4d6f52393f797db9d220e6a54e7c7e1b5b349b | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/order/filter/pointwise.lean | abbbb84a9abd2b79179697193cb74b3e96a32a2d | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 7,681 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
The pointwise operations on filters have nice properties, such as
• map m (f₁ * f₂) = map m f₁ * map m f₂
• nhds x * nhds y = nhds (x * y)
-/
import algebra.pointwi... |
b260c819fa1295a5fa0d4aa273d6762e167e4468 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/finish4.lean | 45dd878b75a1762017806d1de7c13a73ee8f4ee0 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 1,410 | lean | /-
Copyright (c) 2019 Jesse Michael Han. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Jesse Michael Han
Tests for `finish using [...]`
-/
import tactic.finish
section list_rev
open list
variable {α : Type*}
def append1 (a : α) : list α → list α
| nil := ... |
9e3ad3a6e09e37672084f35e24f788fcea843631 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/finmap.lean | 61b9c9557a35e4f57c0338739adc66b04df6b7ce | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 18,147 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
Finite maps over `multiset`.
-/
import data.list.alist data.finset data.pfun
universes u v w
open list
variables {α : Type u} {β : α → Type v}
namespace m... |
0281bbf4936e27c6e1cca7f01eb7410620bb85eb | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/choice_ctx.lean | b977c7f18b0c0196d23bc657c624a30bb68d95ca | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 333 | lean | import data.nat.basic
open nat
open eq
set_option pp.coercions true
namespace foo
theorem trans {a b c : nat} (H1 : a = b) (H2 : b = c) : a = c :=
trans H1 H2
end foo
open foo
theorem tst (a b : nat) (H0 : b = a) (H : b = 0) : a = 0
:= have H1 : a = b, from symm H0,
trans H1 H
definition f (a b : nat) :=
let x :... |
c14c3a70ad67e6550db18c96a04203c0a2e89571 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/finset/locally_finite.lean | 8dc178e34bc1d0ccf459e244aab14c6021d43928 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 31,591 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yaël Dillies
-/
import order.locally_finite
import data.set.intervals.monoid
/-!
# Intervals as finsets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
dcb915a69e50acea5d0ab657e9a9933725945cbb | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/algebra/big_operators.lean | 686c59f3919c6896e3d3572bec08dcc72eab475b | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 30,823 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Some big operators for lists and finite sets.
-/
import data.list.basic data.list.perm data.finset
import algebra.group algebra.ordered_group algebra.group_power
local... |
f4499d12934cf29237d19c811a6452c352611ab8 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Tactic/Config.lean | 6bcb160731dfd42540e8207ebf75bdb1afd8e0f0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,218 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Eval
import Lean.Elab.Tactic.Basic
import Lean.Elab.SyntheticMVars
import Lean.Linter.MissingDocs
namespace Lean.Elab.Tactic
open Meta
mac... |
d273dac286f75b442b6b923295bafb035405e15b | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast12.lean | 7aa7746bde41142f527c57b16b0992e3d1484960 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 94 | lean | import data.nat
open algebra nat
example (a b : nat) : 0 + a + b + 1 = 1 + a + b :=
by blast
|
7b0774b106e030d4d32c10b99e2fa151342bbaf3 | 61c3861020ef87c6c325fc3c3dcbabf5d6b07985 | /cubical/squareover.lean | 0f8871b6393ef273ffef306ca81a66282dbbcc2b | [
"Apache-2.0"
] | permissive | jonas-frey/hott3 | a623be2959e8a713c03fa1b0f34bf76a561dfa87 | a944051b4eb5919bdc70978ee15fcbb48a824811 | refs/heads/master | 1,628,408,720,559 | 1,510,267,042,000 | 1,510,267,042,000 | 106,760,764 | 0 | 0 | null | 1,507,856,238,000 | 1,507,856,238,000 | null | UTF-8 | Lean | false | false | 16,721 | lean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Squareovers
-/
import .square
universe u
hott_theory
namespace hott
open eq equiv is_equiv hott.sigma
namespace eq
-- we give the argument B explicitly, becau... |
05b62ee1d028f42411e82475fbd1d3c65414ad50 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Compiler/Specialize.lean | c649110e16b0d2f07da90ac64524b5ea4dd3cee9 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,338 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Attributes
import Lean.Compiler.Util
namespace Lean.Compiler
inductive SpecializeAttributeKind
| specialize | nospecialize
namespace Specia... |
f0ca365bc424e601a4b6c0aaa97f2ee011e2c6ee | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/omega_complete_partial_order.lean | 4049204fba2aab1587c74121ca00e4aa508b634f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,756 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import topology.basic
import order.omega_complete_partial_order
/-!
# Scott Topological Spaces
A type of topological spaces whose notion
of continuity is equivalent to co... |
47e25cd4002c08dc498f6afe8f70e2adada4b4a0 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world8/level2.lean | 38e7ed67f20e564939e97c00cd4cb0346c0c93bd | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,366 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world8.level1 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 2: `succ_succ_inj`.
-/
/-
In the below theorem, we need to apply `succ_inj` twice. Once to prove
$succ(succ(a))=succ(succ(b))\implies succ(a)=succ(b)$, and then ag... |
864eaca13fa2ca5571e9ae485132be8d0fb37bf6 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Examples/Design/DesignStructure.lean | 08a7948939b98275385ce17bd4ffb1c59d90fb40 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,779 | lean | /- We represent a design structure as a set of relations parameterized over an arbitrary set
of parameters [params]. -/
/- A module is simply a named grouping of parameters -/
record Module {params : Type} :=
mk :: (elements: (list params)) (name : string)
/- Prop that an element is in a list -/
universe... |
d7529986f698232d3f5048e5e78d49bf88fbf8e1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/compact_open.lean | 1fb7a765f1c37aafefe61c060997d7103b40aa0d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,558 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.subset_properties
import... |
483b1e3efbdee32f28442588affcbc4e50f37463 | 618003631150032a5676f229d13a079ac875ff77 | /src/geometry/manifold/smooth_manifold_with_corners.lean | e8c4ceec9ee54fa4c8b47160afa1ebd9952dec55 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 26,966 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.times_cont_diff
import geometry.manifold.manifold
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold is a m... |
911c53257e809b3af21e399b1f5684c44b5e004d | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/control/traversable/instances.lean | 0eb214ed0d3aeb2bfe201c2805d89cd44fc6d74d | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 5,485 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances of `traversable` for types from the core library
-/
import data.list.forall2
import data.set.lattice
universes u v
section option
open functor
variables {F G : T... |
8bfafcb6fec69b622e5ef2980ca4717a3f6c549b | cbb1957fc3e28e502582c54cbce826d666350eda | /meta_data.lean | 2cd85570b7b67269b78cacbb17293b9b6ebf7f28 | [
"CC-BY-4.0"
] | permissive | andrejbauer/formalabstracts | 9040b172da080406448ad1b0260d550122dcad74 | a3b84fd90901ccf4b63eb9f95d4286a8775864d0 | refs/heads/master | 1,609,476,417,918 | 1,501,541,742,000 | 1,501,541,760,000 | 97,241,872 | 1 | 0 | null | 1,500,042,191,000 | 1,500,042,191,000 | null | UTF-8 | Lean | false | false | 5,603 | lean | /- Each fabstract contains a list of results. The following type lists the
various kinds of results. You may read the values as follows:
* `Proof p` -- the paper contains the proof `p`
* `Construction c` -- the paper contains the construction `c`
* `Conjecture C` -- the paper contains the conjecture `C`
... |
61b78aca5f19cfe9800cfff9b227ca068a24f50a | 367134ba5a65885e863bdc4507601606690974c1 | /src/field_theory/perfect_closure.lean | 9ddb263235df340e454bf33ba636bb22ca008458 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 17,390 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.char_p.basic
import data.equiv.ring
import algebra.group_with_zero.power
import algebra.iterate_hom
/-!
# The perfect closure of a field
-/
un... |
64e1545a9f7738319292a49dbdef8f94e8ccf69c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/derivation.lean | 903b95af667f563e22aa33112f4d9028a6f5d9fb | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 30,845 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Andrew Yang
-/
import ring_theory.adjoin.basic
import algebra.lie.of_associative
import ring_theory.tensor_product
import ring_theory.ideal.cotangent
/-!
# Derivati... |
6c9179dc17ba567bc9eb7a281e680072ebcadd33 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/nat/basic.lean | b25e60e500a473f1fa7cf5c08ed31d484c7c0ac5 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63,221 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.basic
import algebra.order_functions
import algebra.or... |
9624b9e57175eb542ddb647498c3338672c2ee2a | b19a1b7dc79c802247fdce4c04708e070863b4d2 | /common.lean | 851b676d02a2da5428feed39e907ba9d1a0eb8c8 | [] | no_license | utanapishtim/promethazine | 99a1e80311fb20251a54ba78a534b23852b88c40 | 08a6f9bd6dd08feb3df8d4697e19ffc8d333b249 | refs/heads/master | 1,653,595,504,487 | 1,480,129,933,000 | 1,480,129,933,000 | 74,801,596 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 775 | lean | constants A B C : Type
constant f : A → B
constant g : B → C
--constant b : B
check λ x : A, x -- identity fn on A
check λ x : A, b -- constant fn on A
check λ x : A, g (f x) -- composition of g and f
check λ x, g (f x) -- lean infers type of x
check λ b : B, λ x : A, x
check λ (b : B) (x : ... |
4ae9b8aaff1c4515064f84c50b9e16fbd3aed897 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/coe_fn_mvar.lean | d1c7b77b394518f46e6701f49435196523a08180 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,066 | lean | structure hom (α β : Type*) := (f : α → β)
instance {α β} : has_coe_to_fun (hom α β) (λ _, α → β) := ⟨hom.f⟩
def frob {α β} (a : α) : hom β (α × β) := ⟨λ b, (a, b)⟩
-- `(frob 1 : hom ?m_1 (?m_2 × ?m_1))` has metavariables in the type
def foo : ℤ × ℤ := frob 1 2
example : foo = (1, 2) := rfl
-- backport elabissues/... |
f9ab67c78ba678f29fe09fd35ada3878dd8f7d33 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/category_theory/whiskering.lean | 022a089f0e375f2ea72235806a26ec6b988e866f | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,128 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.natural_isomorphism
/-!
# Whiskering
Given a functor `F : C ⥤ D` and functors `G H : D ⥤ E` and a natural transformation `α : G ⟶ H`,
we can... |
2c9f09914295a84a9284c632f58a30a2394393c2 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Util/Recognizers.lean | 00ef8236e8c413afa08086f50bac87bff65a9cf9 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,342 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
namespace Lean
namespace Expr
@[inline] def app1? (e : Expr) (fName : Name) : Option Expr :=
if e.isAppOfArity fName 1 then
... |
da7828472fd946570a7d3f03f260ac49a346b6ac | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/inner_product_space/basic.lean | 95d89e95d1d5b8bfa603a15ef703b9eb1e9390aa | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76,063 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import analysis.complex.basic
import analysis.normed_space.bounded_linear_maps
import linear_algebra.bilinear_form
import linear_alg... |
d0c9a0f067d6c15625c3c0a1c964a63dc169d2a9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/category/FinPartialOrder.lean | 78b7eae8b2fd9cc92650640a445b7ca4e6b8e27b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,974 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import category_theory.Fintype
import order.category.PartialOrder
/-!
# The category of finite partial orders
This defines `FinPartialOrder`, the category of finite par... |
a4c2dbfb077eeaa97141c2eb34fb3042e8b1022d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/group_action/support.lean | 5d85b3139c86f77d648ded76981c62c5a23a7f6b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,768 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.set.pointwise.smul
/-!
# Support of an element under an action action
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
c87a8f0aac73d2c0572cba4967e30e26f48cc24b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/adjunction/basic.lean | 286013c3bde9853493a1e6cc753385a59a61832c | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 10,546 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first;... |
b2dd1054fc60b2f09abe28cda2953fca9a91016c | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/group/inj_surj.lean | 0ec125e5c75dfa86cb0910b0609f7d6adbb605f8 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,329 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.defs
import logic.function.basic
/-!
# Lifting algebraic data classes along injective/surjective maps
This file provides definitions that are m... |
fe5e9126b0e8cdd542afd902097f8ab23967aedd | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/measure/with_density_vector_measure.lean | 55c261fd0a2a15658b1be9f6353a58b7f6982b51 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 8,788 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.vector_measure
import measure_theory.function.ae_eq_of_integral
/-!
# Vector measure defined by an integral
Given a measure `μ` and an inte... |
f243c1bc31a32aeb6c0d48beec0e290d4bb7a1dc | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/ring_theory/ideal/over.lean | 2e35248fdf09d530ba7b47cf3444de5c4bd8ed43 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,493 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.algebraic
import ring_theory.localization
/-!
# Ideals over/under ideals
This file concerns ideals lying over other ideals.
Let `f : R →+* S` be a rin... |
893fb220ed1e5f5d96173e602b985da7098580f5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/sigma.hlean | c8cac82531d5a23e2c32c666b331cce294a4b299 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 21,988 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import types.prod
open eq sigma sigma.ops equiv is_equiv function is_trunc sum uni... |
24931a1d7d5f6e66614ac3d2308679ac375cfed8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/fapply.lean | 7690ba90297edce013c059478cec3f1fadfdbbd8 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 103 | lean | import logic
example : ∃ a : num, a = a :=
begin
fapply exists.intro,
exact 0,
apply rfl,
end
|
fa5ad2e3f57dd1de6f1d8acc8895f544c36c22f6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/interactive/info_goal.lean | 49caf9f3328ef1c05a03df48f58d7796598792e3 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 217 | lean | example : ℕ → ℕ :=
begin
exact id
--^ "command": "info"
,
--^ "command": "info"
end
--^ "command": "info"
example : ℕ → ℕ := by exact id
--^ "command": "info"
|
ac92dfacc977865795422bdd12eea847ec8b6bb6 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/order/basic.lean | ddc3d71ee7c48a7f1cbc74795af1bd5ff1443da3 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 25,990 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import logic.basic data.sum data.set.basic algebra.order
open function
/- TODO: automatic construction of dual definitions / theorems -/
universes u v... |
6d6fdcedec6d85961beb4c268a4bee43148c7a3a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/is_adjoin_root.lean | b13d9a322511e8becb0f7810c1cc437088037f05 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 27,620 | lean | /-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.polynomial.algebra_map
import field_theory.minpoly.is_integrally_closed
import ring_theory.power_basis
/-!
# A predicate on adjoining roots of polynomial
> TH... |
bb24e29ee2aab5cdb996571785fe0203b237f7b0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/exhaustive_vm_impl_test.lean | f2fe324849a922ed519269a6743a8811ba614b95 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 5,229 | lean | instance my_pow : has_pow ℕ ℕ :=
⟨λ x n, nat.rec_on n 1 (λ _ ih, ih * x)⟩
instance nat.decidable_ball (p : ℕ → Prop) [∀ i, decidable (p i)] : ∀ n, decidable (∀ x < n, p x)
| 0 := decidable.is_true begin intros n h, cases h end
| (n+1) :=
match nat.decidable_ball n with
| (decidable.is_false h) :=
decid... |
24cb650bad39fb36fadca305ad9b2150324a6a77 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Parser/Term.lean | 5aa4b9fe96f7ef5e296f0d1c4be52760b0463f8f | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,719 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
namespace Command
def commentBody : Parser :=
{ fn := ... |
3bea44ac12e76876d6e0cedacffbb5b0c40f02de | 7a468d7c7c0949ab8b191bb62ff6d4d2af9f3917 | /test/int_constructor.lean | 2accaf779f744d28edff41cd94007a0845ac3808 | [
"Apache-2.0"
] | permissive | seanpm2001/LeanProver_SMT2_Interface | c15b2fba021c406d965655b182eef54a14121b82 | 7ff0ce248b68ea4db2a2d4966a97b5786da05ed7 | refs/heads/master | 1,688,599,220,366 | 1,547,825,187,000 | 1,547,825,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 82 | lean | import smt2
lemma int_ctor (n : nat) :
int.of_nat n >= 0 :=
begin
z3
end
|
fca8fd43f35039911c901b2d27d3ac5d5fc3f60e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/complex/basic.lean | 4f06851bf8b4cc06e741e04509d16888a7b9543e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,630 | lean | /-
Copyright (c) Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.normed_space.finite_dimension
import Mathlib.data.complex.module
import Mathlib.d... |
556cf5cd11f27a643b9430b9ef92b2f1b501124d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/box_integral/box/basic.lean | ceec3c059b515070fd7e63a1903b147ca47e44e8 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 17,906 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.metric_space.basic
import topology.algebra.ordered.monotone_convergence
import data.set.intervals.monotone
/-!
# Rectangular boxes in `ℝⁿ`
In this... |
5eefd81e96031e5e213be3da3d50b4f5d481527d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ho.lean | bb46acc66eb01a92b55cbf43fafb92c88ecddba0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 210 | lean | import data.nat
inductive star : Type₁ :=
| z : star
| s : (nat → star) → star
check @star.rec
check @star.cases_on
example (f : nat → star) : ¬ star.z = star.s f :=
assume H, star.no_confusion H
|
f46b4b07524c686dd9b6eeb374a32eb3831700f3 | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/typ/core.lean | 3f98b307fbc6e6cdca8d3fc9b2fe030a10778970 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 906 | lean | import data.fresh occurs
namespace tts ------------------------------------------------------------------
/-- Grammar of types -/
@[derive decidable_eq]
inductive typ (V : Type) : Type
| var : occurs → tagged V → typ -- variable, bound or free
| arr : typ → typ → typ -- function arrow
namespace typ ---------... |
ab943fc925d85b45fe8b0050633c868fa3d273bf | a721fe7446524f18ba361625fc01033d9c8b7a78 | /elaborate/mul_comm.lean | fe594c1ac28bcf2f2b25512649086fce0c321ab3 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 88,044 | lean | λ (m n : mynat),
mynat.rec
(eq.rec true.intro
(eq.rec (eq.refl (zero = mul zero m))
(eq.rec
(eq.rec (eq.refl (zero = mul zero m))
(eq.rec (eq.refl (mul zero m))
(mynat.rec (eq.refl zero)
(λ (m_n : mynat) (m_ih : mul zero m_n = ... |
9574d9a35c63a46e58850a2916085dbc939fe6a4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/clifford_algebra/conjugation.lean | 07f8f5174fd8710095c971aff73160cd01eed062 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 10,983 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.clifford_algebra.grading
import algebra.module.opposites
/-!
# Conjugations
This file defines the grade reversal and grade involution functions on m... |
9ddf7f07532807b597dc50aa10cd9439a6fbafee | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/init/path.hlean | 727d4e48e774f8566748ee7e27e0644dbca0581c | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,232 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .function .tactic
open function eq
/- Path equality -/
namespace eq
variables {A ... |
bb6e6365ad2f159482cc996a014a133c150f4892 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q17.lean | 0ed410851acd6ad8140436191f40800c63a2c163 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,529 | lean | import data.real.basic data.fintype algebra.big_operators data.nat.modeq
import tactic.find tactic.squeeze
namespace MAS114
namespace exercises_1
namespace Q17
/- This is the basic definition of fibonacci numbers. It
is not good for efficient evaluation.
-/
def fibonacci : ℕ → ℕ
| 0 := 0
| 1 := 1
| (n + 2) :=... |
3b8a5581f4103222bbfe337fd32153018cf779a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/pi.lean | 3e7a18a02268a8bbfb15e81f76786fbfd3fcabb9 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,946 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import data.fintype.card
import algebra.group.prod
import algebra.big_operators.basic
import algebra.ring.pi
/-!
# Big operators for Pi Types
This file co... |
ef237ce918e0b0819f186a282bb97831752803bc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/uniform_space/compact_convergence.lean | 7b3fc75c6ad8b1734e2805d061524dd0d3539375 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 22,086 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import topology.compact_open
import topology.uniform_space.uniform_convergence
/-!
# Compact convergence (uniform convergence on compact sets)
Given a topological space `... |
891f673966627c9377398d1e06b9295d4524ce61 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/separation.lean | c8a1e7754aee284150ace2f985a74097b724e1a5 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 16,300 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Separation properties of topological spaces.
-/
import topology.subset_properties
open set filter lattice
open_locale topological_space
local attribut... |
4fd3e56576fa9f25360b601e7afb1b04882cdf39 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/number_theory/fermat4.lean | 2954683cbfebdfbb5c276e844a26268a05eb6a74 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 12,339 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul van Wamelen
-/
import number_theory.pythagorean_triples
import ring_theory.coprime
/-!
# Fermat's Last Theorem for the case n = 4
There are no non-zero integers `a`, `b` and `c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.